Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
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 
12 namespace 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::auto_ptr<Box> BoxAP;
144  }
145 }
146 
147 #endif
148 // __HDI_CORE_BOX__
Base class for all interface widgets; handles many common needs, e.g. text, position, size, etc.
Definition: hdicoreWidget.h:39
virtual Type type() const
Returns BoxType, as boxes are always boxes!
virtual ~Box()
Box destructor.
virtual void setText(const std::string &text_)
Sets the current text value of the box.
virtual bool enabled()
Returns true, because boxes are always enabled.
Contains Point and Size objects to describe a rectangle that exists at a specific point of given dime...
Definition: hdicoreRect.h:26
Box class for UI boxes, which form a thin labeled border around a group of other widgets.
Definition: hdicoreBox.h:19
virtual Box & operator=(const Box &rhs_)
Allows one Box object to be assigned from another.
virtual Box * clone() const
Convenience method to clone a Box object on the heap.
virtual std::string text() const
Gets the current text value of the box.
Definition: hdicoreaiArray.h:12
Header file for Illustrator user interface widgets.
Box()
Constructs an empty Box object.
virtual void setEnabled(const bool enable_)
Overrides setEnabled (hdi::core::Widget) because boxes are always enabled.
virtual Box * duplicate() const
Convenience method to duplicate a Box object, creating a new and identical UI element to the target (...
Type
Supported widget types.
Definition: hdicoreWidget.h:45