Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreStrokeStylePref.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_STROKE_STYLE_PREF__
8#define __HDI_CORE_STROKE_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 {
28 {
29 public:
42
51
63 StrokeStylePref(const StrokeStyle& value_, const std::string& name_ = "");
64
71
81
95 virtual StrokeStylePref* clone() const;
96
106 virtual Type dataType() const;
107
115 virtual StrokeStyle strokeStyle() const;
116
125 virtual bool setStrokeStyle(const StrokeStyle& value_);
126
127
128 private:
129 friend class PathStylePref;
130
136 StrokeStylePref(aip::PersistentDictionary*&);
137 };
138
139 typedef std::unique_ptr<StrokeStylePref> StrokeStylePrefUP;
140 typedef std::shared_ptr<StrokeStylePref> StrokeStylePrefSP;
141 typedef std::weak_ptr<StrokeStylePref> StrokeStylePrefWP;
142 }
143}
144
145#endif
146// HDI_CORE_AIP_MODE
147
148#endif
149// __HDI_CORE_STROKE_STYLE_PREF__
Allows for storage of path styles.
Definition: hdicorePathStylePref.h:23
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
Describes the stroke styling of a path.
Definition: hdicorePathStyle.h:260
Allows for storage of stroke styles.
Definition: hdicoreStrokeStylePref.h:28
virtual bool setStrokeStyle(const StrokeStyle &value_)
Sets the stroke style value for this object.
virtual StrokeStylePref & operator=(const StrokeStylePref &rhs_)
Allows one StrokeStylePref object to be assigned from another.
virtual Type dataType() const
Gets the type of persistent data.
virtual ~StrokeStylePref()
Destructs a StrokeStylePref object.
StrokeStylePref(const StrokeStyle &value_, const std::string &name_="")
Constructs a StrokeStylePref object, with new data, to be added to a container at a later time.
StrokeStylePref(const StrokeStylePref &ss_)
Constructs a new StrokeStylePref object from an existing StrokeStylePref object (copy constructor)
StrokeStylePref()
Constructs an empty StrokeStylePref object.
virtual StrokeStylePref * clone() const
Convenience method to clone an StrokeStylePref object on the heap.
virtual StrokeStyle strokeStyle() const
Gets the stroke style value for this object.
Header file for path style-related classes.
Header file for general preference data storage.