Pyro higlevel API
Public Member Functions | Protected Member Functions | List of all members
os::VLayoutNode Class Reference

Vertical Layout class. More...

Inheritance diagram for os::VLayoutNode:
os::LayoutNode

Public Member Functions

 VLayoutNode (const String &cName, float vWeight=1.0f, LayoutNode *pcParent=NULL, View *pcView=NULL)
 
virtual void Layout ()
 
- Public Member Functions inherited from os::LayoutNode
 LayoutNode (const String &cName, float vWeight=1.0f, LayoutNode *pcParent=NULL, View *pcView=NULL)
 
virtual ~LayoutNode ()
 
virtual void SetView (View *pcView)
 
ViewGetView () const
 
virtual void SetBorders (const Rect &cBorder)
 
virtual Rect GetBorders () const
 
void ExtendMinSize (const Point &cMinSize)
 
void LimitMaxSize (const Point &cMaxSize)
 
void ExtendMaxSize (const Point &cMaxSize)
 
float GetWeight () const
 
void SetWeight (float vWeight)
 
virtual void SetFrame (const Rect &cFrame)
 
virtual Rect GetFrame () const
 
virtual Rect GetBounds () const
 
Rect GetAbsFrame () const
 
void SetHAlignment (alignment eAlignment)
 
void SetVAlignment (alignment eAlignment)
 
alignment GetHAlignment () const
 
alignment GetVAlignment () const
 
void AdjustPrefSize (Point *pcMinSize, Point *pcMaxSize)
 
virtual Point GetPreferredSize (bool bLargest)
 
void AddChild (LayoutNode *pcChild)
 
LayoutNodeAddChild (View *pcChild, float vWeight=1.0f)
 
void RemoveChild (LayoutNode *pcChild)
 
void RemoveChild (View *pcChild)
 
String GetName () const
 
const std::vector< LayoutNode * > & GetChildList () const
 
LayoutNodeGetParent () const
 
LayoutViewGetLayoutView () const
 
LayoutNodeFindNode (const String &cName, bool bRecursive=true, bool bIncludeSelf=false)
 
void SameWidth (const char *pzName1,...)
 
void SameHeight (const char *pzName1,...)
 
void SetBorders (const Rect &cBorders, const char *pzFirstName,...)
 
void SetWeights (float vWeight, const char *pzFirstName,...)
 
void SetHAlignments (alignment eAlign, const char *pzFirstName,...)
 
void SetVAlignments (alignment eAlign, const char *pzFirstName,...)
 
void AddToWidthRing (LayoutNode *pcRing)
 
void AddToHeightRing (LayoutNode *pcRing)
 

Protected Member Functions

virtual Point CalculatePreferredSize (bool bLargest)
 

Detailed Description

Description:
This class is used whenever GUI elements are to be laid out on top of each other (in a vertical faishon).
See Also
LayoutNode
Author
Kurt Skauen (kurt@.nosp@m.athe.nosp@m.os.cx)

Constructor & Destructor Documentation

VLayoutNode::VLayoutNode ( const String cName,
float  vWeight = 1.0f,
LayoutNode pcParent = NULL,
View pcView = NULL 
)

Member Function Documentation

Point VLayoutNode::CalculatePreferredSize ( bool  bLargest)
protectedvirtual
void VLayoutNode::Layout ( )
virtual