Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreColorWell.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_COLOR_WELL__
8#define __HDI_CORE_COLOR_WELL__
9
10#if defined(HDI_CORE_AIP_MODE)
11 #include "hdicoreArtColor.h"
12#elif defined(HDI_CORE_PSP_MODE)
13 #include "hdicoreColor.h"
14#endif
15
16#include "hdicoreWidget.h"
17
18namespace hdi
19{
20 namespace core
21 {
22 #if defined(HDI_CORE_AIP_MODE)
23 typedef ArtColor PluginColor;
24 #elif defined(HDI_CORE_PSP_MODE)
25 typedef Color PluginColor;
26 #endif
27
28 class Callback;
29
33 class ColorWell : public Widget
34 {
35 public:
48
56 ColorWell(const ColorWell& colorwell_);
57
71 ColorWell(const Rect& frame_, const PluginColor& color_);
72
78 virtual ~ColorWell();
79
88 virtual ColorWell& operator=(const ColorWell& rhs_);
89
103 virtual ColorWell* clone() const;
104
115 virtual ColorWell* duplicate() const;
116
124 virtual PluginColor currentColor() const;
125
138 virtual void setCurrentColor(const PluginColor& color_);
139
145 virtual void valueChanged();
146
154 virtual Callback* const valueChangedCallback() const;
155
163 virtual void setValueChangedCallback(const Callback& callback_);
164 };
165
166 typedef std::unique_ptr<ColorWell> ColorWellUP;
167 typedef std::shared_ptr<ColorWell> ColorWellSP;
168 typedef std::weak_ptr<ColorWell> ColorWellWP;
169 }
170}
171
172#endif
173// __HDI_CORE_COLORWELL__
Describes the color of art on the artboard.
Definition: hdicoreArtColor.h:40
Base class for templated __Callback class.
Definition: hdicoreCallback.h:68
Class for color well widgets, which form a clickable square area that represents a color.
Definition: hdicoreColorWell.h:34
virtual ColorWell * duplicate() const
Convenience method to duplicate a ColorWell object, creating a new and identical UI element to the ta...
virtual ColorWell & operator=(const ColorWell &rhs_)
Allows one ColorWell object to be assigned from another.
virtual Callback *const valueChangedCallback() const
Gets the value changed callback for the color well.
virtual PluginColor currentColor() const
Gets the current value of the color well.
ColorWell(const ColorWell &colorwell_)
Constructs a new ColorWell object from an existing ColorWell object (copy constructor)
virtual void valueChanged()
Simulates the color well having its value changed.
virtual void setCurrentColor(const PluginColor &color_)
Sets the current value of the color well.
ColorWell()
Constructs an empty ColorWell object.
virtual ~ColorWell()
ColorWell destructor.
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.
ColorWell(const Rect &frame_, const PluginColor &color_)
Constructs a color well.
Contains Point and Size objects to describe a rectangle that exists at a specific point of given dime...
Definition: hdicoreRect.h:34
Base class for all interface widgets; handles many common needs, e.g. text, position,...
Definition: hdicoreWidget.h:30
Header file for art color manipulation.
Header file for describing plugin UI colors.
Header file for plugin user interface widgets.