MezzanineEngine 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Mezzanine::UI::QuadRenderable Class Reference

This represents a nestable quad for an object in a GUI layout. More...

#include <quadrenderable.h>

+ Inheritance diagram for Mezzanine::UI::QuadRenderable:
+ Collaboration diagram for Mezzanine::UI::QuadRenderable:

Public Types

typedef std::list< Widget * > ChildContainer
 Basic container type for Widget storage by this class.
 
typedef ChildContainer::iterator ChildIterator
 Iterator type for Widget instances stored by this class.
 
typedef
ChildContainer::const_iterator 
ConstChildIterator
 Const Iterator type for Widget instances stored by this class.
 
typedef
RenderLayerGroupContainer::const_iterator 
ConstRenderLayerGroupIterator
 Const Iterator type for RenderLayerGroup instances stored by this class.
 
typedef
RenderLayerContainer::const_iterator 
ConstRenderLayerIterator
 Const Iterator type for RenderLayer instances stored by this class.
 
typedef
ChildContainer::const_reverse_iterator 
ConstReverseChildIterator
 Const Reverse Iterator type for Widget instances stored by this class.
 
typedef std::pair< UInt16, StringGroupOrderEntry
 An std::pair type for storing ZOrders in relation to a named RenderLayerGroup.
 
typedef std::vector
< GroupOrderEntry
GroupOrderEntryVector
 Container type for GroupOrderEntry storage by this class.
 
typedef std::vector
< RenderLayer * > 
RenderLayerContainer
 Basic container type for RenderLayer storage by this class.
 
typedef std::map< String,
RenderLayerGroup * > 
RenderLayerGroupContainer
 Basic container type for RenderLayerGroup storage by this class.
 
typedef
RenderLayerGroupContainer::iterator 
RenderLayerGroupIterator
 Iterator type for RenderLayerGroup instances stored by this class.
 
typedef
RenderLayerContainer::iterator 
RenderLayerIterator
 Iterator type for RenderLayer instances stored by this class.
 
typedef
ChildContainer::reverse_iterator 
ReverseChildIterator
 Reverse Iterator type for Widget instances stored by this class.
 
- Public Types inherited from Mezzanine::UI::Renderable
enum  RenderableType { RT_LineList, RT_Screen, RT_Widget }
 A small enum to describe the type of renderable this is.
 

Public Member Functions

virtual void _AppendRenderData (ScreenRenderData &RenderData)
 Appends the vertices of this renderable to another vector. More...
 
virtual void _AppendRenderDataCascading (ScreenRenderData &RenderData)
 Appends the vertices of this renderable to another vector, and then does the same for this renderable's children. More...
 
