Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
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
13namespace hdi
14{
15 namespace core
16 {
20 class ColorPref : public PrefData
21 {
22 public:
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::unique_ptr<ColorPref> ColorPrefUP;
111 typedef std::shared_ptr<ColorPref> ColorPrefSP;
112 typedef std::weak_ptr<ColorPref> ColorPrefWP;
113 }
114}
115
116#endif
117// __HDI_CORE_COLOR_PREF__
Describes an RGB color, with opacity, typically for UI purposes.
Definition: hdicoreColor.h:32
Allows for storage of colors.
Definition: hdicoreColorPref.h:21
virtual ColorPref * clone() const
Convenience method to clone an ColorPref object on the heap.
ColorPref(const Color &value_, const std::string &name_="")
Constructs a ColorPref object, with new data, to be added to a container at a later time.
virtual Color color() const
Gets the color for this object.
virtual ~ColorPref()
Destructs a ColorPref object.
ColorPref(const ColorPref &c_)
Constructs a new ColorPref object from an existing ColorPref object (copy constructor)
virtual ColorPref & operator=(const ColorPref &rhs_)
Allows one ColorPref object to be assigned from another.
ColorPref()
Constructs an empty ColorPref object.
virtual bool setColor(const Color &color_)
Sets the color for this object.
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:25
Header file for describing plugin UI colors.
Header file for general preference data storage.