Hot Door CORE 0.8.3
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreStepper.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_STEPPER__
8#define __HDI_CORE_STEPPER__
9
10#include "hdicoreWidget.h"
11
12namespace hdi
13{
14 namespace core
15 {
16 class Callback;
17
22 class Stepper : public Widget
23 {
24 public:
36
44 Stepper(const Stepper& stepper_);
45
53 Stepper(const Point& loc_);
54
60 virtual ~Stepper();
61
70 virtual Stepper& operator=(const Stepper& rhs_);
71
85 virtual Stepper* clone() const;
86
97 virtual Stepper* duplicate() const;
98
106 virtual Callback* const upClickCallback() const;
107
115 virtual void setUpClickCallback(const Callback& callback_);
116
124 virtual Callback* const downClickCallback() const;
125
133 virtual void setDownClickCallback(const Callback& callback_);
134 };
135
136 typedef std::unique_ptr<Stepper> StepperUP;
137 typedef std::shared_ptr<Stepper> StepperSP;
138 typedef std::weak_ptr<Stepper> StepperWP;
139 }
140}
141
142#endif
143// __HDI_CORE_STEPPER__
Base class for templated __Callback class.
Definition: hdicoreCallback.h:68
Describes a point in the 2-dimensional (x,y) coordinate system, typically in an Illustrator document ...
Definition: hdicorePoint.h:38
Stepper widget, which has a up/down button interface to allow for increasing/decreasing values of oth...
Definition: hdicoreStepper.h:23
virtual Callback *const downClickCallback() const
Gets the down-click callback for the stepper.
virtual void setDownClickCallback(const Callback &callback_)
Sets the down-click callback.
virtual Stepper * clone() const
Convenience method to clone a Stepper object on the heap.
virtual Callback *const upClickCallback() const
Gets the up-click callback for the stepper.
virtual Stepper & operator=(const Stepper &rhs_)
Allows one Stepper object to be assigned from another.
Stepper()
Constructs an empty Stepper object.
virtual void setUpClickCallback(const Callback &callback_)
Sets the up-click callback.
virtual Stepper * duplicate() const
Convenience method to duplicate a Stepper object, creating a new and identical UI element to the targ...
Stepper(const Stepper &stepper_)
Constructs a new Stepper object from an existing Stepper object (copy constructor)
virtual ~Stepper()
Stepper destructor.
Stepper(const Point &loc_)
Constructs a stepper.
Base class for all interface widgets; handles many common needs, e.g. text, position,...
Definition: hdicoreWidget.h:30
Header file for plugin user interface widgets.