HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_UIEvent.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_UIEvent_h
10 #define HOM_UIEvent_h
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 #include "HOM_ElemPtr.h"
15 
16 class HOM_UIEventDevice;
17 class HOM_Vector3;
18 
19 SWIGOUT(%rename(UIEvent) HOM_UIEvent;)
20 SWIGOUT(%feature("notabstract") HOM_UIEvent;)
21 
23 {
24 public:
25 #ifdef SWIG
26 %extend
27 {
28  HOM_UIEvent(int64 val, int64 val2)
29  {
30  return HOM().newUIEvent(val, val2);
31  }
32 }
33 #else
35  {
37  }
38 #endif
39 
40  virtual ~HOM_UIEvent()
41  {
42  HOM_DESTRUCT_OBJECT(this)
43  }
44 
45  virtual std::string __repr__() = 0;
46 
47  virtual HOM_UIEventDevice* device() = 0;
48  virtual bool hasQueuedEvents() = 0;
49  virtual std::vector<HOM_ElemPtr<HOM_UIEventDevice> > queuedEvents() = 0;
50  virtual hboost::any value() = 0;
51 
52  // returns uiEventReason
53  virtual HOM_EnumValue& reason() = 0;
54 
55  // returns uiEventValueType
56  virtual HOM_EnumValue& valueType() = 0;
57 };
58 
59 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
virtual ~HOM_UIEvent()
Definition: HOM_UIEvent.h:40
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
GLsizei const GLfloat * value
Definition: glcorearb.h:824
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
virtual HOM_UIEvent * newUIEvent(int64 val, int64 val2)=0
bool any(const vbool4 &v)
Definition: simd.h:3468
#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
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()