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 {
29  {
30  return HOM().newUIEvent(val);
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:1130
virtual ~HOM_UIEvent()
Definition: HOM_UIEvent.h:40
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_UIEvent * newUIEvent(int64 val)=0
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
long long int64
Definition: SYS_Types.h:111
bool any(const vbool4 &v)
Definition: simd.h:3372
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1129
GLsizei const GLchar *const * string
Definition: glew.h:1844
HOM_API HOM_Module & HOM()
GLsizei const GLfloat * value
Definition: glew.h:1849