9 #ifndef __HOM_ToggleParmTemplate_h__
10 #define __HOM_ToggleParmTemplate_h__
24 HOM_ToggleParmTemplate(
27 bool default_value =
false,
28 const char *disable_when = NULL,
29 bool is_hidden =
false,
30 bool is_label_hidden =
false,
31 bool join_with_next =
false,
32 const char *
help = NULL,
33 const char *script_callback = NULL,
35 HOM_scriptLanguage::Hscript,
36 const std::map<std::string, std::string> &tags =
38 const std::map<HOM_EnumValue *, std::string> &conditionals =
42 HOM_scriptLanguage::Hscript)
45 name, label, default_value, disable_when, is_hidden,
46 is_label_hidden, join_with_next,
help, script_callback,
47 script_callback_language, tags, conditionals,
48 default_expression, default_expression_language);
67 virtual bool defaultValue() = 0;
68 virtual void setDefaultValue(
bool default_value) = 0;
70 virtual void setDefaultExpression(
73 virtual void setDefaultExpressionLanguage(
#define HOM_DESTRUCT_OBJECT(pointer)
GLuint GLsizei const GLchar * label
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
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) ...
virtual HOM_ToggleParmTemplate * newToggleParmTemplate(const char *name, const char *label, bool default_value, 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, const std::string &default_expression, const HOM_EnumValue &default_expression_language)=0
~HOM_ToggleParmTemplate() override
#define HOM_CONSTRUCT_OBJECT(pointer)
HOM_ToggleParmTemplate(const HOM_ToggleParmTemplate &parm_template)
GLuint const GLchar * name
std::map< HOM_EnumValue *, std::string > HOM_StdMapEnumString
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