Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreDashStylePref.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_DASH_STYLE_PREF__
8#define __HDI_CORE_DASH_STYLE_PREF__
9
10#if defined(HDI_CORE_AIP_MODE)
11
12#include "hdicorePathStyle.h"
13#include "hdicorePrefData.h"
14
15namespace hdi
16{
17 namespace aip
18 {
19 class PersistentDictionary;
20 }
21
22 namespace core
23 {
27 class DashStylePref : public PrefData
28 {
29 public:
42
51
63 DashStylePref(const DashStyle& value_, const std::string& name_ = "");
64
70 virtual ~DashStylePref();
71
80 virtual DashStylePref& operator=(const DashStylePref& rhs_);
81
95 virtual DashStylePref* clone() const;
96
106 virtual Type dataType() const;
107
115 virtual DashStyle dashStyle() const;
116
125 virtual bool setDashStyle(const DashStyle& value_);
126
127
128 private:
129 friend class StrokeStylePref;
130
136 DashStylePref(aip::PersistentDictionary*&);
137 };
138
139 typedef std::unique_ptr<DashStylePref> DashStylePrefUP;
140 typedef std::shared_ptr<DashStylePref> DashStylePrefSP;
141 typedef std::weak_ptr<DashStylePref> DashStylePrefWP;
142 }
143}
144
145#endif
146// HDI_CORE_AIP_MODE
147
148#endif
149// __HDI_CORE_DASH_STYLE_PREF__
Describes the dash styling of a path.
Definition: hdicorePathStyle.h:22
Allows for storage of dash styles.
Definition: hdicoreDashStylePref.h:28
virtual bool setDashStyle(const DashStyle &value_)
Sets the dash style value for this object.
virtual DashStylePref * clone() const
Convenience method to clone an DashStylePref object on the heap.
DashStylePref(const DashStylePref &ds_)
Constructs a new DashStylePref object from an existing DashStylePref object (copy constructor)
virtual ~DashStylePref()
Destructs a DashStylePref object.
DashStylePref()
Constructs an empty DashStylePref object.
virtual DashStylePref & operator=(const DashStylePref &rhs_)
Allows one DashStylePref object to be assigned from another.
virtual Type dataType() const
Gets the type of persistent data.
virtual DashStyle dashStyle() const
Gets the dash style value for this object.
DashStylePref(const DashStyle &value_, const std::string &name_="")
Constructs a DashStylePref object, with new data, to be added to a container at a later time.
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:25
Type
Describes the type of the data the PrefData object contains; useful for determining which subclass to...
Definition: hdicorePrefData.h:32
Allows for storage of stroke styles.
Definition: hdicoreStrokeStylePref.h:28
Header file for path style-related classes.
Header file for general preference data storage.