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