HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_RadialScriptItem.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_RadialScriptItem_h__
10 #define __HOM_RadialScriptItem_h__
11 
12 #include "HOM_RadialItem.h"
13 
14 SWIGOUT(%rename(RadialScriptItem) HOM_RadialScriptItem;)
15 
17 {
18 public:
20  { HOM_CONSTRUCT_OBJECT(this) }
22  : HOM_RadialItem(item)
23  { HOM_CONSTRUCT_OBJECT(this) }
25  { HOM_DESTRUCT_OBJECT(this) }
26 
27  std::string __repr__() override = 0;
28 
29  virtual bool isSubmenu() = 0;
30 
31  virtual const char *label() = 0;
32 
33  virtual void setLabel(const char *s) = 0;
34 
35  virtual const char *icon() = 0;
36 
37  virtual void setIcon(const char *s) = 0;
38 
39  virtual const char *check() = 0;
40 
41  virtual void setCheck(const char *s) = 0;
42 
43  virtual const char *script() = 0;
44 
45  virtual void setScript(const char *s) = 0;
46 
47  virtual const char *shortcut() = 0;
48 
49  virtual void setShortcut(const char *s) = 0;
50 
52  virtual void setOpaqueActionCallback(void *callback) = 0;
53 
55  virtual void setOpaqueCheckCallback(void *callback) = 0;
56 
57 #ifdef SWIG
58 %extend
59 {
60  virtual void setActionCallback(InterpreterObject callback)
61  { self->setOpaqueActionCallback(callback); }
62  virtual void setCheckCallback(InterpreterObject callback)
63  { self->setOpaqueCheckCallback(callback); }
64 }
65 #endif
66 
67 };
68 
69 #endif
virtual const char * icon()=0
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1238
OIIO_API bool rename(string_view from, string_view to, std::string &err)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:353
virtual void setIcon(const char *s)=0
virtual void setCheck(const char *s)=0
virtual void setScript(const char *s)=0
#define HOM_API
Definition: HOM_API.h:13
virtual const char * shortcut()=0
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1237
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2544
virtual void setOpaqueCheckCallback(void *callback)=0
HOM_RadialScriptItem(const HOM_RadialScriptItem &item)
virtual void setOpaqueActionCallback(void *callback)=0
int check(unformattable)
Definition: core.h:1421
virtual bool isSubmenu()=0
virtual const char * script()=0
GLdouble s
Definition: glew.h:1395
virtual void setLabel(const char *s)=0
virtual void setShortcut(const char *s)=0