HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_StickyNote.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_StickyNote_h__
10 #define __HOM_StickyNote_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_NetworkMovableItem.h"
14 #include "HOM_EnumModules.h"
15 #include "HOM_PtrOrNull.h"
16 #include <string>
17 
18 class HOM_Color;
19 class HOM_BoundingRect;
20 
21 SWIGOUT(%rename(StickyNote) HOM_StickyNote;)
22 
24 {
25 public:
27  : HOM_NetworkMovableItem(HOM_networkItemType::StickyNote)
28  { HOM_CONSTRUCT_OBJECT(this) }
29  HOM_StickyNote(const HOM_StickyNote &sticky_note)
30  : HOM_NetworkMovableItem(sticky_note)
31  { HOM_CONSTRUCT_OBJECT(this) }
32  ~HOM_StickyNote() override
33  { HOM_DESTRUCT_OBJECT(this) }
34 
35  virtual std::string __repr__() = 0;
36 
37  virtual int __hash__() override = 0;
38 
39  virtual bool operator==(HOM_PtrOrNull<HOM_StickyNote> stickynote) = 0;
40  virtual bool operator!=(HOM_PtrOrNull<HOM_StickyNote> stickynote) = 0;
41 
42  virtual std::string text() = 0;
43  virtual void setText(const char* new_text) = 0;
44 
45  virtual float textSize() = 0;
46  virtual void setTextSize(float size) = 0;
47 
48  virtual HOM_Color textColor() = 0;
49  virtual void setTextColor(HOM_Color &color) = 0;
50 
51  virtual bool drawBackground() = 0;
52  virtual void setDrawBackground(bool on) = 0;
53 
54  virtual void setBounds(const HOM_BoundingRect &bounds) = 0;
55  virtual void setSize(const std::vector<double> &size) = 0;
56  virtual void resize(const std::vector<double> &amount) = 0;
57 
58  virtual HOM_Vector2 minimizedSize() = 0;
59  virtual HOM_Vector2 restoredSize() = 0;
60 
61  virtual bool isMinimized() = 0;
62  virtual void setMinimized(bool on) = 0;
63 
64  virtual void destroy() = 0;
65 
66  SWIGOUT(%kwargs asCode;)
67  virtual std::string asCode(bool brief=false,
68  bool recurse=false,
69  bool save_box_contents=false,
70  bool save_channels_only=false,
71  bool save_creation_commands=true,
72  bool save_keys_in_frames=false,
73  bool save_parm_values_only=false,
74  bool save_spare_parms=false,
75  const char *function_name=NULL) = 0;
76 };
77 
78 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1210
GLsizeiptr size
Definition: glew.h:1681
OIIO_API bool rename(string_view from, string_view to, std::string &err)
HOM_StickyNote(const HOM_StickyNote &sticky_note)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:349
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1209
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
Definition: Mat3.h:563
ImageBuf OIIO_API resize(const ImageBuf &src, string_view filtername="", float filterwidth=0.0f, ROI roi={}, int nthreads=0)
GLuint color
Definition: glew.h:7902
~HOM_StickyNote() override
GLsizei const GLchar *const * string
Definition: glew.h:1844
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:549