HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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  virtual ~HOM_StickyNote()
33  { HOM_DESTRUCT_OBJECT(this) }
34 
35  virtual std::string __repr__() = 0;
36 
37  virtual bool operator==(HOM_PtrOrNull<HOM_StickyNote> stickynote) = 0;
38  virtual bool operator!=(HOM_PtrOrNull<HOM_StickyNote> stickynote) = 0;
39 
40  virtual std::string text() = 0;
41  virtual void setText(const char* new_text) = 0;
42 
43  virtual float textSize() = 0;
44  virtual void setTextSize(float size) = 0;
45 
46  virtual HOM_Color textColor() = 0;
47  virtual void setTextColor(HOM_Color &color) = 0;
48 
49  virtual bool drawBackground() = 0;
50  virtual void setDrawBackground(bool on) = 0;
51 
52  virtual void setBounds(const HOM_BoundingRect &bounds) = 0;
53  virtual void setSize(const std::vector<double> &size) = 0;
54  virtual void resize(const std::vector<double> &amount) = 0;
55 
56  virtual HOM_Vector2 minimizedSize() = 0;
57  virtual HOM_Vector2 restoredSize() = 0;
58 
59  virtual bool isMinimized() = 0;
60  virtual void setMinimized(bool on) = 0;
61 
62  virtual void destroy(void) = 0;
63 
64  SWIGOUT(%kwargs asCode;)
65  virtual std::string asCode(bool brief=false,
66  bool recurse=false,
67  bool save_box_contents=false,
68  bool save_channels_only=false,
69  bool save_creation_commands=true,
70  bool save_keys_in_frames=false,
71  bool save_parm_values_only=false,
72  bool save_spare_parms=false,
73  const char *function_name=NULL) = 0;
74 };
75 
76 #endif
std::string __repr__()
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:983
GLsizei const GLchar *const * string
Definition: glcorearb.h:813
GLuint color
Definition: glcorearb.h:1260
HOM_StickyNote(const HOM_StickyNote &sticky_note)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
GLsizeiptr size
Definition: glcorearb.h:663
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:982
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
Definition: Mat3.h:610
virtual ~HOM_StickyNote()
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:596