Hot Door CORE  0.7.1
Adobe® Illustrator® Plug-in Library
hdicoreDivider.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_DIVIDER__
8 #define __HDI_CORE_DIVIDER__
9 
10 #include "hdicoreWidget.h"
11 
12 namespace hdi
13 {
14  namespace core
15  {
19  class Divider : public Widget
20  {
21  public:
25  enum Direction
26  {
27  UnknownDirection = 0,
28  Horizontal = 10,
29  Vertical = 20
30  };
31 
42  Divider();
43 
51  Divider(const Divider& div_);
52 
62  Divider(const Point& loc_, const double length_, const Direction dir_ = Horizontal);
63 
69  virtual ~Divider();
70 
79  virtual Divider& operator=(const Divider& rhs_);
80 
94  virtual Divider* clone() const;
95 
106  virtual Divider* duplicate() const;
107 
115  virtual Type type() const;
116 
124  virtual Direction direction() const;
125 
133  virtual std::string text() const;
134 
140  virtual void setText(const std::string&);
141 
149  virtual bool enabled();
150 
158  virtual void setEnabled(const bool enable_);
159  };
160 
161  typedef std::auto_ptr<Divider> DividerAP;
162  }
163 }
164 
165 #endif
166 // __HDI_CORE_DIVIDER__
Base class for all interface widgets; handles many common needs, e.g. text, position, size, etc.
Definition: hdicoreWidget.h:39
virtual Divider * clone() const
Convenience method to clone a Divider object on the heap.
Describes a point in the 2-dimensional (x,y) coordinate system, typically in an Illustrator document ...
Definition: hdicorePoint.h:26
virtual Type type() const
Returns DividerType, as dividers are always dividers!
Direction
Describes the direction of the line in a Divider object.
Definition: hdicoreDivider.h:25
virtual Divider * duplicate() const
Convenience method to duplicate a Divider object, creating a new and identical UI element to the targ...
virtual bool enabled()
Returns true, because dividers are always enabled.
Divider()
Constructs an empty Divider object.
virtual Direction direction() const
Gets the direction that the line is going.
virtual ~Divider()
Divider destructor.
Divider class for UI divider lines.
Definition: hdicoreDivider.h:19
Definition: hdicoreaiArray.h:12
Header file for Illustrator user interface widgets.
virtual std::string text() const
Always gets "", as dividers cannot have text.
virtual void setText(const std::string &)
Prevents setting the text, as dividers cannot have text.
virtual void setEnabled(const bool enable_)
Overrides Widget::setEnabled() because dividers are always enabled.
Type
Supported widget types.
Definition: hdicoreWidget.h:45
virtual Divider & operator=(const Divider &rhs_)
Allows one Divider object to be assigned from another.