This is a helper class designed to describe the behaviors of a quad when it needs to be resized. More...
#include <sizinginfo.h>
Public Member Functions | |
SizingInfo () | |
Class constructor. | |
SizingInfo (const UnifiedVec2 &Size) | |
Size constructor. More... | |
SizingInfo (const UI::SizingRules HRules, const UI::SizingRules VRules) | |
Rules constructor. More... | |
SizingInfo (const UI::SizingRules HRules, const UI::SizingRules VRules, const UnifiedVec2 &Size) | |
Descriptive constructor. More... | |
SizingInfo (const SizingInfo &Other) | |
Copy constructor. More... | |
~SizingInfo () | |
Class destructor. | |
bool | CanExpand () const |
Cheacks to see if this will expand horizontally or vertically. More... | |
bool | CanExpandHorizontally () const |
Checks to see if this will expand horizontally. More... | |
bool | CanExpandVertically () const |
Checks to see if this will expand vertically. More... | |
bool | operator!= (const SizingInfo &Other) const |
Inequality comparison operator. More... | |
bool | operator== (const SizingInfo &Other) const |
Equality comparison operator. More... | |
void | ProtoDeSerialize (const XML::Node &SelfRoot) |
Take the data stored in an XML Node and overwrite this object with it. More... | |
void | ProtoSerialize (XML::Node &ParentNode) const |
Convert this class to an XML::Node ready for serialization. More... | |
Static Public Member Functions | |
static String | GetSerializableName () |
Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized. More... | |
Public Attributes | |
UI::SizingRules | HorizontalRules |
Rules for resizing on the X axis. | |
UnifiedVec2 | MaxSize |
The maximum permitted size. | |
UnifiedVec2 | MinSize |
The minumum permitted size. | |
UI::AspectRatioLock | RatioLock |
Rule for determining aspect ratio lock. | |
UnifiedVec2 | USize |
Unified dimensions to be used if the resize rules permits it. | |
UI::SizingRules | VerticalRules |
Rules for resizing on the Y axis. | |
This is a helper class designed to describe the behaviors of a quad when it needs to be resized.
This struct contains all the information necessary to define complete behavior of sizing child quads within a quad.
Definition at line 56 of file sizinginfo.h.
|
inline |
Size constructor.
Size | A UnifiedVector2 to be used if the rules provided permit it on sizing. |
Definition at line 83 of file sizinginfo.h.
|
inline |
Rules constructor.
HRules | The rules to be used for resizing on the X axis. |
VRules | The rules to be used for resizing on the Y axis. |
Definition at line 88 of file sizinginfo.h.
|
inline |
Descriptive constructor.
HRules | The rules to be used for resizing on the X axis. |
VRules | The rules to be used for resizing on the Y axis. |
Size | A UnifiedVector2 to be used if the rules provided permit it on sizing. |
Definition at line 94 of file sizinginfo.h.
|
inline |
Copy constructor.
Other | The other SizingInfo to copy from. |
Definition at line 98 of file sizinginfo.h.
|
inline |
Cheacks to see if this will expand horizontally or vertically.
Definition at line 117 of file sizinginfo.h.
|
inline |
Checks to see if this will expand horizontally.
Definition at line 109 of file sizinginfo.h.
|
inline |
Checks to see if this will expand vertically.
Definition at line 113 of file sizinginfo.h.
|
inlinestatic |
Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized.
Definition at line 215 of file sizinginfo.h.
|
inline |
Inequality comparison operator.
Other | The other SizingInfo to compare to. |
Definition at line 138 of file sizinginfo.h.
|
inline |
Equality comparison operator.
Other | The other SizingInfo to compare to. |
Definition at line 126 of file sizinginfo.h.
|
inline |
Take the data stored in an XML Node and overwrite this object with it.
SelfRoot | An XML::Node containing the data to populate this class with. |
Definition at line 178 of file sizinginfo.h.
|
inline |
Convert this class to an XML::Node ready for serialization.
ParentNode | The point in the XML hierarchy that all this renderable should be appended to. |
Definition at line 153 of file sizinginfo.h.