Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreColorWell.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_COLOR_WELL__
8 #define __HDI_CORE_COLOR_WELL__
9 
10 #include "hdicoreArtColor.h"
11 #include "hdicoreWidget.h"
12 
13 namespace hdi
14 {
15  namespace core
16  {
17  class Callback;
18 
23  class ColorWell : public Widget
24  {
25  public:
37  ColorWell();
38 
46  ColorWell(const ColorWell& colorwell_);
47 
61  ColorWell(const Rect& frame_, const ArtColor& color_);
62 
68  virtual ~ColorWell();
69 
78  virtual ColorWell& operator=(const ColorWell& rhs_);
79 
93  virtual ColorWell* clone() const;
94 
105  virtual ColorWell* duplicate() const;
106 
114  virtual ArtColor currentColor() const;
115 
128  virtual void setCurrentColor(const ArtColor& color_);
129 
135  virtual void valueChanged();
136 
144  virtual Callback* const valueChangedCallback() const;
145 
153  virtual void setValueChangedCallback(const Callback& callback_);
154  };
155 
156  typedef std::auto_ptr<ColorWell> ColorWellAP;
157  }
158 }
159 
160 #endif
161 // __HDI_CORE_COLORWELL__
Base class for all interface widgets; handles many common needs, e.g. text, position, size, etc.
Definition: hdicoreWidget.h:39
ColorWell()
Constructs an empty ColorWell object.
Header file for Illustrator art color manipulation.
Class for color well widgets, which form a clickable square area that represents an Illustrator art c...
Definition: hdicoreColorWell.h:23
virtual ColorWell & operator=(const ColorWell &rhs_)
Allows one ColorWell object to be assigned from another.
Contains Point and Size objects to describe a rectangle that exists at a specific point of given dime...
Definition: hdicoreRect.h:26
Base class for templated __Callback class.
Definition: hdicoreCallback.h:67
virtual ColorWell * clone() const
Convenience method to clone a ColorWell object on the heap.
virtual void setValueChangedCallback(const Callback &callback_)
Sets the value changed callback.
Definition: hdicoreaiArray.h:12
Header file for Illustrator user interface widgets.
virtual ColorWell * duplicate() const
Convenience method to duplicate a ColorWell object, creating a new and identical UI element to the ta...
virtual ArtColor currentColor() const
Gets the current value of the color well.
virtual void valueChanged()
Simulates the color well having its value changed.
Describes the color of art on the artboard.
Definition: hdicoreArtColor.h:32
virtual Callback *const valueChangedCallback() const
Gets the value changed callback for the color well.
virtual void setCurrentColor(const ArtColor &color_)
Sets the current value of the color well.
virtual ~ColorWell()
ColorWell destructor.