virtual Boolean _HasAvailableRenderData () const
 Checks if there are available render data from this QuadRenderable (or it's subrenderables). More...
 
virtual void _MarkAllChildrenDirty ()
 Tells this QuadRenderable to mark each of it's children (and their children) as dirty. More...
 
virtual void _MarkAllLayersDirty ()
 Tells this QuadRenderable that all of it's layers are dirty. More...
 
virtual void _MarkDirty ()
 Marks this renderable as dirty, and informs other renderables if needed. More...
 
virtual void _NotifyParenthood (QuadRenderable *NewParent)
 Notifies this QuadRenderable that it has been added to another QuadRenderable. More...
 
virtual void _SetZOrder (const UInt16 &Zorder)
 Ssts the ZOrder value for this renderable. More...
 
virtual void AddChild (Widget *Child)
 Adds a Widget to this as a child of this quad. More...
 
virtual void AddChild (Widget *Child, const UInt16 ZOrder)
 Adds a Widget to this as a child of this quad. More...
 
void AddLayerToGroup (RenderLayer *Layer, const UInt16 ZOrder, const String &GroupName)
 Adds a RenderLayer to the specified group. More...
 
void AddLayerToGroups (RenderLayer *Layer, const GroupOrderEntryVector &Entrys)
 Adds a RenderLayer to multiple groups. More...
 
virtual Boolean CheckOverlap (const QuadRenderable *Quad) const
 Checks to see if another Quad is overlapping with this one. More...
 
ChildIterator ChildrenBegin ()
 Gets an iterator to the first child Widget. More...
 
ConstChildIterator ChildrenBegin () const
 Gets a const iterator to the first child Widget. More...
 
ChildIterator ChildrenEnd ()
 Gets an iterator to one passed the last child Widget. More...
 
ConstChildIterator ChildrenEnd () const
 Gets an iterator to one passed the last child Widget. More...
 
ImageLayerCreateImageLayer ()
 Creates an ImageLayer for this renderable. More...
 
ImageLayerCreateImageLayer (const UInt16 ZOrder, const String &GroupName)
 Creates an ImageLayer for this renderable and adds it to a RenderLayerGroup. More...
 
ImageLayerCreateImageLayer (const GroupOrderEntryVector &Entrys)
 Creates an ImageLayer for this renderable and adds it to all the specified RenderLayerGroups at the provided ZOrders. More...
 
MultiLineTextLayerCreateMultiLineTextLayer ()
 Creats a MultiLineTextLayer for this renderable. More...
 
MultiLineTextLayerCreateMultiLineTextLayer (const UInt16 ZOrder, const String &GroupName)
 Creats a MultiLineTextLayer for this renderable. More...
 
MultiLineTextLayerCreateMultiLineTextLayer (const GroupOrderEntryVector &Entrys)
 Creates a MultiLineTextLayer for this renderable and adds it to all the specified RenderLayerGroups at the provided ZOrders. More...
 
MultiLineTextLayerCreateMultiLineTextLayer (const String &FontName)
 Creats a MultiLineTextLayer for this renderable. More...
 
MultiLineTextLayerCreateMultiLineTextLayer (const String &FontName, const UInt16 ZOrder, const String &GroupName)
 Creats a MultiLineTextLayer for this renderable. More...
 
MultiLineTextLayerCreateMultiLineTextLayer (const String &FontName, const GroupOrderEntryVector &Entrys)
 Creates a MultiLineTextLayer for this renderable and adds it to all the specified RenderLayerGroups at the provided ZOrders. More...
 
MultiLineTextLayerCreateMultiLineTextLayer (const Real &LineHeight)
 Creats a MultiLineTextLayer for this renderable. More...
 
MultiLineTextLayerCreateMultiLineTextLayer (const Real &LineHeight, const UInt16 ZOrder, const String &GroupName)
 Creats a MultiLineTextLayer for this renderable. More...
 
MultiLineTextLayerCreateMultiLineTextLayer (const Real &LineHeight, const GroupOrderEntryVector &Entrys)
 Creates a MultiLineTextLayer for this renderable and adds it to all the specified RenderLayerGroups at the provided ZOrders. More...
 
RenderLayerGroupCreateOrRetrieveRenderLayerGroup (const String &Name)
 Gets the named RenderLayerGroup or creates one with the specified name if it does not exist. More...
 
RenderLayerGroupCreateRenderLayerGroup (const String &Name)
 Creates a new RenderLayerGroup that can have.

Exceptions
Thisfunction will throw an exception if a group already exists with the provided name.
More...
 
SingleLineTextLayerCreateSingleLineTextLayer ()
 Creats a SingleLineTextLayer for this renderable. More...
 
SingleLineTextLayerCreateSingleLineTextLayer (const UInt16 ZOrder, const String &GroupName)
 Creats a SingleLineTextLayer for this renderable. More...
 
SingleLineTextLayerCreateSingleLineTextLayer (const GroupOrderEntryVector &Entrys)
 Creates a SingleLineTextLayer for this renderable and adds it to all the specified RenderLayerGroups at the provided ZOrders. More...
 
SingleLineTextLayerCreateSingleLineTextLayer (const String &FontName)
 Creats a SingleLineTextLayer for this renderable. More...
 
SingleLineTextLayerCreateSingleLineTextLayer (const String &FontName, const UInt16 ZOrder, const String &GroupName)
 Creats a SingleLineTextLayer for this renderable. More...
 
SingleLineTextLayerCreateSingleLineTextLayer (const String &FontName, const GroupOrderEntryVector &Entrys)
 Creates a SingleLineTextLayer for this renderable and adds it to all the specified RenderLayerGroups at the provided ZOrders. More...
 
SingleLineTextLayerCreateSingleLineTextLayer (const Real &LineHeight)
 Creats a SingleLineTextLayer for this renderable. More...
 
SingleLineTextLayerCreateSingleLineTextLayer (const Real &LineHeight, const UInt16 ZOrder, const String &GroupName)
 Creats a SingleLineTextLayer for this renderable. More...
 
SingleLineTextLayerCreateSingleLineTextLayer (const Real &LineHeight, const GroupOrderEntryVector &Entrys)
 Creates a SingleLineTextLayer for this renderable and adds it to all the specified RenderLayerGroups at the provided ZOrders. More...
 
void DestroyAllRenderLayerGroups ()
 Destroy's all RenderLayerGroups being stored/managed by this QuadRenderable.
 
void DestroyAllRenderLayers ()
 Destroys all RenderLayers being stored by this renderable.
 
void DestroyRenderLayer (RenderLayer *ToBeDestroyed)
 Destroys a RenderLayer being stored by this renderable. More...
 
void DestroyRenderLayerGroup (const String &Name)
 Destroy's a RenderLayerGroup by name. More...
 
void DestroyRenderLayerGroup (RenderLayerGroup *ToBeDestroyed)
 Destroy's a RenderLayerGroup by pointer. More...
 
RenderLayerGroupGetActiveGroup () const
 Gets the current RenderLayerGroup used for rendering. More...
 
virtual Vector2 GetActualPosition () const
 Gets the pixel position of this widget. More...
 
virtual Vector2 GetActualSize () const
 Gets the pixel size of this widget. More...
 
virtual WidgetGetChild (const UInt16 Zorder) const
 Gets a child by it's ZOrder. More...
 
virtual WidgetGetChild (const String &RendName) const
 Gets a child by it's name. More...
 
virtual String GetDerivedSerializableName () const
 Gets the most derived serializable name of this Renderable. More...
 
virtual UI::SizingRules GetHorizontalSizingRules () const
 Gets the current behavior this quad will follow for the X axis when it is resized. More...
 
virtual Real GetIdealHeightForText () const
 Gets the height needed for this quadrenderable to be able to completely display text in it's child text layers. More...
 
virtual bool GetManualTransformUpdates () const
 Gets whether or not this quad will be automatically updated when parent transforms are updated. More...
 
virtual UnifiedVec2 GetMaxSize () const
 Gets the currently set maximum size for this quad. More...
 
virtual UnifiedVec2 GetMinSize () const
 Gets the currently set minimum size for this quad. More...
 
virtual bool GetMousePassthrough () const
 Gets whether or not Mouse Passthrough is enabled. More...
 
QuadRenderableGetNextSibling (Boolean Wrap=true)
 Gets the QuadRenderable after this one among the QuadRenderables owned by it's parent. More...
 
virtual Whole GetNumChildren () const
 Gets the number of children in this QuadRenderable. More...
 
UInt32 GetNumRenderLayerGroups () const
 Gets the number of RenderLayerGroup's created for this renderable. More...
 
UInt32 GetNumRenderLayers () const
 Gets the number of RenderLayers created for this renderable. More...
 
UInt32 GetNumVisibleRenderLayers () const
 Gets the number of RenderLayers that are visible in this renderable. More...
 
QuadRenderableGetParent () const
 Gets the parent of this quad. More...
 
virtual const PositioningInfoGetPositioningPolicy () const
 Gets the current behavior this QuadRenderable will use when it is positioned. More...
 
virtual UI::PositioningFlags GetPositioningRules () const
 Gets the current behavior this quad will follow when it is positioned automatically. More...
 
QuadRenderableGetPrevSibling (Boolean Wrap=true)
 Gets the QuadRenderable before this one among the QuadRenderables owned by it's parent. More...
 
virtual Rect GetRect () const
 Gets this QuadRenderables' Rect. More...
 
RenderLayerGetRenderLayer (const UInt32 &Index) const
 Gets a RenderLayer belonging to this QuadRenderable by index. More...
 
RenderLayerGroupGetRenderLayerGroup (const String &Name) const
 Gets a RenderLayerGroup by name. More...
 
virtual UI::RenderPriority GetRenderPriority () const
 Gets the priority this QuadRenderable should be rendered with. More...
 
virtual const SizingInfoGetSizingPolicy () const
 Gets the current behavior this QuadRenderable will use when it is sized. More...
 
virtual QuadRenderableGetTopMostQuad ()
 Gets the QuadRenderable that is both an ancestor of this quad, and a direct child of the screen. More...
 
virtual UnifiedVec2 GetUnifiedPosition () const
 Gets the position of this QuadRenderable as a Unified Vector2. More...
 
virtual UnifiedRect GetUnifiedRect () const
 Gets the Unified positiona nd size of this QuadRenderable as a unified rect. More...
 
virtual UnifiedVec2 GetUnifiedSize () const
 Gets the size of this QuadRenderable as a Unified Vector2. More...
 
virtual UI::SizingRules GetVerticalSizingRules () const
 Gets the current behavior this quad will follow for the Y axis when it is resized. More...
 
virtual const UInt16GetZOrder () const
 Gets the currently set ZOrder of this QuadRenderable with it's parent. More...
 
virtual Boolean IsChildOfScreen () const
 Gets whether or not this QuadRenderable is a direct child of it's screen. More...
 
virtual Boolean IsInside (const Vector2 &Point) const
 Checks to see if a point in 2D space is inside this quad. More...
 
Boolean IsVertexCachingEnabled () const
 Gets whether or not vertex caching is enabled for this Quad. More...
 
virtual void ProtoDeSerialize (const XML::Node &SelfRoot)
 Take the data stored in an XML Node and overwrite this object with it. More...
 
virtual void ProtoDeSerializeChildQuads (const XML::Node &SelfRoot)
 Take the data stored in an XML Node and overwrite the ChildQuads of this object with it. More...
 
virtual void ProtoDeSerializeProperties (const XML::Node &SelfRoot)
 Take the data stored in an XML Node and overwrite the properties of this object with it. More...
 
virtual void ProtoDeSerializeRenderLayerGroups (const XML::Node &SelfRoot)
 Take the data stored in an XML Node and overwrite the RenderLayerGroups of this object with it. More...
 
virtual void ProtoDeSerializeRenderLayers (const XML::Node &SelfRoot)
 Take the data stored in an XML Node and overwrite the RenderLayers of this object with it. More...
 
virtual void ProtoSerialize (XML::Node &ParentNode) const
 Convert this class to an XML::Node ready for serialization. More...
 
virtual void ProtoSerializeChildQuads (XML::Node &SelfRoot) const
 Convert the child quads of this class to an XML::Node ready for serialization. More...
 
virtual void ProtoSerializeProperties (XML::Node &SelfRoot) const
 Convert the properties of this class to an XML::Node ready for serialization. More...
 
virtual void ProtoSerializeRenderLayerGroups (XML::Node &SelfRoot) const
 Convert the RenderLayerGroups of this class to an XML::Node ready for seriailization. More...
 
virtual void ProtoSerializeRenderLayers (XML::Node &SelfRoot) const
 Convert the RenderLayers of this class to an XML::Node ready for serialization. More...
 
ReverseChildIterator RChildrenBegin ()
 Gets an iterator to the last Widget. More...
 
ConstReverseChildIterator RChildrenBegin () const
 Gets a const iterator to the last Widget. More...
 
ReverseChildIterator RChildrenEnd ()
 Gets an iterator to one before the first child Widget. More...
 
ConstReverseChildIterator RChildrenEnd () const
 Gets a const iterator to one before the first child Widget. More...
 
virtual void RemoveAllChildren ()
 Removes all child Widgets from this QuadRenderable.
 
virtual void RemoveChild (Widget *Child)
 Removes a child Widget by pointer. More...
 
void RemoveLayerFromAllGroups (RenderLayer *Layer)
 Removes a single RenderLayer from all RenderLayerGroups owned by this QuadRenderable. More...
 
void RemoveLayerFromGroup (RenderLayer *Layer, const String &GroupName)
 Removes a single RenderLayer from a specified RenderLayerGroup. More...
 
RenderLayerIterator RenderLayerBegin ()
 Gets an iterator to the first RenderLayer. More...
 
ConstRenderLayerIterator RenderLayerBegin () const
 Gets a const iterator to the first RenderLayer. More...
 
RenderLayerIterator RenderLayerEnd ()
 Gets an iterator to one passed the last RenderLayer. More...
 
ConstRenderLayerIterator RenderLayerEnd () const
 Gets an iterator to one passed the last RenderLayer. More...
 
RenderLayerGroupIterator RenderLayerGroupBegin ()
 Gets an iterator to the first RenderLayerGroup. More...
 
ConstRenderLayerGroupIterator RenderLayerGroupBegin () const
 Gets a const iterator to the first RenderLayerGroup. More...
 
RenderLayerGroupIterator RenderLayerGroupEnd ()
 Gets an iterator to one passed the last RenderLayerGroup. More...
 
ConstRenderLayerGroupIterator RenderLayerGroupEnd () const
 Gets an iterator to one passed the last RenderLayerGroup. More...
 
Boolean RenderLayerGroupExists (const String &Name) const
 Checks to see if a RenderLayerGroup exists. More...
 
void SetActiveGroup (const String &Name)
 Sets the RenderLayerGroup that will be used to render this renderable. More...
 
void SetActiveGroup (RenderLayerGroup *Group)
 Sets the RenderLayerGroup that will be used to render this renderable. More...
 
virtual void SetHorizontalSizingRules (const UI::SizingRules Rules)
 Sets the behavior this quad will have on the X axis when it is resized. More...
 
void SetLocalVertexCaching (Boolean Enable)
 Enables or disables caching of vertex's belonging to this and all child renderables. More...
 
virtual void SetManualTransformUpdates (Boolean Enable)
 Sets whether or not this quad has specific behaviors for it's transform updates and they should not be done automatically. More...
 
virtual void SetMaxSize (const UnifiedVec2 &Max)
 Sets the maximum size this quad is allowed to have. More...
 
virtual void SetMinSize (const UnifiedVec2 &Min)
 Sets the minimum size this quad is allowed to have. More...
 
virtual void SetMousePassthrough (Boolean Enable)
 Sets whether or not this quad should be skipped when determining if the mouse is hovered over this quad. More...
 
virtual void SetPositioningPolicy (const PositioningInfo &Policy)
 Sets the behavior to be used when this QuadRenderable is positioned. More...
 
virtual void SetPositioningRules (const UI::PositioningFlags Rules)
 Sets the behavior this quad will have when it is positioned automatically. More...
 
virtual void SetRenderPriority (const UI::RenderPriority RP)
 Sets the priority this QuadRenderable should be rendered with. More...
 
virtual void SetRenderPriorityCascading (const UI::RenderPriority RP)
 Sets the priority this QuadRenderable and all it's children should be rendered with. More...
 
virtual void SetSizingPolicy (const SizingInfo &Policy)
 Sets the behavior to be used when this QuadRenderable is sized. More...
 
virtual void SetUnifiedPosition (const UnifiedVec2 &Position)
 Sets the position this QuadRenderable will have within it's parent. More...
 
virtual void SetUnifiedSize (const UnifiedVec2 &Size)
 Sets the size this QuadRenderable will have within it's parent. More...
 
virtual void SetVerticalSizingRules (const UI::SizingRules Rules)
 Sets the behavior this quad will have on the Y axis when it is resized. More...
 
virtual void UpdateChildDimensions ()
 Updates the dimensions of the children in this QuadRenderable. More...
 
virtual void UpdateDimensions ()
 Updates the dimensions of this QuadRenderable based on the transform of it's parent. More...
 
virtual void UpdateDimensions (const Rect &OldSelfRect, const Rect &NewSelfRect)
 Updates the dimensions of this QuadRenderable based on the transform of it's parent. More...
 
- Public Member Functions inherited from Mezzanine::UI::Renderable
bool _IsDirty () const
 Gets whether or not this renderable is dirty. More...
 
const StringGetName () const
 Gets the name of this renderable. More...
 
virtual RenderableType GetRenderableType () const =0
 Gets the type of renderable this is. More...
 
ScreenGetScreen () const
 Gets the parent screen of this renderable. More...
 
virtual Boolean GetVisible () const =0
 Gets the visibility setting of this renderable. More...
 
virtual void Hide ()=0
 Forces this renderable to hide.
 
virtual Boolean IsVisible () const =0
 Gets whether or not this renderable is being drawn. More...
 
virtual void SetVisible (Boolean CanSee)=0
 Sets the visibility of this renderable. More...
 
virtual void Show ()=0
 Forces this renderable to be shown.
 

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...
 
- Static Public Member Functions inherited from Mezzanine::UI::Renderable
static String GetSerializableName ()
 Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized. More...
 

Protected Member Functions

 QuadRenderable (Screen *Parent)
 Blank constructor. More...
 
 QuadRenderable (const String &RendName, Screen *Parent)
 Class constructor. More...
 
 QuadRenderable (const String &RendName, const UnifiedRect &RendRect, Screen *Parent)
 Parent-less constructor. More...
 
virtual ~QuadRenderable ()
 Class destructor. More...
 
void AppendLayerVertices (std::vector< VertexData > &Vertices)
 Adds all the vertices belonging to all the layers of this renderable to the provided vector. More...
 
void CleanLayers ()
 Redraws all dirty layers. More...
 
virtual void ProtoDeSerializeImpl (const XML::Node &SelfRoot)
 Implementation method for deseriailizing additional sets of data. More...
 
virtual void ProtoSerializeImpl (XML::Node &SelfRoot) const
 Implementation method for serializing additional sets of data. More...
 
void ResizeLayers (const Whole NewSize)
 Resizes the container for RenderLayers in this QuadRenderable. More...
 
- Protected Member Functions inherited from Mezzanine::UI::Renderable
 Renderable (Screen *Parent)
 Blank constructor. More...
 
 Renderable (const String &RendName, Screen *Parent)
 Class constructor. More...
 
virtual ~Renderable ()
 Class destructor.
 

Protected Attributes

Rect ActDims
 The actual (pixel) position and size of this Quad on the screen it belongs to. More...
 
RenderLayerGroupActiveGroup
 This is a pointer to the group of RenderLayers currently being used for rendering. More...
 
Boolean AllLayersDirty
 Determines whether or not this Quad needs all of it's layers refreshed. Usually after a transform update. More...
 
ChildContainer ChildWidgets
 This is a container storing all the children that belong to this Quad. More...
 
LayoutStrategyLayoutStrat
 This is a pointer to the strategy being used by this Quad to determine the positions and sizes of children during transform updates. More...
 
Boolean ManualTransformUpdates
 Controls whether or not this Quad and it's children will recieve automatic transform updates. More...
 
Boolean MousePassthrough
 Controls whether or not this Quad will be considered for mouse hover checks. More...
 
QuadRenderableParentQuad
 This is a pointer to the Quad that owns this Quad and is responsible for transform updates applied to this Quad. More...
 
PositioningInfo PositioningPolicy
 This stores all the information needed to determine the specific behaviors this Quad should have when it's position is being updated. More...
 
UI::RenderPriority Priority
 Determines the "higher ZOrder" of this Quad compared to all other renderables on screen. More...
 
RenderLayerGroupContainer RenderLayerGroups
 This is a container storing all the RenderLayerGroup instances created by and belonging to this Quad. More...
 
RenderLayerContainer RenderLayers
 This is a container storing all the RenderLayer instances created by and belonging to this Quad. More...
 
SizingInfo SizingPolicy
 This stores all the information needed to determine the specific behaviors this Quad should have when it's size is being updated. More...
 
ScreenRenderDataVertexCache
 This is a pointer to the optional cache of vertex's belonging to this Quad and all of it's children. More...
 
UInt16 ZOrder
 This is the ZOrder of this Quad in relation to all other Quads in it's parent. More...
 
- Protected Attributes inherited from Mezzanine::UI::Renderable
Boolean Dirty
 Stores whether this Renderables vertices need to be regenerated. More...
 
String Name
 The unique name of this Renderable. More...
 
ScreenParentScreen
 A pointer to the Screen that created this Renderable. More...
 
Boolean Visible
 Stores whether this Renderable is to be rendered (also dependent on parent visibility). More...
 

Detailed Description

This represents a nestable quad for an object in a GUI layout.

QuadRenderables use "Unified" units for setting their position and size. Unified units contain both relative and absolute information for their position on screen or inside their parent. It is important to note that the Relative portion of the Unified unit is always calculated first.

The relative portions of the Unified units used to set the dimensions aren't relative to the screen size, but instead their parents size. For the most part QuadRenderables are oblivious to the size of the screen they are in.

It is important to note that the RenderLayer's stored directly by this class are all the layers that were created by this class, in creation order. They aren't not what will be rendered, nor are they in the order they will be rendered in. To get either of these bits of information you must check the active RenderLayerGroup and check the RenderLayers there.

Also only one RenderLayerGroup may render at a time, but a single RenderLayer can be shared between as many groups under the same QuadRenderable as you want.

Definition at line 173 of file quadrenderable.h.

Constructor & Destructor Documentation

Mezzanine::UI::QuadRenderable::QuadRenderable ( Screen Parent)
protected

Blank constructor.

Note
This is primarily useful for (and used as) a basic constructor suitable for XML deserialization post-construction.
Parameters
ParentThe parent screen that created this renderable.

Definition at line 171 of file quadrenderable.cpp.

Mezzanine::UI::QuadRenderable::QuadRenderable ( const String RendName,
Screen Parent 
)
protected

Class constructor.

Parameters
RendNameThe name to be given to this renderable.
ParentThe parent screen that created this renderable.

Definition at line 186 of file quadrenderable.cpp.

Mezzanine::UI::QuadRenderable::QuadRenderable ( const String RendName,
const UnifiedRect RendRect,
Screen Parent 
)
protected

Parent-less constructor.

Parameters
RendNameThe name to be given to this renderable.
RendRectThe rect describing this quad's transform relative to it's parent.
ParentThe parent screen that created this renderable.

Definition at line 201 of file quadrenderable.cpp.

Mezzanine::UI::QuadRenderable::~QuadRenderable ( )
protectedvirtual

Class destructor.

Note
Any and all children of this quad at the time of it's destruction will be destroyed as well. If you want to preserve the children for whatever reason, remove them from the quad prior to destroying it.

Definition at line 219 of file quadrenderable.cpp.

Member Function Documentation

void Mezzanine::UI::QuadRenderable::_AppendRenderData ( ScreenRenderData RenderData)
virtual

Appends the vertices of this renderable to another vector.

Implements Mezzanine::UI::Renderable.

Definition at line 1298 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::_AppendRenderDataCascading ( ScreenRenderData RenderData)
virtual

Appends the vertices of this renderable to another vector, and then does the same for this renderable's children.

Parameters
RenderDataThe vector of vertex's to append to.

Reimplemented in Mezzanine::UI::PagedContainer, and Mezzanine::UI::LayoutContainer.

Definition at line 1311 of file quadrenderable.cpp.

Boolean Mezzanine::UI::QuadRenderable::_HasAvailableRenderData ( ) const
virtual

Checks if there are available render data from this QuadRenderable (or it's subrenderables).

Returns
Returns true if this QuadRenderable has render data that can be appended, false otherwise.

Reimplemented in Mezzanine::UI::MenuEntry.

Definition at line 1336 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::_MarkAllChildrenDirty ( )
virtual

Tells this QuadRenderable to mark each of it's children (and their children) as dirty.

Note
This will also mark itself as dirty in the process.

Definition at line 1278 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::_MarkAllLayersDirty ( )
virtual

Tells this QuadRenderable that all of it's layers are dirty.

Reimplemented in Mezzanine::UI::Screen.

Definition at line 1288 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::_MarkDirty ( )
virtual

Marks this renderable as dirty, and informs other renderables if needed.

Implements Mezzanine::UI::Renderable.

Reimplemented in Mezzanine::UI::Screen.

Definition at line 1269 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::_NotifyParenthood ( QuadRenderable NewParent)
virtual

Notifies this QuadRenderable that it has been added to another QuadRenderable.

Parameters
NewParentA pointer to the QuadRenderable this is becoming the child of.

Reimplemented in Mezzanine::UI::MenuEntry.

Definition at line 1264 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::_SetZOrder ( const UInt16 Zorder)
virtual

Ssts the ZOrder value for this renderable.

Warning
Under no circumstances would any user need to call this method themselves. Doing so can damage how things are rendered.
Parameters
ZorderThe ZOrder this renderable has among the renderables belonging to it's parent.

Definition at line 1259 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::AddChild ( Widget Child)
virtual

Adds a Widget to this as a child of this quad.

Warning
Unless this method is being called from a Screen or LayoutContainer (or it's derived classes) this method is not intended for casual use. Different QuadRenderable implementations have different expectations on their children and may need a specific quantity, or have them inserted in a specific order to achieve the behavior designed for them. Use with care.
Parameters
ChildA pointer to the Widget that is to become a child of this.

Reimplemented in Mezzanine::UI::PagedContainer, and Mezzanine::UI::LinearContainer.

Definition at line 808 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::AddChild ( Widget Child,
const UInt16  ZOrder 
)
virtual

Adds a Widget to this as a child of this quad.

Warning
Unless this method is being called from a Screen or LayoutContainer (or it's derived classes) this method is not intended for casual use. Different QuadRenderable implementations have different expectations on their children and may need a specific quantity, or have them inserted in a specific order to achieve the behavior designed for them. Use with care.
Parameters
ChildA pointer to the Widget that is to become a child of this.
ZOrderThe ZOrder to assign to the child renderable.

Definition at line 832 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::AddLayerToGroup ( RenderLayer Layer,
const UInt16  ZOrder,
const String GroupName 
)

Adds a RenderLayer to the specified group.

Note
If the requested group does not exist it will be created.
Parameters
LayerThe RenderLayer to be added to the named group.
ZOrderThe ZOrder that will be given to this layer to determine the order it is rendered with other layers.
GroupNameThe name of the group the created ImageLayer should be added to.

Definition at line 710 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::AddLayerToGroups ( RenderLayer Layer,
const GroupOrderEntryVector Entrys 
)

Adds a RenderLayer to multiple groups.

Note
If the requested groups do not exist they will be created.
Parameters
LayerThe RenderLayer to be added to the named groups.
EntrysA vector of std::pair's that contain the ZOrders and the names of the groups the provided layer should be added to.

Definition at line 715 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::AppendLayerVertices ( std::vector< VertexData > &  Vertices)
protected

Adds all the vertices belonging to all the layers of this renderable to the provided vector.

Parameters
VerticesThe vector to store the generated vertices.

Definition at line 244 of file quadrenderable.cpp.

Boolean Mezzanine::UI::QuadRenderable::CheckOverlap ( const QuadRenderable Quad) const
virtual

Checks to see if another Quad is overlapping with this one.

Parameters
QuadThe other Quad to check for overlap.
Returns
Returns true if this quad overlaps with the provided quad, false otherwise.

Definition at line 284 of file quadrenderable.cpp.

QuadRenderable::ChildIterator Mezzanine::UI::QuadRenderable::ChildrenBegin ( )

Gets an iterator to the first child Widget.

Returns
Returns an iterator to the first Widget being stored by this QuadRenderable.

Definition at line 886 of file quadrenderable.cpp.

QuadRenderable::ConstChildIterator Mezzanine::UI::QuadRenderable::ChildrenBegin ( ) const

Gets a const iterator to the first child Widget.

Returns
Returns a const iterator to the first Widget being stored by this QuadRenderable.

Definition at line 892 of file quadrenderable.cpp.

QuadRenderable::ChildIterator Mezzanine::UI::QuadRenderable::ChildrenEnd ( )

Gets an iterator to one passed the last child Widget.

Returns
Returns an iterator to one passed the last Widget being stored by this QuadRenderable.

Definition at line 889 of file quadrenderable.cpp.

QuadRenderable::ConstChildIterator Mezzanine::UI::QuadRenderable::ChildrenEnd ( ) const

Gets an iterator to one passed the last child Widget.

Returns
Returns a const iterator to one passed the last Widget being stored by this QuadRenderable.

Definition at line 895 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::CleanLayers ( )
protected

Redraws all dirty layers.

Definition at line 254 of file quadrenderable.cpp.

ImageLayer * Mezzanine::UI::QuadRenderable::CreateImageLayer ( )

Creates an ImageLayer for this renderable.

Note
This will not add the created layer to any group, thus it must be added manually to be rendered.
Returns
Returns a pointer to the created ImageLayer.

Definition at line 450 of file quadrenderable.cpp.

ImageLayer * Mezzanine::UI::QuadRenderable::CreateImageLayer ( const UInt16  ZOrder,
const String GroupName 
)

Creates an ImageLayer for this renderable and adds it to a RenderLayerGroup.

Note
If the requested group does not exist it will be created.
Parameters
ZOrderThe ZOrder that will be given to this layer to determine the order it is rendered with other layers.
GroupNameThe name of the group the created ImageLayer should be added to.
Returns
Returns a pointer to the created ImageLayer.

Definition at line 459 of file quadrenderable.cpp.

ImageLayer * Mezzanine::UI::QuadRenderable::CreateImageLayer ( const GroupOrderEntryVector Entrys)

Creates an ImageLayer for this renderable and adds it to all the specified RenderLayerGroups at the provided ZOrders.

Note
If the requested groups do not exist they will be created.
Parameters
EntrysA vector of std::pair's that contain the ZOrders and the names of the groups the created layer should be added to.
Returns
Returns a pointer to the created ImageLayer.

Definition at line 466 of file quadrenderable.cpp.

MultiLineTextLayer * Mezzanine::UI::QuadRenderable::CreateMultiLineTextLayer ( )

Creats a MultiLineTextLayer for this renderable.

Note
This will not add the created layer to any group, thus it must be added manually to be rendered.
Returns
Returns a pointer to the created layer.

Definition at line 542 of file quadrenderable.cpp.

MultiLineTextLayer * Mezzanine::UI::QuadRenderable::CreateMultiLineTextLayer ( const UInt16  ZOrder,
const String GroupName 
)

Creats a MultiLineTextLayer for this renderable.

Note
If the requested group does not exist it will be created.
Parameters
ZOrderThe ZOrder that will be given to this layer to determine the order it is rendered with other layers.
GroupNameThe name of the group the created TextLayer should be added to.
Returns
Returns a pointer to the created layer.

Definition at line 551 of file quadrenderable.cpp.

MultiLineTextLayer * Mezzanine::UI::QuadRenderable::CreateMultiLineTextLayer ( const GroupOrderEntryVector Entrys)

Creates a MultiLineTextLayer for this renderable and adds it to all the specified RenderLayerGroups at the provided ZOrders.

Note
If the requested groups do not exist they will be created.
Parameters
EntrysA vector of std::pair's that contain the ZOrders and the names of the groups the created layer should be added to.
Returns
Returns a pointer to the created layer.

Definition at line 558 of file quadrenderable.cpp.

MultiLineTextLayer * Mezzanine::UI::QuadRenderable::CreateMultiLineTextLayer ( const String FontName)

Creats a MultiLineTextLayer for this renderable.

Note
This will not add the created layer to any group, thus it must be added manually to be rendered.
Parameters
FontNameThe name of the font to use when rendering characters on the created layer.
Returns
Returns a pointer to the created layer.

Definition at line 565 of file quadrenderable.cpp.

MultiLineTextLayer * Mezzanine::UI::QuadRenderable::CreateMultiLineTextLayer ( const String FontName,
const UInt16  ZOrder,
const String GroupName 
)

Creats a MultiLineTextLayer for this renderable.

Note
If the requested group does not exist it will be created.
Parameters
FontNameThe name of the font to use when rendering characters on the created layer.
ZOrderThe ZOrder that will be given to this layer to determine the order it is rendered with other layers.
GroupNameThe name of the group the created TextLayer should be added to.
Returns
Returns a pointer to the created layer.

Definition at line 574 of file quadrenderable.cpp.

MultiLineTextLayer * Mezzanine::UI::QuadRenderable::CreateMultiLineTextLayer ( const String FontName,
const GroupOrderEntryVector Entrys 
)

Creates a MultiLineTextLayer for this renderable and adds it to all the specified RenderLayerGroups at the provided ZOrders.

Note
If the requested groups do not exist they will be created.
Parameters
FontNameThe name of the font to use when rendering characters on the created layer.
EntrysA vector of std::pair's that contain the ZOrders and the names of the groups the created layer should be added to.
Returns
Returns a pointer to the created layer.

Definition at line 581 of file quadrenderable.cpp.

MultiLineTextLayer * Mezzanine::UI::QuadRenderable::CreateMultiLineTextLayer ( const Real LineHeight)

Creats a MultiLineTextLayer for this renderable.

Note
This will not add the created layer to any group, thus it must be added manually to be rendered.

This constructor defaults to Screen Relative text, but this can be altered after construction.
Parameters
LineHeightThe relative scalar to be used when determining the size of characters generated by this text layer.
Returns
Returns a pointer to the created layer.

Definition at line 588 of file quadrenderable.cpp.

MultiLineTextLayer * Mezzanine::UI::QuadRenderable::CreateMultiLineTextLayer ( const Real LineHeight,
const UInt16  ZOrder,
const String GroupName 
)

Creats a MultiLineTextLayer for this renderable.

Note
If the requested group does not exist it will be created.

This constructor defaults to Screen Relative text, but this can be altered after construction.
Parameters
LineHeightThe relative scalar to be used when determining the size of characters generated by this text layer.
ZOrderThe ZOrder that will be given to this layer to determine the order it is rendered with other layers.
GroupNameThe name of the group the created TextLayer should be added to.
Returns
Returns a pointer to the created layer.

Definition at line 597 of file quadrenderable.cpp.

MultiLineTextLayer * Mezzanine::UI::QuadRenderable::CreateMultiLineTextLayer ( const Real LineHeight,
const GroupOrderEntryVector Entrys 
)

Creates a MultiLineTextLayer for this renderable and adds it to all the specified RenderLayerGroups at the provided ZOrders.

Note
If the requested groups do not exist they will be created.

This constructor defaults to Screen Relative text, but this can be altered after construction.
Parameters
LineHeightThe relative scalar to be used when determining the size of characters generated by this text layer.
EntrysA vector of std::pair's that contain the ZOrders and the names of the groups the created layer should be added to.
Returns
Returns a pointer to the created layer.

Definition at line 604 of file quadrenderable.cpp.

RenderLayerGroup * Mezzanine::UI::QuadRenderable::CreateOrRetrieveRenderLayerGroup ( const String Name)

Gets the named RenderLayerGroup or creates one with the specified name if it does not exist.

Remarks
This function is unlike the "create" function in that it won't throw an exception in an error condition, and it is unlike the "get" function in that it will not return a NULL pointer. This function guarentee's returning a valid RenderLayerGroup with the given name.

The first RenderLayerGroup that is created will automatically be set to the ActiveGroup. You can override this by calling "SetActiveGroup" manually after creating any additional RenderLayerGroup.
Parameters
NameThe name of the RenderLayerGroup to get or create.
Returns
Returns a pointer to the named RenderLayerGroup.

Definition at line 756 of file quadrenderable.cpp.

RenderLayerGroup * Mezzanine::UI::QuadRenderable::CreateRenderLayerGroup ( const String Name)

Creates a new RenderLayerGroup that can have.

Exceptions
Thisfunction will throw an exception if a group already exists with the provided name.

Remarks
The first RenderLayerGroup that is created will automatically be set to the ActiveGroup. You can override this by calling "SetActiveGroup" manually after creating any additional RenderLayerGroup.
Parameters
NameThe name to be given to the new RenderLayerGroup.
Returns
Returns a pointer to the created RenderLayerGroup.

Definition at line 739 of file quadrenderable.cpp.

SingleLineTextLayer * Mezzanine::UI::QuadRenderable::CreateSingleLineTextLayer ( )

Creats a SingleLineTextLayer for this renderable.

Note
This will not add the created layer to any group, thus it must be added manually to be rendered.
Returns
Returns a pointer to the created layer.

Definition at line 473 of file quadrenderable.cpp.

SingleLineTextLayer * Mezzanine::UI::QuadRenderable::CreateSingleLineTextLayer ( const UInt16  ZOrder,
const String GroupName 
)

Creats a SingleLineTextLayer for this renderable.

Note
If the requested group does not exist it will be created.
Parameters
ZOrderThe ZOrder that will be given to this layer to determine the order it is rendered with other layers.
GroupNameThe name of the group the created TextLayer should be added to.
Returns
Returns a pointer to the created layer.

Definition at line 482 of file quadrenderable.cpp.

SingleLineTextLayer * Mezzanine::UI::QuadRenderable::CreateSingleLineTextLayer ( const GroupOrderEntryVector Entrys)

Creates a SingleLineTextLayer for this renderable and adds it to all the specified RenderLayerGroups at the provided ZOrders.

Note
If the requested groups do not exist they will be created.
Parameters
EntrysA vector of std::pair's that contain the ZOrders and the names of the groups the created layer should be added to.
Returns
Returns a pointer to the created layer.

Definition at line 489 of file quadrenderable.cpp.

SingleLineTextLayer * Mezzanine::UI::QuadRenderable::CreateSingleLineTextLayer ( const String FontName)

Creats a SingleLineTextLayer for this renderable.

Note
This will not add the created layer to any group, thus it must be added manually to be rendered.
Parameters
FontNameThe name of the font to use when rendering characters on the created layer.
Returns
Returns a pointer to the created layer.

Definition at line 496 of file quadrenderable.cpp.

SingleLineTextLayer * Mezzanine::UI::QuadRenderable::CreateSingleLineTextLayer ( const String FontName,
const UInt16  ZOrder,
const String GroupName 
)

Creats a SingleLineTextLayer for this renderable.

Note
If the requested group does not exist it will be created.
Parameters
FontNameThe name of the font to use when rendering characters on the created layer.
ZOrderThe ZOrder that will be given to this layer to determine the order it is rendered with other layers.
GroupNameThe name of the group the created TextLayer should be added to.
Returns
Returns a pointer to the created layer.

Definition at line 505 of file quadrenderable.cpp.

SingleLineTextLayer * Mezzanine::UI::QuadRenderable::CreateSingleLineTextLayer ( const String FontName,
const GroupOrderEntryVector Entrys 
)

Creates a SingleLineTextLayer for this renderable and adds it to all the specified RenderLayerGroups at the provided ZOrders.

Note
If the requested groups do not exist they will be created.
Parameters
FontNameThe name of the font to use when rendering characters on the created layer.
EntrysA vector of std::pair's that contain the ZOrders and the names of the groups the created layer should be added to.
Returns
Returns a pointer to the created layer.

Definition at line 512 of file quadrenderable.cpp.

SingleLineTextLayer * Mezzanine::UI::QuadRenderable::CreateSingleLineTextLayer ( const Real LineHeight)

Creats a SingleLineTextLayer for this renderable.

Note
This will not add the created layer to any group, thus it must be added manually to be rendered.

This constructor defaults to Screen Relative text, but this can be altered after construction.
Parameters
LineHeightThe relative scalar to be used when determining the size of characters generated by this text layer.
Returns
Returns a pointer to the created layer.

Definition at line 519 of file quadrenderable.cpp.

SingleLineTextLayer * Mezzanine::UI::QuadRenderable::CreateSingleLineTextLayer ( const Real LineHeight,
const UInt16  ZOrder,
const String GroupName 
)

Creats a SingleLineTextLayer for this renderable.

Note
If the requested group does not exist it will be created.

This constructor defaults to Screen Relative text, but this can be altered after construction.
Parameters
LineHeightThe relative scalar to be used when determining the size of characters generated by this text layer.
ZOrderThe ZOrder that will be given to this layer to determine the order it is rendered with other layers.
GroupNameThe name of the group the created TextLayer should be added to.
Returns
Returns a pointer to the created layer.

Definition at line 528 of file quadrenderable.cpp.

SingleLineTextLayer * Mezzanine::UI::QuadRenderable::CreateSingleLineTextLayer ( const Real LineHeight,
const GroupOrderEntryVector Entrys 
)

Creates a SingleLineTextLayer for this renderable and adds it to all the specified RenderLayerGroups at the provided ZOrders.

Note
If the requested groups do not exist they will be created.

This constructor defaults to Screen Relative text, but this can be altered after construction.
Parameters
LineHeightThe relative scalar to be used when determining the size of characters generated by this text layer.
EntrysA vector of std::pair's that contain the ZOrders and the names of the groups the created layer should be added to.
Returns
Returns a pointer to the created layer.

Definition at line 535 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::DestroyRenderLayer ( RenderLayer ToBeDestroyed)

Destroys a RenderLayer being stored by this renderable.

Parameters
ToBeDestroyedThe RenderLayer to be destroyed.

Definition at line 620 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::DestroyRenderLayerGroup ( const String Name)

Destroy's a RenderLayerGroup by name.

Parameters
NameThe name of the RenderLayerGroup to destroy.

Definition at line 770 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::DestroyRenderLayerGroup ( RenderLayerGroup ToBeDestroyed)

Destroy's a RenderLayerGroup by pointer.

Parameters
ToBeDestroyedThe RenderLayerGroup to be destroyed.

Definition at line 779 of file quadrenderable.cpp.

RenderLayerGroup * Mezzanine::UI::QuadRenderable::GetActiveGroup ( ) const

Gets the current RenderLayerGroup used for rendering.

Returns
Returns a pointer to the group currently being used to render this renderable.

Definition at line 694 of file quadrenderable.cpp.

Vector2 Mezzanine::UI::QuadRenderable::GetActualPosition ( ) const
virtual

Gets the pixel position of this widget.

Returns
Returns a vector2 representing the pixel position of this widget.

Definition at line 936 of file quadrenderable.cpp.

Vector2 Mezzanine::UI::QuadRenderable::GetActualSize ( ) const
virtual

Gets the pixel size of this widget.

Returns
Returns a vector2 representing the pixel size of this widget.

Definition at line 939 of file quadrenderable.cpp.

Widget * Mezzanine::UI::QuadRenderable::GetChild ( const UInt16  Zorder) const
virtual

Gets a child by it's ZOrder.

Note
ZOrders do not have to be unique. In the case of multiple identical ZOrders the first one found will be returned.
Parameters
ZorderThe ZOrder on the child to search for.
Returns
Returns a pointer to the requested child.

Definition at line 838 of file quadrenderable.cpp.

Widget * Mezzanine::UI::QuadRenderable::GetChild ( const String RendName) const
virtual

Gets a child by it's name.

Parameters
RendNameThe name of the child to search for.
Returns
Returns a pointer to the requested child.

Definition at line 848 of file quadrenderable.cpp.

String Mezzanine::UI::QuadRenderable::GetDerivedSerializableName ( ) const
virtual

Gets the most derived serializable name of this Renderable.

Note
When creating a new Renderable class verify this method has a valid return for it in order for serialization to work properly.
Returns
Returns the name of the XML tag from the most derived class of "this".

Reimplemented from Mezzanine::UI::Renderable.

Reimplemented in Mezzanine::UI::Screen, and Mezzanine::UI::Widget.

Definition at line 1246 of file quadrenderable.cpp.

UI::SizingRules Mezzanine::UI::QuadRenderable::GetHorizontalSizingRules ( ) const
virtual

Gets the current behavior this quad will follow for the X axis when it is resized.

Returns
Returns a SizingRules value reprensenting the action this quad will take when it is resized.

Definition at line 406 of file quadrenderable.cpp.

Real Mezzanine::UI::QuadRenderable::GetIdealHeightForText ( ) const
virtual

Gets the height needed for this quadrenderable to be able to completely display text in it's child text layers.

Returns
Returns a Real representing the pixel height this quad needs to be to display it's largest batch of text among it's text layers.

Definition at line 293 of file quadrenderable.cpp.

Boolean Mezzanine::UI::QuadRenderable::GetManualTransformUpdates ( ) const
virtual

Gets whether or not this quad will be automatically updated when parent transforms are updated.

Returns
Returns true if this quad needs manual updating, false if it recieves automatic updates.

Definition at line 344 of file quadrenderable.cpp.

UnifiedVec2 Mezzanine::UI::QuadRenderable::GetMaxSize ( ) const
virtual

Gets the currently set maximum size for this quad.

Returns
Returns a vector2 containing the maximum size for this quad in pixels.

Definition at line 442 of file quadrenderable.cpp.

UnifiedVec2 Mezzanine::UI::QuadRenderable::GetMinSize ( ) const
virtual

Gets the currently set minimum size for this quad.

Returns
Returns a vector2 containing the minimum size for this quad in pixels.

Definition at line 430 of file quadrenderable.cpp.

Boolean Mezzanine::UI::QuadRenderable::GetMousePassthrough ( ) const
virtual

Gets whether or not Mouse Passthrough is enabled.

Returns
Returns true if Mouse Passthrough is enabled, false otherwise.

Definition at line 338 of file quadrenderable.cpp.

QuadRenderable * Mezzanine::UI::QuadRenderable::GetNextSibling ( Boolean  Wrap = true)

Gets the QuadRenderable after this one among the QuadRenderables owned by it's parent.

Parameters
WrapWhether or not you want to return the first QuadRenderable owned by this Quad's parent if this Quad is last.
Returns
Returns a pointer to the next QuadRenderable (by sort order).

Definition at line 951 of file quadrenderable.cpp.

Whole Mezzanine::UI::QuadRenderable::GetNumChildren ( ) const
virtual

Gets the number of children in this QuadRenderable.

Returns
Returns the number of children directly connected to this QuadRenderable.

Definition at line 858 of file quadrenderable.cpp.

UInt32 Mezzanine::UI::QuadRenderable::GetNumRenderLayerGroups ( ) const

Gets the number of RenderLayerGroup's created for this renderable.

Returns
Returns a UInt32 containing the number of RenderLayerGroups in this renderable.

Definition at line 705 of file quadrenderable.cpp.

UInt32 Mezzanine::UI::QuadRenderable::GetNumRenderLayers ( ) const

Gets the number of RenderLayers created for this renderable.

Returns
Returns a UInt32 containing the number of RenderLayers in this renderable.

Definition at line 614 of file quadrenderable.cpp.

UInt32 Mezzanine::UI::QuadRenderable::GetNumVisibleRenderLayers ( ) const

Gets the number of RenderLayers that are visible in this renderable.

Returns
Returns a UInt32 containing the number of RenderLayers that would be rendered if this renderable is visible.

Definition at line 617 of file quadrenderable.cpp.

QuadRenderable * Mezzanine::UI::QuadRenderable::GetParent ( ) const

Gets the parent of this quad.

Returns
Returns a pointer to the parent object of this quad, or NULL if it's the root object.

Definition at line 948 of file quadrenderable.cpp.

const PositioningInfo & Mezzanine::UI::QuadRenderable::GetPositioningPolicy ( ) const
virtual

Gets the current behavior this QuadRenderable will use when it is positioned.

Returns
Returns a const PositioningInfo reference describing how this QuadRenderable is positioned.

Definition at line 370 of file quadrenderable.cpp.

UI::PositioningFlags Mezzanine::UI::QuadRenderable::GetPositioningRules ( ) const
virtual

Gets the current behavior this quad will follow when it is positioned automatically.

Returns
Returns a PositioningFlags value reprensenting the action this quad will take when it is positioned.

Definition at line 394 of file quadrenderable.cpp.

QuadRenderable * Mezzanine::UI::QuadRenderable::GetPrevSibling ( Boolean  Wrap = true)

Gets the QuadRenderable before this one among the QuadRenderables owned by it's parent.

Parameters
WrapWhether or not you want to return the last QuadRenderable owned by this Quad's parent if this Quad is first.
Returns
Returns a pointer to the previous QuadRenderable (by sort order).

Definition at line 967 of file quadrenderable.cpp.

Rect Mezzanine::UI::QuadRenderable::GetRect ( ) const
virtual

Gets this QuadRenderables' Rect.

Note
This function will always return a non-relative rect(units in pixels).
Returns
Returns a Rect containing this QuadRenderables' Position and Size.

Definition at line 942 of file quadrenderable.cpp.

RenderLayer * Mezzanine::UI::QuadRenderable::GetRenderLayer ( const UInt32 Index) const

Gets a RenderLayer belonging to this QuadRenderable by index.

Parameters
IndexThe index of the RenderLayer to retrieve.
Returns
Returns a pointer to the RenderLayer at the specified index.

Definition at line 611 of file quadrenderable.cpp.

RenderLayerGroup * Mezzanine::UI::QuadRenderable::GetRenderLayerGroup ( const String Name) const

Gets a RenderLayerGroup by name.

Parameters
NameThe name of the RenderLayerGroup to retrieve.
Returns
Returns a pointer to the named RenderLayerGroup, or NULL if it does not exist.

Definition at line 763 of file quadrenderable.cpp.

UI::RenderPriority Mezzanine::UI::QuadRenderable::GetRenderPriority ( ) const
virtual

Gets the priority this QuadRenderable should be rendered with.

Returns
Returns an enum value representing this renderables priority level.

Definition at line 357 of file quadrenderable.cpp.

String Mezzanine::UI::QuadRenderable::GetSerializableName ( )
static

Get the name of the the XML tag the Renderable class will leave behind as its instances are serialized.

Returns
A string containing the name of this class.

Definition at line 1251 of file quadrenderable.cpp.

const SizingInfo & Mezzanine::UI::QuadRenderable::GetSizingPolicy ( ) const
virtual

Gets the current behavior this QuadRenderable will use when it is sized.

Returns
Returns a const SizingInfo reference describing how this QuadRenderable is sized.

Definition at line 382 of file quadrenderable.cpp.

QuadRenderable * Mezzanine::UI::QuadRenderable::GetTopMostQuad ( )
virtual

Gets the QuadRenderable that is both an ancestor of this quad, and a direct child of the screen.

Note
Since the screen is pretty much always the root and you can get the screen through other methods, that isn't factored in when searching. If this quad is a direct child of the screen, this will be returned.
Returns
Returns a pointer to the QuadRenderable that is both an ancestor of this quad, and a direct child of the screen.

Definition at line 983 of file quadrenderable.cpp.

UnifiedVec2 Mezzanine::UI::QuadRenderable::GetUnifiedPosition ( ) const
virtual

Gets the position of this QuadRenderable as a Unified Vector2.

Returns
Returns a UnifiedVec2 representing the relative position and pixel offset of this QuadRenderable.

Definition at line 927 of file quadrenderable.cpp.

UnifiedRect Mezzanine::UI::QuadRenderable::GetUnifiedRect ( ) const
virtual

Gets the Unified positiona nd size of this QuadRenderable as a unified rect.

Returns
Returns a UnifiedRect containing the position and size of this QuadRenderable.

Definition at line 933 of file quadrenderable.cpp.

UnifiedVec2 Mezzanine::UI::QuadRenderable::GetUnifiedSize ( ) const
virtual

Gets the size of this QuadRenderable as a Unified Vector2.

Returns
Returns a UnifiedVec2 representing the relative size and pixel offset of this QuadRenderable.

Definition at line 930 of file quadrenderable.cpp.

UI::SizingRules Mezzanine::UI::QuadRenderable::GetVerticalSizingRules ( ) const
virtual

Gets the current behavior this quad will follow for the Y axis when it is resized.

Returns
Returns a SizingRules value reprensenting the action this quad will take when it is resized.

Definition at line 418 of file quadrenderable.cpp.

const UInt16 & Mezzanine::UI::QuadRenderable::GetZOrder ( ) const
virtual

Gets the currently set ZOrder of this QuadRenderable with it's parent.

A QuadRenderable without a parent yet will have the default ZOrder of 0, which is a valid ZOrder when it gains a parent. In these cases it is recommended to check to see if this QuadRenderable has a parent.

Returns
Returns a UInt16 representing this renderables ZOrder.

Definition at line 281 of file quadrenderable.cpp.

Boolean Mezzanine::UI::QuadRenderable::IsChildOfScreen ( ) const
virtual

Gets whether or not this QuadRenderable is a direct child of it's screen.

Returns
Returns true if the screen is this QuadRenderable's parent, false otherwise.

Definition at line 290 of file quadrenderable.cpp.

Boolean Mezzanine::UI::QuadRenderable::IsInside ( const Vector2 Point) const
virtual

Checks to see if a point in 2D space is inside this quad.

Parameters
PointThe point in 2D space to check.
Returns
Returns true if the provided point is within this quad, false otherwise.

Definition at line 287 of file quadrenderable.cpp.

Boolean Mezzanine::UI::QuadRenderable::IsVertexCachingEnabled ( ) const

Gets whether or not vertex caching is enabled for this Quad.

Returns
Returns true if this Quad caches the vertex's of it and it's children, false otherwise.

Definition at line 1003 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::ProtoDeSerialize ( const XML::Node SelfRoot)
virtual

Take the data stored in an XML Node and overwrite this object with it.

Parameters
SelfRootAn XML::Node containing the data to populate this class with.

Reimplemented from Mezzanine::UI::Renderable.

Definition at line 1099 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::ProtoDeSerializeChildQuads ( const XML::Node SelfRoot)
virtual

Take the data stored in an XML Node and overwrite the ChildQuads of this object with it.

Parameters
SelfRootAn XML::Node containing the data to populate this class with.

Reimplemented in Mezzanine::UI::HorizontalScrollbar, and Mezzanine::UI::VerticalScrollbar.

Definition at line 1231 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::ProtoDeSerializeImpl ( const XML::Node SelfRoot)
protectedvirtual

Implementation method for deseriailizing additional sets of data.

Reimplemented from Mezzanine::UI::Renderable.

Reimplemented in Mezzanine::UI::Widget, Mezzanine::UI::RadioButton, Mezzanine::UI::PagedContainer, and Mezzanine::UI::PageProvider.

Definition at line 236 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::ProtoDeSerializeProperties ( const XML::Node SelfRoot)
virtual
void Mezzanine::UI::QuadRenderable::ProtoDeSerializeRenderLayerGroups ( const XML::Node SelfRoot)
virtual

Take the data stored in an XML Node and overwrite the RenderLayerGroups of this object with it.

Parameters
SelfRootAn XML::Node containing the data to populate this class with.

Definition at line 1195 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::ProtoDeSerializeRenderLayers ( const XML::Node SelfRoot)
virtual

Take the data stored in an XML Node and overwrite the RenderLayers of this object with it.

Parameters
SelfRootAn XML::Node containing the data to populate this class with.

Definition at line 1157 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::ProtoSerialize ( XML::Node ParentNode) const
virtual

Convert this class to an XML::Node ready for serialization.

Parameters
ParentNodeThe point in the XML hierarchy that this renderable should be appended to.

Reimplemented from Mezzanine::UI::Renderable.

Definition at line 1011 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::ProtoSerializeChildQuads ( XML::Node SelfRoot) const
virtual

Convert the child quads of this class to an XML::Node ready for serialization.

Parameters
SelfRootThe root node containing all the serialized data for this instance.

Reimplemented in Mezzanine::UI::HorizontalScrollbar, and Mezzanine::UI::VerticalScrollbar.

Definition at line 1086 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::ProtoSerializeImpl ( XML::Node SelfRoot) const
protectedvirtual

Implementation method for serializing additional sets of data.

Reimplemented from Mezzanine::UI::Renderable.

Reimplemented in Mezzanine::UI::Widget, Mezzanine::UI::RadioButton, Mezzanine::UI::PagedContainer, and Mezzanine::UI::PageProvider.

Definition at line 229 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::ProtoSerializeProperties ( XML::Node SelfRoot) const
virtual
void Mezzanine::UI::QuadRenderable::ProtoSerializeRenderLayerGroups ( XML::Node SelfRoot) const
virtual

Convert the RenderLayerGroups of this class to an XML::Node ready for seriailization.

Parameters
SelfRootThe root node containing all the serialized data for this instance.

Definition at line 1058 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::ProtoSerializeRenderLayers ( XML::Node SelfRoot) const
virtual

Convert the RenderLayers of this class to an XML::Node ready for serialization.

Parameters
SelfRootThe root node containing all the serialized data for this instance.

Definition at line 1045 of file quadrenderable.cpp.

QuadRenderable::ReverseChildIterator Mezzanine::UI::QuadRenderable::RChildrenBegin ( )

Gets an iterator to the last Widget.

Parameters
Returnsan iterator to the last Widget being stored by this QuadRenderable.

Definition at line 898 of file quadrenderable.cpp.

QuadRenderable::ConstReverseChildIterator Mezzanine::UI::QuadRenderable::RChildrenBegin ( ) const

Gets a const iterator to the last Widget.

Parameters
Returnsa const iterator to the last Widget being stored by this QuadRenderable.

Definition at line 904 of file quadrenderable.cpp.

QuadRenderable::ReverseChildIterator Mezzanine::UI::QuadRenderable::RChildrenEnd ( )

Gets an iterator to one before the first child Widget.

Parameters
Returnsan iterator to one before the first child Widget being stored by this QuadRenderable.

Definition at line 901 of file quadrenderable.cpp.

QuadRenderable::ConstReverseChildIterator Mezzanine::UI::QuadRenderable::RChildrenEnd ( ) const

Gets a const iterator to one before the first child Widget.

Parameters
Returnsa const iterator to one before the first child Widget being stored by this QuadRenderable.

Definition at line 907 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::RemoveChild ( Widget Child)
virtual

Removes a child Widget by pointer.

Parameters
ChildA point to the child to be removed.

Reimplemented in Mezzanine::UI::PagedContainer.

Definition at line 863 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::RemoveLayerFromAllGroups ( RenderLayer Layer)

Removes a single RenderLayer from all RenderLayerGroups owned by this QuadRenderable.

Parameters
LayerThe RenderLayer to be removed from all groups.

Definition at line 731 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::RemoveLayerFromGroup ( RenderLayer Layer,
const String GroupName 
)

Removes a single RenderLayer from a specified RenderLayerGroup.

Parameters
LayerThe RenderLayer to be removed from the named group.
GroupNameThe name of the RenderLayerGroup the provided layer will be removed from.

Definition at line 723 of file quadrenderable.cpp.

QuadRenderable::RenderLayerIterator Mezzanine::UI::QuadRenderable::RenderLayerBegin ( )

Gets an iterator to the first RenderLayer.

Returns
Returns an iterator to the first RenderLayer being stored by this renderable.

Definition at line 655 of file quadrenderable.cpp.

QuadRenderable::ConstRenderLayerIterator Mezzanine::UI::QuadRenderable::RenderLayerBegin ( ) const

Gets a const iterator to the first RenderLayer.

Returns
Returns a const iterator to the first RenderLayer being stored by this renderable.

Definition at line 661 of file quadrenderable.cpp.

QuadRenderable::RenderLayerIterator Mezzanine::UI::QuadRenderable::RenderLayerEnd ( )

Gets an iterator to one passed the last RenderLayer.

Returns
Returns an iterator to one passed the last RenderLayer being stored by this renderable.

Definition at line 658 of file quadrenderable.cpp.

QuadRenderable::ConstRenderLayerIterator Mezzanine::UI::QuadRenderable::RenderLayerEnd ( ) const

Gets an iterator to one passed the last RenderLayer.

Returns
Returns an iterator to one passed the last RenderLayer being stored by this renderable.

Definition at line 664 of file quadrenderable.cpp.

QuadRenderable::RenderLayerGroupIterator Mezzanine::UI::QuadRenderable::RenderLayerGroupBegin ( )

Gets an iterator to the first RenderLayerGroup.

Returns
Returns an iterator to the first RenderLayerGroup being stored by this renderable.

Definition at line 793 of file quadrenderable.cpp.

QuadRenderable::ConstRenderLayerGroupIterator Mezzanine::UI::QuadRenderable::RenderLayerGroupBegin ( ) const

Gets a const iterator to the first RenderLayerGroup.

Returns
Returns a const iterator to the first RenderLayerGroup being stored by this renderable.

Definition at line 799 of file quadrenderable.cpp.

QuadRenderable::RenderLayerGroupIterator Mezzanine::UI::QuadRenderable::RenderLayerGroupEnd ( )

Gets an iterator to one passed the last RenderLayerGroup.

Returns
Returns an iterator to one passed the last RenderLayerGroup being stored by this renderable.

Definition at line 796 of file quadrenderable.cpp.

QuadRenderable::ConstRenderLayerGroupIterator Mezzanine::UI::QuadRenderable::RenderLayerGroupEnd ( ) const

Gets an iterator to one passed the last RenderLayerGroup.

Returns
Returns an iterator to one passed the last RenderLayerGroup being stored by this renderable.

Definition at line 802 of file quadrenderable.cpp.

Boolean Mezzanine::UI::QuadRenderable::RenderLayerGroupExists ( const String Name) const

Checks to see if a RenderLayerGroup exists.

Parameters
NameThe name of the RenderLayerGroup to check for.
Returns
Returns true if the named RenderLayerGroup exists in this renderable.

Definition at line 699 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::ResizeLayers ( const Whole  NewSize)
protected

Resizes the container for RenderLayers in this QuadRenderable.

Parameters
NewSizeThe new capacity for RenderLayer storage.

Definition at line 266 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetActiveGroup ( const String Name)

Sets the RenderLayerGroup that will be used to render this renderable.

Parameters
NameThe name of the RenderLayerGroup that will be used.

Definition at line 670 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetActiveGroup ( RenderLayerGroup Group)

Sets the RenderLayerGroup that will be used to render this renderable.

Parameters
GroupPointer to the RenderLayerGroup that will be used.

Definition at line 680 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetHorizontalSizingRules ( const UI::SizingRules  Rules)
virtual

Sets the behavior this quad will have on the X axis when it is resized.

Note
This method is not retroactive. Setting this to a different value will not cause it to resize.
Parameters
RulesThe action to take when this is resized. See SizingRules enum for more info.

Definition at line 399 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetLocalVertexCaching ( Boolean  Enable)

Enables or disables caching of vertex's belonging to this and all child renderables.

Remarks
If enabled, this will create a local instance of ScreenRenderData. Whenever this or any of this Quad's children are updated the cache will be flushed and regenerated. When a request to append vertices is made, they will be appended from the local cache. If needed the cache will be regenerated immediately.

This will increase the memory consumed, but in some cases can dramatically increase the performance of redrawing a screen when only a small portion of the screen is changed. By default all direct children of the screen have this enabled.

It is also important to note that this cache is only used when the "_AppendVerticesCascading" method is called.
Parameters
EnableWhether to enable or disable this feature.

Definition at line 992 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetManualTransformUpdates ( Boolean  Enable)
virtual

Sets whether or not this quad has specific behaviors for it's transform updates and they should not be done automatically.

Note
Setting this to true will prevent child quads from being updated. This setting does not mean that a quad will never be updated, just that it has special logic for doing so located elsewhere from the normal logic. Example: Transform updates to be applied to the scroller of a scrollbar.
Parameters
EnableTrue to make this quad skip automatic updating and intent to provide that logic explicitly elsewhere, false for automatic transform updates.

Definition at line 341 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetMaxSize ( const UnifiedVec2 Max)
virtual

Sets the maximum size this quad is allowed to have.

Note
This function expects the provided UnifiedVec2 to be in pixels.
Parameters
MaxThe size this quad is not allowed to exceed.

Definition at line 435 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetMinSize ( const UnifiedVec2 Min)
virtual

Sets the minimum size this quad is allowed to have.

Note
This function expects the provided UnifiedVec2 to be in pixels.
Parameters
MinThe size this quad is not allowed to go under.

Definition at line 423 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetMousePassthrough ( Boolean  Enable)
virtual

Sets whether or not this quad should be skipped when determining if the mouse is hovered over this quad.

Note
This does not affect the ability for the children of this quad to be detected and/or checked.
Parameters
EnableTrue if you want to have this quad be skipped for mouse hover checks, false if you want this quad checked.

Definition at line 335 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetPositioningPolicy ( const PositioningInfo Policy)
virtual

Sets the behavior to be used when this QuadRenderable is positioned.

Note
This method is not retroactive. Setting this to a different value will not cause it to reposition.
Parameters
PolicyThe PositioningInfo to be applied to this QuadRenderable.

Definition at line 363 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetPositioningRules ( const UI::PositioningFlags  Rules)
virtual

Sets the behavior this quad will have when it is positioned automatically.

Note
This method is not retroactive. Setting this to a different value will not cause it to reposition.
Parameters
RulesThe action to take when this is positioned. See PositioningFlags enum for more info.

Definition at line 387 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetRenderPriority ( const UI::RenderPriority  RP)
virtual

Sets the priority this QuadRenderable should be rendered with.

Note
The default value for this is Medium.
Parameters
RPThe priority level to be used when rendering this QuadRenderable.

Definition at line 347 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetRenderPriorityCascading ( const UI::RenderPriority  RP)
virtual

Sets the priority this QuadRenderable and all it's children should be rendered with.

Note
The default value for this is Medium.
Parameters
RPThe priority level to be used when rendering this QuadRenderable and it's children.

Definition at line 350 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetSizingPolicy ( const SizingInfo Policy)
virtual

Sets the behavior to be used when this QuadRenderable is sized.

Note
This method is not retroactive. Setting this to a different value will not cause it to resize.
Parameters
PolicyThe SizingInfo to be applied to this QuadRenderable.

Definition at line 375 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetUnifiedPosition ( const UnifiedVec2 Position)
virtual

Sets the position this QuadRenderable will have within it's parent.

Parameters
PositionThe top-left position relative to it's parents' rect.

Definition at line 913 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetUnifiedSize ( const UnifiedVec2 Size)
virtual

Sets the size this QuadRenderable will have within it's parent.

Parameters
SizeThe width and height relative to it's parents' rect.

Definition at line 920 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::SetVerticalSizingRules ( const UI::SizingRules  Rules)
virtual

Sets the behavior this quad will have on the Y axis when it is resized.

Note
This method is not retroactive. Setting this to a different value will not cause it to resize.
Parameters
RulesThe action to take when this is resized. See SizingRules enum for more info.

Definition at line 411 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::UpdateChildDimensions ( )
virtual

Updates the dimensions of the children in this QuadRenderable.

This is a convenience function that will call the more descriptive version of "UpdateDimensions" on this object using its existing dimensions as both parameters, causing all of this quads children to be updated. This method can be expensive based on the number of children this quad has.

Definition at line 316 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::UpdateDimensions ( )
virtual

Updates the dimensions of this QuadRenderable based on the transform of it's parent.

This is a convenience function that will call the more descriptive version of "UpdateDimensions" on this objects parent using its existing dimensions as both parameters, causing all of its children to be updated (including this). This method can be expensive based on the number of siblings this quad has.

Definition at line 308 of file quadrenderable.cpp.

void Mezzanine::UI::QuadRenderable::UpdateDimensions ( const Rect OldSelfRect,
const Rect NewSelfRect 
)
virtual

Updates the dimensions of this QuadRenderable based on the transform of it's parent.

This function is called automatically by this objects parent when it changes in size or position, and should only need to be called manually if the positioning or sizing rules were updated manually.

Parameters
OldSelfRectThe previous dimensions of this quad prior to it's dimensions being updated.
NewSelfRectThe updated and current dimensions of this quad.

Reimplemented in Mezzanine::UI::PagedContainer, Mezzanine::UI::HorizontalScrollbar, Mezzanine::UI::VerticalScrollbar, and Mezzanine::UI::LayoutContainer.

Definition at line 322 of file quadrenderable.cpp.

Member Data Documentation

Rect Mezzanine::UI::QuadRenderable::ActDims
protected

The actual (pixel) position and size of this Quad on the screen it belongs to.

Definition at line 220 of file quadrenderable.h.

RenderLayerGroup* Mezzanine::UI::QuadRenderable::ActiveGroup
protected

This is a pointer to the group of RenderLayers currently being used for rendering.

Definition at line 226 of file quadrenderable.h.

Boolean Mezzanine::UI::QuadRenderable::AllLayersDirty
protected

Determines whether or not this Quad needs all of it's layers refreshed. Usually after a transform update.

Definition at line 247 of file quadrenderable.h.

ChildContainer Mezzanine::UI::QuadRenderable::ChildWidgets
protected

This is a container storing all the children that belong to this Quad.

Definition at line 211 of file quadrenderable.h.

LayoutStrategy* Mezzanine::UI::QuadRenderable::LayoutStrat
protected

This is a pointer to the strategy being used by this Quad to determine the positions and sizes of children during transform updates.

Definition at line 229 of file quadrenderable.h.

Boolean Mezzanine::UI::QuadRenderable::ManualTransformUpdates
protected

Controls whether or not this Quad and it's children will recieve automatic transform updates.

Definition at line 244 of file quadrenderable.h.

Boolean Mezzanine::UI::QuadRenderable::MousePassthrough
protected

Controls whether or not this Quad will be considered for mouse hover checks.

Definition at line 241 of file quadrenderable.h.

QuadRenderable* Mezzanine::UI::QuadRenderable::ParentQuad
protected

This is a pointer to the Quad that owns this Quad and is responsible for transform updates applied to this Quad.

Definition at line 223 of file quadrenderable.h.

PositioningInfo Mezzanine::UI::QuadRenderable::PositioningPolicy
protected

This stores all the information needed to determine the specific behaviors this Quad should have when it's position is being updated.

Definition at line 217 of file quadrenderable.h.

UI::RenderPriority Mezzanine::UI::QuadRenderable::Priority
protected

Determines the "higher ZOrder" of this Quad compared to all other renderables on screen.

Definition at line 238 of file quadrenderable.h.

RenderLayerGroupContainer Mezzanine::UI::QuadRenderable::RenderLayerGroups
protected

This is a container storing all the RenderLayerGroup instances created by and belonging to this Quad.

Definition at line 205 of file quadrenderable.h.

RenderLayerContainer Mezzanine::UI::QuadRenderable::RenderLayers
protected

This is a container storing all the RenderLayer instances created by and belonging to this Quad.

Definition at line 208 of file quadrenderable.h.

SizingInfo Mezzanine::UI::QuadRenderable::SizingPolicy
protected

This stores all the information needed to determine the specific behaviors this Quad should have when it's size is being updated.

Definition at line 214 of file quadrenderable.h.

ScreenRenderData* Mezzanine::UI::QuadRenderable::VertexCache
protected

This is a pointer to the optional cache of vertex's belonging to this Quad and all of it's children.

Definition at line 232 of file quadrenderable.h.

UInt16 Mezzanine::UI::QuadRenderable::ZOrder
protected

This is the ZOrder of this Quad in relation to all other Quads in it's parent.

Definition at line 235 of file quadrenderable.h.


The documentation for this class was generated from the following files: