Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
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
12namespace hdi
13{
14 namespace core
15 {
19 class Divider : public Widget
20 {
21 public:
26 {
27 UnknownDirection = 0,
28 Horizontal = 10,
29 Vertical = 20
30 };
31
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::unique_ptr<Divider> DividerUP;
162 typedef std::shared_ptr<Divider> DividerSP;
163 typedef std::weak_ptr<Divider> DividerWP;
164 }
165}
166
167#endif
168// __HDI_CORE_DIVIDER__
Divider class for UI divider lines.
Definition: hdicoreDivider.h:20
Divider()
Constructs an empty Divider object.
virtual void setText(const std::string &)
Prevents setting the text, as dividers cannot have text.
virtual Type type() const
Returns DividerType, as dividers are always dividers!
virtual Direction direction() const
Gets the direction that the line is going.
virtual bool enabled()
Returns true, because dividers are always enabled.
virtual ~Divider()
Divider destructor.
virtual Divider & operator=(const Divider &rhs_)
Allows one Divider object to be assigned from another.
Divider(const Point &loc_, const double length_, const Direction dir_=Horizontal)
Constructs a divider line widget.
Direction
Describes the direction of the line in a Divider object.
Definition: hdicoreDivider.h:26
virtual std::string text() const
Always gets "", as dividers cannot have text.
virtual Divider * duplicate() const
Convenience method to duplicate a Divider object, creating a new and identical UI element to the targ...
virtual Divider * clone() const
Convenience method to clone a Divider object on the heap.
virtual void setEnabled(const bool enable_)
Overrides Widget::setEnabled() because dividers are always enabled.
Divider(const Divider &div_)
Constructs a new Divider object from an existing Divider object (copy constructor)
Describes a point in the 2-dimensional (x,y) coordinate system, typically in an Illustrator document ...
Definition: hdicorePoint.h:38
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.