Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreBox.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_BOX__
8#define __HDI_CORE_BOX__
9
10#include "hdicoreWidget.h"
11
12namespace hdi
13{
14 namespace core
15 {
19 class Box : public Widget
20 {
21 public:
32 Box();
33
41 Box(const Box& box_);
42
51 Box(const Rect& frame_, const std::string& title_ = "");
52
58 virtual ~Box();
59
68 virtual Box& operator=(const Box& rhs_);
69
83 virtual Box* clone() const;
84
95 virtual Box* duplicate() const;
96
104 virtual Type type() const;
105
113 virtual std::string text() const;
114
122 virtual void setText(const std::string& text_);
123
131 virtual bool enabled();
132
140 virtual void setEnabled(const bool enable_);
141 };
142
143 typedef std::unique_ptr<Box> BoxUP;
144 typedef std::shared_ptr<Box> BoxSP;
145 typedef std::weak_ptr<Box> BoxWP;
146 }
147}
148
149#endif
150// __HDI_CORE_BOX__
Box class for UI boxes, which form a thin labeled border around a group of other widgets.
Definition: hdicoreBox.h:20
Box(const Box &box_)
Constructs a new Box object from an existing Box object (copy constructor)
virtual Box & operator=(const Box &rhs_)
Allows one Box object to be assigned from another.
virtual Type type() const
Returns BoxType, as boxes are always boxes!
virtual Box * duplicate() const
Convenience method to duplicate a Box object, creating a new and identical UI element to the target (...
virtual bool enabled()
Returns true, because boxes are always enabled.
virtual void setEnabled(const bool enable_)
Overrides Widget::setEnabled() because boxes are always enabled.
virtual std::string text() const
Gets the current text value of the box.
virtual void setText(const std::string &text_)
Sets the current text value of the box.
virtual Box * clone() const
Convenience method to clone a Box object on the heap.
Box(const Rect &frame_, const std::string &title_="")
Constructs a box with an optional title.
Box()
Constructs an empty Box object.
virtual ~Box()
Box destructor.
Contains Point and Size objects to describe a rectangle that exists at a specific point of given dime...
Definition: hdicoreRect.h:34
Base class for all interface widgets; handles many common needs, e.g. text, position,...
Definition: hdicoreWidget.h:30
Type
Supported widget types.
Definition: hdicoreWidget.h:36
Header file for plugin user interface widgets.