7#ifndef __HDI_CORE_SIZE_PREF__
8#define __HDI_CORE_SIZE_PREF__
110 typedef std::unique_ptr<Size> SizeUP;
111 typedef std::shared_ptr<Size> SizeSP;
112 typedef std::weak_ptr<Size> SizeWP;
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)