HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_styles.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_styles_h__
10 #define __HOM_styles_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include <vector>
16 
17 SWIGOUT(%rename(styles) HOM_styles;)
18 
20 {
21 public:
22  virtual ~HOM_styles()
23  {}
24 
25  virtual std::string __repr__() = 0;
26 
27  virtual bool hasStyle(const char *name) = 0;
28 
29  virtual std::vector<std::string> styles(const char *pattern = NULL) = 0;
30 
31  virtual std::string description(const char *style) = 0;
32 
33  virtual std::string stylesheet(const char *style) = 0;
34 
35  virtual std::string errors(const char *style) = 0;
36 
37  virtual void addStyle(const char *name,
38  const char *description,
39  const char *stylesheet) = 0;
40 
41  virtual void renameStyle(const char *old_name,
42  const char *new_name) = 0;
43 
44  virtual void reorderStyles(const std::vector<std::string> &names) = 0;
45 
46  virtual void removeStyle(const char *name) = 0;
47 
48  virtual void removeAll() = 0;
49 };
50 
51 #endif
52 
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
virtual ~HOM_styles()
Definition: HOM_styles.h:22
GLuint const GLchar * name
Definition: glcorearb.h:786
GLushort pattern
Definition: glad.h:2583
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)