9 #ifndef __HOM_Dialog_h__
10 #define __HOM_Dialog_h__
31 virtual void destroy() = 0;
40 virtual void enableValue(
const char *
name,
bool onoff) = 0;
43 virtual void addOpaqueCallback(
const char *
name,
void *callback) = 0;
46 virtual void removeOpaqueCallback(
const char *
name,
void *callback) = 0;
49 virtual std::vector<void *> opaqueCallbacks(
const char *
name) = 0;
51 virtual void waitForValueToChangeTo(
const char *
name,
const char *new_value) = 0;
53 virtual void waitForValueToChangeTo(
const char *
name,
int new_value) = 0;
55 virtual std::vector<std::string> menuItems(
const char *
name) = 0;
56 virtual void setMenuItems(
const char *
name,
57 const std::vector<std::string> &items) = 0;
63 {
return HOMboostAnyToInterpreterObject(self->boostAnyValue(name)); }
65 virtual void addCallback(
const char *name, InterpreterObject callback)
66 {
self->addOpaqueCallback(name, callback); }
68 virtual void removeCallback(
const char *name, InterpreterObject callback)
69 {
self->removeOpaqueCallback(name, callback); }
74 std::vector<InterpreterObject> callbacks(
const char *name)
76 std::vector<void *> opaque_callbacks(self->opaqueCallbacks(name));
78 std::vector<InterpreterObject> callbacks;
79 for (
int i=0; i< opaque_callbacks.size(); ++i)
80 callbacks.push_back((InterpreterObject)opaque_callbacks[i]);
#define HOM_DESTRUCT_OBJECT(pointer)
GLsizei const GLchar *const * string
GLsizei const GLfloat * value
string __repr__(VtArray< T > const &self)
__hostdev__ void setValue(uint32_t offset, bool v)
bool any(const vbool4 &v)
void ignore(T const &) VULKAN_HPP_NOEXCEPT
#define HOM_CONSTRUCT_OBJECT(pointer)
GLuint const GLchar * name
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_Dialog(const HOM_Dialog &)