Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
Loading...
Searching...
No Matches
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
13namespace hdi
14{
15 namespace core
16 {
20 class RectPref : public PrefData
21 {
22 public:
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::unique_ptr<Rect> RectPrefUP;
111 typedef std::shared_ptr<Rect> RectPrefSP;
112 typedef std::weak_ptr<Rect> RectPrefWP;
113 }
114}
115
116#endif
117// __HDI_CORE_RECT_PREF__
Base class for persistent data objects, stored via JSON.
Definition: hdicorePrefData.h:25
Contains Point and Size objects to describe a rectangle that exists at a specific point of given dime...
Definition: hdicoreRect.h:34
Allows for storage of rects/bounds.
Definition: hdicoreRectPref.h:21
RectPref(const Rect &value_, const std::string &name_="")
Constructs a RectPref object, with new data, to be added to a container at a later time.
virtual RectPref * clone() const
Convenience method to clone an RectPref object on the heap.
virtual Rect rect() const
Gets the rect for this object.
virtual bool setRect(const Rect &rect_)
Sets the rect for this object.
virtual ~RectPref()
Destructs a RectPref object.
virtual RectPref & operator=(const RectPref &rhs_)
Allows one RectPref object to be assigned from another.
RectPref(const RectPref &r_)
Constructs a new RectPref object from an existing RectPref object (copy constructor)
RectPref()
Constructs an empty RectPref object.
Header file for general preference data storage.
Header file for describing rectangles.