Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
hdicoreSizePref.h
Go to the documentation of this file.
1
7#ifndef __HDI_CORE_SIZE_PREF__
8#define __HDI_CORE_SIZE_PREF__
9
10#include "hdicoreSize.h"
11#include "hdicorePrefData.h"
12
13namespace hdi
14{
15 namespace core
16 {
20 class SizePref : public PrefData
21 {
22 public:
34
42 SizePref(const SizePref& s_);
43
56 SizePref(const Size& value_, const std::string& name_ = "");
57
63 virtual ~SizePref();
64
73 virtual SizePref& operator=(const SizePref& rhs_);
74
88 virtual SizePref* clone() const;
89
97 virtual Size size() const;
98
107 virtual bool setSize(const Size& s_);
108 };
109
110 typedef std::unique_ptr<Size> SizeUP;
111 typedef std::shared_ptr<Size> SizeSP;
112 typedef std::weak_ptr<Size> SizeWP;
113 }
114}
115
116#endif
117// __HDI_CORE_SIZE_PREF__
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:25
Contains a width and height for a rectangular shape.
Definition: hdicoreSize.h:25
Allows for storage of 2D sizes.
Definition: hdicoreSizePref.h:21
virtual Size size() const
Gets the size for this object.
virtual SizePref & operator=(const SizePref &rhs_)
Allows one SizePref object to be assigned from another.
SizePref(const Size &value_, const std::string &name_="")
Constructs a SizePref object, with new data, to be added to a container at a later time.
virtual bool setSize(const Size &s_)
Sets the size for this object.
virtual ~SizePref()
Destructs a SizePref object.
SizePref()
Constructs an empty SizePref object.
SizePref(const SizePref &s_)
Constructs a new SizePref object from an existing SizePref object (copy constructor)
virtual SizePref * clone() const
Convenience method to clone an SizePref object on the heap.
Header file for general preference data storage.
Header file for describing 2D dimensions (width and height)