36 #define OP_POSTIT_DEFAULT_W 2.5F
37 #define OP_POSTIT_DEFAULT_H 2.5F
38 #define OP_POSTIT_MINIMUM_W 0.3F
39 #define OP_POSTIT_MINIMUM_H 0.3F
40 #define OP_POSTIT_MINIMIZED_W 2.5F
55 fpreal getMaximizedW()
const;
56 fpreal getMaximizedH()
const;
58 bool setWWithBoundsChecks(
fpreal h);
59 bool setHWithBoundsChecks(
fpreal h);
72 bool propagate_parent_event =
true
78 static OP_PostIt *lookupPostItNote(
int unique_id);
80 {
return myUniqueId; }
82 {
return myUniqueId; }
92 {
return setName(name); }
100 {
return myTextSize; }
102 bool setTextColor(
const UT_Color &clr);
104 {
return myTextColor; }
106 bool setDrawBackground(
bool draw_background);
108 {
return flags().getDrawBackground(); }
128 fpreal &
y2,
bool incl_buff_border =
true)
140 void setResizing(
bool resizing);
150 bool propagate_parent_event);
152 virtual OP_ERROR save(std::ostream &os,
154 const char *path_prefix);
155 virtual OP_ERROR saveIntrinsic(std::ostream &os,
170 bool getMinimized()
const;
176 bool setMinimized(
bool isminimized,
177 bool update_position,
178 bool propagate_parent_event);
182 int saveCommand(std::ostream &os)
const;
188 static const UT_Color &defaultColor();
190 static const UT_Color &defaultTextColor();
196 void setUniqueId(
int id);
206 virtual bool loadPacket(
UT_IStream &is,
short class_id,
207 short signature,
const char *
path = 0);
208 virtual bool loadPacket(
UT_IStream &is,
const char *token,
211 OP_ERROR saveNetworkBox(std::ostream &os,
213 const char *path_prefix);
virtual OP_ItemType getItemType() const =0
Our children should implement this and return what type of item they are.
int64 getMemoryUsage(bool inclusive) const
bool setItemName(const UT_String &name) override
const OP_PostItNoteFlags & flags() const
GLsizei const GLchar *const * path
virtual void setXY(fpreal x, fpreal y)=0
virtual fpreal getY() const =0
virtual fpreal getX() const =0
virtual OP_Network * getParentNetwork() const =0
Returns the network that is our parent.
virtual bool setPicked(bool on_off, bool propagate_parent_event=true)=0
UT_API UT_ErrorSeverity UTgetErrorSeverity()
virtual fpreal getW() const =0
int64 getItemUniqueId() const override
Functions to get hip-file-unique ids for any item type.
const UT_Color & getTextColor() const
GLuint const GLchar * name
GLfloat GLfloat GLfloat GLfloat h
fpreal getTextSize() const
OP_PostItNoteFlags & flags()
SIM_API const UT_StringHolder force
bool getDrawBackground() const
virtual bool getPicked() const =0
GLubyte GLubyte GLubyte GLubyte w
virtual fpreal getH() const =0
GLdouble GLdouble GLdouble y2
virtual const UT_String & getText() const
const UT_String & getItemName() const override