Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
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 
12 namespace hdi
13 {
14  namespace core
15  {
16  class Callback;
17 
21  class Slider : public Widget
22  {
23  public:
34  Slider();
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::auto_ptr<Slider> SliderAP;
147  }
148 }
149 
150 #endif
151 // __HDI_CORE_SLIDER__
virtual Slider * clone() const
Convenience method to clone a Slider object on the heap.
Base class for all interface widgets; handles many common needs, e.g. text, position, size, etc.
Definition: hdicoreWidget.h:39
Slider widget, which has a sliding interface to allow for arbitrary value selections from 0...
Definition: hdicoreSlider.h:21
Describes a point in the 2-dimensional (x,y) coordinate system, typically in an Illustrator document ...
Definition: hdicorePoint.h:26
Slider()
Constructs an empty Slider object.
Base class for templated __Callback class.
Definition: hdicoreCallback.h:67
virtual ~Slider()
Slider destructor.
virtual void setValue(const double value_)
Sets the current value of the slider.
virtual Slider & operator=(const Slider &rhs_)
Allows one Slider object to be assigned from another.
Definition: hdicoreaiArray.h:12
Header file for Illustrator user interface widgets.
virtual double value() const
Gets the current value of the slider.
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...
virtual void setValueChangingCallback(const Callback &callback_)
Sets the value changing callback.
virtual Callback *const valueChangingCallback() const
Gets the value changing callback for the slider.