HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_RadialSubmenu.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_RadialSubmenu_h__
10 #define __HOM_RadialSubmenu_h__
11 
12 #include "HOM_RadialItem.h"
13 
15 
16 SWIGOUT(%rename(RadialSubmenu) HOM_RadialSubmenu;)
17 
19 {
20 public:
22  { HOM_CONSTRUCT_OBJECT(this) }
24  : HOM_RadialItem(item)
25  { HOM_CONSTRUCT_OBJECT(this) }
26  ~HOM_RadialSubmenu() override
27  { HOM_DESTRUCT_OBJECT(this) }
28 
29  std::string __repr__() override = 0;
30 
31  virtual const char *label() = 0;
32 
33  virtual void setLabel(const char *s) = 0;
34 
35  virtual const char *shortcut() = 0;
36 
37  virtual void setShortcut(const char *s) = 0;
38 
39  virtual void remove(HOM_EnumValue &location) = 0;
40 
41  SWIGOUT(%newobject item;)
42  virtual HOM_RadialItem *item(HOM_EnumValue &location) = 0;
43 
44  virtual std::map<HOM_EnumValue *, HOM_ElemPtr<HOM_RadialItem> > items() = 0;
45 
46  SWIGOUT(%newobject createSubmenu;)
47  SWIGOUT(%kwargs createSubmenu;)
48  virtual HOM_RadialSubmenu *createSubmenu(HOM_EnumValue &location,
49  const char *label=nullptr,
50  const char *shortcut=nullptr) = 0;
51 
52  SWIGOUT(%newobject createScriptItem;)
53  SWIGOUT(%kwargs createScriptItem;)
54  virtual HOM_RadialScriptItem *
55  createScriptItem(HOM_EnumValue &location,
56  const char *label=nullptr,
57  const char *icon=nullptr,
58  const char *check=nullptr,
59  const char *script=nullptr,
60  const char *shortcut=nullptr) = 0;
61 };
62 
63 #endif
virtual const char * icon()=0
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2545
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
GLdouble s
Definition: glad.h:3009
HOM_RadialSubmenu(const HOM_RadialSubmenu &item)
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
~HOM_RadialSubmenu() override
#define HOM_API
Definition: HOM_API.h:13
virtual const char * check()=0
virtual const char * shortcut()=0
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
GLint location
Definition: glcorearb.h:805
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
virtual const char * script()=0
virtual void setLabel(const char *s)=0
virtual void setShortcut(const char *s)=0