HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_ViewerStateMenu.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_ViewerStateMenu_h
10 #define HOM_ViewerStateMenu_h
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 #include "HOM_EnumValue.h"
15 #include "HOM_Defines.h"
16 
17 #include <string>
18 #include <vector>
19 #include <utility>
20 
21 SWIGOUT(%rename(ViewerStateMenu) HOM_ViewerStateMenu;)
22 SWIGOUT(%feature("notabstract") HOM_ViewerStateMenu;)
23 
25 {
26 public:
27 #ifdef SWIG
28 %extend
29 {
31  {
32  return HOM().newViewerStateMenu(handle, label);
33  }
34 }
35 #else
37  { HOM_CONSTRUCT_OBJECT(this) }
38 #endif
39 
41  { HOM_DESTRUCT_OBJECT(this) }
42 
43  virtual std::string __repr__() = 0;
44 
45  SWIGOUT(%kwargs addToggleItem;)
46  virtual void addToggleItem(
47  std::string const & handle,
48  std::string const & label,
49  bool default_value,
50  std::string const & hotkey=std::string() ) = 0;
51 
52  SWIGOUT(%kwargs addActionItem;)
53  virtual void addActionItem(
54  std::string const & handle,
55  std::string const & label,
56  std::string const & hotkey=std::string()) = 0;
57 
58  SWIGOUT(%kwargs addSeparator;)
59  virtual void addSeparator( ) = 0;
60 
61  SWIGOUT(%kwargs addRadioStrip;)
62  virtual void addRadioStrip(
63  std::string const & handle,
64  std::string const & label,
65  std::string const & default_value ) = 0;
66 
67  SWIGOUT(%kwargs addRadioStripItem;)
68  virtual void addRadioStripItem(
69  std::string const & parent,
70  std::string const & handle,
71  std::string const & label,
72  std::string const & hotkey=std::string() ) = 0;
73 
74  virtual void addMenu(HOM_ViewerStateMenu const& sub_menu) = 0;
75  };
76 
77 #endif // HOM_ViewerStateMenu_h
78 
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
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
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:352
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
virtual HOM_ViewerStateMenu * newViewerStateMenu(std::string const &handle, std::string const &label)=0
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_API HOM_Module & HOM()