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);
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 double mouseWheel() = 0;
62  virtual double mouseX() = 0;
63  virtual double mouseY() = 0;
64 
65  // tablet
66  virtual bool isTablet() = 0;
67  virtual double tabletAngle() = 0;
68  virtual double tabletPressure() = 0;
69  virtual double tabletRoll() = 0;
70  virtual double tabletTilt() = 0;
71  virtual double time() = 0;
72 };
73 
74 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1210
GT_API const UT_StringHolder time
GLuint const GLfloat * val
Definition: glew.h:2794
OIIO_API bool rename(string_view from, string_view to, std::string &err)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
virtual ~HOM_UIEventDevice()
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
virtual HOM_UIEventDevice * newUIEventDevice(int64 val, int64 val2)=0
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1209
long long int64
Definition: SYS_Types.h:116
GLsizei const GLchar *const * string
Definition: glew.h:1844
HOM_API HOM_Module & HOM()