Hot Door CORE  0.7.0
Adobe® Illustrator® Plug-in Library
hdicoreRectPref.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_RECT_PREF__
8 #define __HDI_CORE_RECT_PREF__
9 
10 #include "hdicoreRect.h"
11 #include "hdicorePrefData.h"
12 
13 namespace hdi
14 {
15  namespace core
16  {
20  class RectPref : public PrefData
21  {
22  public:
33  RectPref();
34 
42  RectPref(const RectPref& r_);
43 
56  RectPref(const Rect& value_, const std::string& name_ = "");
57 
63  virtual ~RectPref();
64 
73  virtual RectPref& operator=(const RectPref& rhs_);
74 
88  virtual RectPref* clone() const;
89 
97  virtual Rect rect() const;
98 
107  virtual bool setRect(const Rect& rect_);
108  };
109 
110  typedef std::auto_ptr<Rect> RectPrefAP;
111  }
112 }
113 
114 #endif
115 // __HDI_CORE_RECT_PREF__
virtual RectPref * clone() const
Convenience method to clone an RectPref object on the heap.
virtual Rect rect() const
Gets the rect for this object.
Header file for describing rectangles.
virtual RectPref & operator=(const RectPref &rhs_)
Allows one RectPref object to be assigned from another.
Allows for storage of rects/bounds.
Definition: hdicoreRectPref.h:20
Contains Point and Size objects to describe a rectangle that exists at a specific point of given dime...
Definition: hdicoreRect.h:26
virtual bool setRect(const Rect &rect_)
Sets the rect for this object.
virtual ~RectPref()
Destructs a RectPref object.
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:24
Definition: hdicoreaiArray.h:12
RectPref()
Constructs an empty RectPref object.
Header file for general preference data storage.