HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_UIEventDevice.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * COMMENTS:
7  */
8 
9 #ifndef HOM_UIEventDevice_h
10 #define HOM_UIEventDevice_h
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 
15 SWIGOUT(%rename(UIEventDevice) HOM_UIEventDevice;)
16 SWIGOUT(%feature("notabstract") HOM_UIEventDevice;)
17 
19 {
20 public:
21 #ifdef SWIG
22 %extend
23 {
25  {
26  return HOM().newUIEventDevice(val, val2, val3);
27  }
28 }
29 #else
31  { HOM_CONSTRUCT_OBJECT(this) }
32 #endif
34  { HOM_DESTRUCT_OBJECT(this) }
35 
36  virtual std::string __repr__() = 0;
37 
38  // keyboard
39  virtual bool isAltKey() = 0;
40  virtual bool isAutoRepeat() = 0;
41  virtual bool isCapsLock() = 0;
42  virtual bool isCtrlKey() = 0;
43  virtual bool isKeyPad() = 0;
44  virtual bool isShiftKey() const = 0;
45  virtual bool isArrowDown() = 0;
46  virtual bool isArrowLeft() = 0;
47  virtual bool isArrowRight() = 0;
48  virtual bool isArrowUp() = 0;
49  virtual bool isKeyPressed() = 0;
50  virtual bool isFunctionKey() const = 0;
51  virtual int keyValue() = 0;
52  virtual std::string keyString() = 0;
53  virtual std::string modifierString() = 0;
54  virtual bool isKeyUp() const = 0;
55  virtual bool isKeyDown() const = 0;
56 
57  // mouse
58  virtual bool isLeftButton() = 0;
59  virtual bool isMiddleButton() = 0;
60  virtual bool isRightButton() = 0;
61  virtual bool isLeftButtonReleased() = 0;
62  virtual bool isMiddleButtonReleased() = 0;
63  virtual bool isRightButtonReleased() = 0;
64 
65  virtual double mouseWheel() = 0;
66  virtual double mouseX() = 0;
67  virtual double mouseY() = 0;
68 
69  // tablet
70  virtual bool isTablet() = 0;
71  virtual double tabletAngle() = 0;
72  virtual double tabletPressure() = 0;
73  virtual double tabletRoll() = 0;
74  virtual double tabletTilt() = 0;
75  virtual double time() = 0;
76 };
77 
78 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
GT_API const UT_StringHolder time
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
virtual ~HOM_UIEventDevice()
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
long long int64
Definition: SYS_Types.h:116
virtual HOM_UIEventDevice * newUIEventDevice(int64 val, int64 val2, int64 val3)=0
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
GLuint GLfloat * val
Definition: glcorearb.h:1608
HOM_API HOM_Module & HOM()