This is a specialization of a layout strategy where a group of quads are sized and placed in a linear sequence along the X axis. More...
#include <horizontallayoutstrategy.h>
Public Member Functions | |
HorizontalLayoutStrategy () | |
Class constructor. | |
virtual | ~HorizontalLayoutStrategy () |
Class destructor. | |
virtual void | Layout (const Rect &OldSelfRect, const Rect &NewSelfRect, const ChildContainer &ChildQuads) |
Updates the dimensions of a collection of QuadRenderables. More... | |
Public Member Functions inherited from Mezzanine::UI::LayoutStrategy | |
LayoutStrategy () | |
Class constructor. | |
virtual | ~LayoutStrategy () |
Class destructor. | |
virtual void | CheckChildAspectRatio (const Vector2 &OldChildSize, Vector2 &NewChildSize, QuadRenderable *Child) |
Preserves a child's aspect ratio if it is configured to do so. More... | |
virtual void | ClampChildToMaxSize (const Rect &NewSelfRect, Vector2 &NewChildSize, QuadRenderable *Child) |
Clamps the updated size to the set maximum size for the child quad. More... | |
virtual void | ClampChildToMinSize (const Rect &NewSelfRect, Vector2 &NewChildSize, QuadRenderable *Child) |
Clamps the updated size to the set minimum size for the child quad. More... | |
virtual Real | HandleChildHorizontalPositioning (const Rect &OldSelfRect, const Rect &NewSelfRect, const Vector2 &NewChildSize, QuadRenderable *Child) |
Handles the positioning of a child on the X axis. More... | |
virtual Real | HandleChildHorizontalSizing (const Rect &OldSelfRect, const Rect &NewSelfRect, const Real PrevAxisResult, QuadRenderable *Child) |
Handles the sizing of a child on the X axis. More... | |
virtual Vector2 | HandleChildPositioning (const Rect &OldSelfRect, const Rect &NewSelfRect, const Vector2 &NewChildSize, QuadRenderable *Child) |
Handles the positioning of a child that needs it's dimensions updated. More... | |
virtual Vector2 | HandleChildSizing (const Rect &OldSelfRect, const Rect &NewSelfRect, QuadRenderable *Child) |
Handles the sizing of a child that needs it's dimensions updated. More... | |
virtual Real | HandleChildVerticalPositioning (const Rect &OldSelfRect, const Rect &NewSelfRect, const Vector2 &NewChildSize, QuadRenderable *Child) |
Handles the positioning of a child on the Y axis. More... | |
virtual Real | HandleChildVerticalSizing (const Rect &OldSelfRect, const Rect &NewSelfRect, const Real PrevAxisResult, QuadRenderable *Child) |
Handles the sizing of a child on the Y axis. More... | |
Additional Inherited Members | |
Public Types inherited from Mezzanine::UI::LayoutStrategy | |
typedef std::vector< Widget * > | ChildContainer |
Basic container type for QuadRenderable storage by this class. | |
typedef ChildContainer::iterator | ChildIterator |
Iterator type for QuadRenderable instances stored by this class. | |
typedef ChildContainer::const_iterator | ConstChildIterator |
Const Iterator type for QuadRenderable instances stored by this class. | |
This is a specialization of a layout strategy where a group of quads are sized and placed in a linear sequence along the X axis.
Definition at line 53 of file horizontallayoutstrategy.h.
|
virtual |
Updates the dimensions of a collection of QuadRenderables.
OldSelfRect | The pre-update dimensions of the calling quad. |
NewSelfRect | The post-update dimensions of the calling quad. |
ChildQuads | A container of all the Quads to be updated by this strategy. |
Reimplemented from Mezzanine::UI::LayoutStrategy.
Definition at line 63 of file horizontallayoutstrategy.cpp.