Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreColorPref.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_COLOR_PREF__
8 #define __HDI_CORE_COLOR_PREF__
9 
10 #include "hdicoreColor.h"
11 #include "hdicorePrefData.h"
12 
13 namespace hdi
14 {
15  namespace core
16  {
20  class ColorPref : public PrefData
21  {
22  public:
34  ColorPref();
35 
43  ColorPref(const ColorPref& c_);
44 
56  ColorPref(const Color& value_, const std::string& name_ = "");
57 
63  virtual ~ColorPref();
64 
73  virtual ColorPref& operator=(const ColorPref& rhs_);
74 
88  virtual ColorPref* clone() const;
89 
97  virtual Color color() const;
98 
107  virtual bool setColor(const Color& color_);
108  };
109 
110  typedef std::auto_ptr<ColorPref> ColorPrefAP;
111  }
112 }
113 
114 #endif
115 // __HDI_CORE_COLOR_PREF__
virtual ColorPref & operator=(const ColorPref &rhs_)
Allows one ColorPref object to be assigned from another.
Describes an RGB color, with opacity, typically for UI purposes.
Definition: hdicoreColor.h:24
Allows for storage of colors.
Definition: hdicoreColorPref.h:20
virtual Color color() const
Gets the color for this object.
Header file for describing Illustrator UI colors.
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:24
virtual ~ColorPref()
Destructs a ColorPref object.
virtual ColorPref * clone() const
Convenience method to clone an ColorPref object on the heap.
Definition: hdicoreaiArray.h:12
virtual bool setColor(const Color &color_)
Sets the color for this object.
Header file for general preference data storage.
ColorPref()
Constructs an empty ColorPref object.