HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_AnimBar.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_AnimBar_h__
10 #define __HOM_AnimBar_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_IterableList.h"
16 
17 #include <stdexcept>
18 
19 class SI_AnimBar;
20 
21 SWIGOUT(%rename(AnimBar) HOM_AnimBar;)
22 
24 {
25 public:
27  { HOM_CONSTRUCT_OBJECT(this) }
29  { HOM_CONSTRUCT_OBJECT(this) }
30  virtual ~HOM_AnimBar()
31  { HOM_DESTRUCT_OBJECT(this) }
32 
33  virtual std::string __repr__() = 0; // NOLINT
34 
35  // Return the list of active tools
36  virtual std::vector<std::string> tools(bool shown_only = true) = 0;
37  virtual std::vector<std::string> hiddenTools() = 0;
38  virtual void setTools(const std::vector<std::string> &tool_ids) = 0;
39 
40  virtual void removeTool(const std::string &id) = 0;
41  virtual void addTool(const std::string &id, int index = -1) = 0;
42 
43  // Reset the toolbar to its original state
44  virtual void reset() = 0;
45 
46  // Turn the labels on or off. If off, abbreviated text labels will be
47  // placed on the slider handles instead.
48  virtual void showLabels(bool show) = 0;
49  virtual bool labelsShown() = 0;
50 
51  // Get or set the tool size
52  virtual void setToolSize(HOM_EnumValue &tool_size) = 0;
53  virtual HOM_EnumValue &toolSize() = 0;
54 
55 private:
56 
57 };
58 
59 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1303
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:349
GLboolean reset
Definition: glad.h:5138
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1302
virtual ~HOM_AnimBar()
Definition: HOM_AnimBar.h:30
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
GLuint index
Definition: glcorearb.h:786
HOM_AnimBar(const HOM_AnimBar &)
Definition: HOM_AnimBar.h:28