diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/public/vgui/ipainthtml.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/public/vgui/ipainthtml.h')
| -rw-r--r-- | sp/src/public/vgui/ipainthtml.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/sp/src/public/vgui/ipainthtml.h b/sp/src/public/vgui/ipainthtml.h new file mode 100644 index 00000000..35718fc1 --- /dev/null +++ b/sp/src/public/vgui/ipainthtml.h @@ -0,0 +1,54 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+#ifndef IPAINTHTML_H
+#define IPAINTHTML_H
+
+class IPaintHTML
+{
+public:
+ enum EPaintTarget
+ {
+ ePaintBrowser,
+ ePaintPopup,
+ ePaintMAX
+ };
+ // returns the texture id used, pass in -1 to create a new texture
+ virtual int DrawSubTextureRGBA( EPaintTarget eTarget, int textureID, int x, int y, const unsigned char *pRGBA, int wide, int tall ) = 0;
+ virtual void DeleteTexture( EPaintTarget eTarget, int textureID ) = 0;
+};
+
+class IInputEventHTML
+{
+public:
+ enum EMouseButton
+ {
+ eButtonLeft,
+ eButtonMiddle,
+ eButtonRight
+ };
+
+ virtual bool ChromeHandleMouseClick( EMouseButton eButton, bool bUp, int nClickCount ) = 0;
+ virtual bool ChromeHandleMouseMove( int x, int y ) = 0;
+ virtual bool ChromeHandleMouseWheel( int delta ) = 0;
+
+ enum EKeyType
+ {
+ KeyDown,
+ KeyUp,
+ Char
+ };
+ enum EKeyModifier
+ {
+ AltDown = 1,
+ CrtlDown = 2,
+ ShiftDown = 4,
+ };
+
+ virtual bool ChromeHandleKeyEvent( EKeyType type, int key, int modifiers, bool bKeyUp ) = 0;
+};
+
+#endif // IPAINTHTML_H
\ No newline at end of file |