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

Layout spacer. More...

Inheritance diagram for os::LayoutSpacer:
os::LayoutNode os::HLayoutSpacer os::VLayoutSpacer

Public Member Functions

 LayoutSpacer (const String &cName, float vWeight=1.0f, LayoutNode *pcParent=NULL, const Point &cMinSize=Point(0.0f, 0.0f), const Point &cMaxSize=Point(MAX_SIZE, MAX_SIZE))
 
void SetMinSize (const Point &cSize)
 
void SetMaxSize (const Point &cSize)
 
Point GetMinSize () const
 
Point GetMaxSize () const
 
- 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 Layout ()
 
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)
 

Detailed Description

Description:
See Also
Author
Kurt Skauen (kurt@.nosp@m.athe.nosp@m.os.cx)

Constructor & Destructor Documentation

LayoutSpacer::LayoutSpacer ( const String cName,
float  vWeight = 1.0f,
LayoutNode pcParent = NULL,
const Point cMinSize = Point(0.0f,0.0f),
const Point cMaxSize = Point(MAX_SIZE,MAX_SIZE) 
)

Member Function Documentation

Point LayoutSpacer::GetMaxSize ( ) const
Point LayoutSpacer::GetMinSize ( ) const
void LayoutSpacer::SetMaxSize ( const Point cSize)
void LayoutSpacer::SetMinSize ( const Point cSize)