Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
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 
13 namespace hdi
14 {
15  namespace core
16  {
20  class SizePref : public PrefData
21  {
22  public:
33  SizePref();
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::auto_ptr<Size> SizeAP;
111  }
112 }
113 
114 #endif
115 // __HDI_CORE_SIZE_PREF__
virtual bool setSize(const Size &s_)
Sets the size for this object.
virtual SizePref * clone() const
Convenience method to clone an SizePref object on the heap.
virtual ~SizePref()
Destructs a SizePref object.
virtual SizePref & operator=(const SizePref &rhs_)
Allows one SizePref object to be assigned from another.
Header file for describing 2D dimensions (width and height)
Allows for storage of 2D sizes.
Definition: hdicoreSizePref.h:20
SizePref()
Constructs an empty SizePref object.
Contains a width and height for a rectangular shape.
Definition: hdicoreSize.h:24
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:24
Definition: hdicoreaiArray.h:12
virtual Size size() const
Gets the size for this object.
Header file for general preference data storage.