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 bool operator==(HOM_PtrOrNull<HOM_StickyNote> stickynote) = 0;
36  virtual bool operator!=(HOM_PtrOrNull<HOM_StickyNote> stickynote) = 0;
37 
38  virtual std::string text() = 0;
39  virtual void setText(const char* new_text) = 0;
40 
41  virtual float textSize() = 0;
42  virtual void setTextSize(float size) = 0;
43 
44  virtual HOM_Color textColor() = 0;
45  virtual void setTextColor(HOM_Color &color) = 0;
46 
47  virtual bool drawBackground() = 0;
48  virtual void setDrawBackground(bool on) = 0;
49 
50  virtual void setBounds(const HOM_BoundingRect &bounds) = 0;
51  virtual void setSize(const std::vector<double> &size) = 0;
52  virtual void resize(const std::vector<double> &amount) = 0;
53 
54  virtual HOM_Vector2 minimizedSize() = 0;
55  virtual HOM_Vector2 restoredSize() = 0;
56 
57  virtual bool isMinimized() = 0;
58  virtual void setMinimized(bool on) = 0;
59 
60  virtual void destroy() = 0;
61 };
62 
63 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
HOM_StickyNote(const HOM_StickyNote &sticky_note)
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
Definition: Mat3.h:556
~HOM_StickyNote() override
GLsizeiptr size
Definition: glcorearb.h:664
ImageBuf OIIO_API resize(const ImageBuf &src, string_view filtername="", float filterwidth=0.0f, ROI roi={}, int nthreads=0)
GLuint color
Definition: glcorearb.h:1261
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:542