HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_ButtonParmTemplate.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_ButtonParmTemplate_h__
10 #define __HOM_ButtonParmTemplate_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_ParmTemplate.h"
14 
15 SWIGOUT(%feature("notabstract") HOM_ButtonParmTemplate;)
16 SWIGOUT(%rename(ButtonParmTemplate) HOM_ButtonParmTemplate;)
17 
19 {
20 public:
21 #ifdef SWIG
22 %extend {
23  %kwargs HOM_ButtonParmTemplate;
24  HOM_ButtonParmTemplate(
25  const char *name,
26  const char *label,
27  const char *disable_when = NULL,
28  bool is_hidden = false,
29  bool is_label_hidden = false,
30  bool join_with_next = false,
31  const char *help = NULL,
32  const char *script_callback = NULL,
33  HOM_EnumValue &script_callback_language =
34  HOM_scriptLanguage::Hscript,
35  const std::map<std::string, std::string> &tags =
37  const std::map<HOM_EnumValue *, std::string> &conditionals =
39  {
40  return HOM().newButtonParmTemplate(name, label, disable_when,
41  is_hidden, is_label_hidden, join_with_next, help, script_callback,
42  script_callback_language, tags, conditionals);
43  }
44 };
45 #else
47  { HOM_CONSTRUCT_OBJECT(this) }
48 
50  : HOM_ParmTemplate(parm_template)
51  { HOM_CONSTRUCT_OBJECT(this) }
52 #endif
53 
55  { HOM_DESTRUCT_OBJECT(this) }
56 
57  // Let swig think we're overriding __repr__ for this class so it doesn't
58  // provide its own __repr__.
59  SWIGOUT(virtual std::string __repr__();)
60 };
61 
62 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
GLuint GLsizei const GLchar * label
Definition: glcorearb.h:2545
virtual HOM_ButtonParmTemplate * newButtonParmTemplate(const char *name, const char *label, const char *disable_when, bool is_hidden, bool is_label_hidden, bool join_with_next, const char *help, const char *script_callback, HOM_EnumValue &script_callback_language, const std::map< std::string, std::string > &tags, const std::map< HOM_EnumValue *, std::string > &conditionals)=0
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
HOM_ButtonParmTemplate(const HOM_ButtonParmTemplate &parm_template)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
std::string help(const App *app, const Error &e)
Printout the full help string on error (if this fn is set, the old default for CLI11) ...
Definition: CLI11.h:8978
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
GLuint const GLchar * name
Definition: glcorearb.h:786
std::map< HOM_EnumValue *, std::string > HOM_StdMapEnumString
Definition: HOM_Module.h:1312
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_API HOM_Module & HOM()
std::map< std::string, std::string > HOM_StdMapStringString
Definition: HOM_Module.h:1311