Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreSlider.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_SLIDER__
8#define __HDI_CORE_SLIDER__
9
10#include "hdicoreWidget.h"
11
12namespace hdi
13{
14 namespace core
15 {
16 class Callback;
17
21 class Slider : public Widget
22 {
23 public:
35
43 Slider(const Slider& slider_);
44
54 Slider(const Point& loc_, const double value_, const double width_);
55
61 virtual ~Slider();
62
71 virtual Slider& operator=(const Slider& rhs_);
72
86 virtual Slider* clone() const;
87
98 virtual Slider* duplicate() const;
99
107 virtual double value() const;
108
118 virtual void setValue(const double value_);
119
125 virtual void valueChanging();
126
134 virtual Callback* const valueChangingCallback() const;
135
143 virtual void setValueChangingCallback(const Callback& callback_);
144 };
145
146 typedef std::unique_ptr<Slider> SliderUP;
147 typedef std::shared_ptr<Slider> SliderSP;
148 typedef std::weak_ptr<Slider> SliderWP;
149 }
150}
151
152#endif
153// __HDI_CORE_SLIDER__
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
Slider widget, which has a sliding interface to allow for arbitrary value selections from 0....
Definition: hdicoreSlider.h:22
virtual Slider * clone() const
Convenience method to clone a Slider object on the heap.
Slider(const Slider &slider_)
Constructs a new Slider object from an existing Slider object (copy constructor)
virtual void setValue(const double value_)
Sets the current value of the slider.
Slider(const Point &loc_, const double value_, const double width_)
Constructs a slider.
virtual Callback *const valueChangingCallback() const
Gets the value changing callback for the slider.
Slider()
Constructs an empty Slider object.
virtual Slider & operator=(const Slider &rhs_)
Allows one Slider object to be assigned from another.
virtual double value() const
Gets the current value of the slider.
virtual void setValueChangingCallback(const Callback &callback_)
Sets the value changing callback.
virtual ~Slider()
Slider destructor.
virtual void valueChanging()
Simulates the value of the slider changing.
virtual Slider * duplicate() const
Convenience method to duplicate a Slider object, creating a new and identical UI element to the targe...
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.