Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

os::LayoutNode Class Reference

#include <layoutview.h>

Inheritance diagram for os::LayoutNode::

os::HLayoutNode os::LayoutSpacer os::VLayoutNode os::HLayoutSpacer os::VLayoutSpacer List of all members.

Public Methods

 LayoutNode (const std::string &cName, float vWheight=1.0f, LayoutNode *pcParent=NULL, View *pcView=NULL)
virtual ~LayoutNode ()
virtual void SetView (View *pcView)
virtual void Layout ()
virtual void SetBorders (const Rect &cBorder)
virtual Rect GetBorders () const
float GetWheight () const
void SetWheight (float vWheight)
virtual void SetFrame (const Rect &cFrame)
virtual Rect GetFrame () const
virtual Rect GetBounds () const
Rect GetAbsFrame () const
void ExtendMinSize (const Point &cMinSize)
void LimitMaxSize (const Point &cMaxSize)
void ExtendMaxSize (const Point &cMaxSize)
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)
LayoutNode * AddChild (View *pcChild, float vWheight=1.0f)
void RemoveChild (LayoutNode *pcChild)
void RemoveChild (View *pcChild)
std::string GetName () const
const std::vector< LayoutNode *> & GetChildList () const
LayoutNode * GetParent () const
LayoutViewGetLayoutView () const
LayoutNode * FindNode (const std::string &cName, bool bRequrcive=true, bool bIncludeSelf=false)
void SameWidth (const char *pzName1,...)
void SameHeight (const char *pzName1,...)
void SetBorders (const Rect &cBorders, const char *pzFirstName,...)
void SetWheights (float vWheight, 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 Methods

virtual Point CalculatePreferredSize (bool bLargest)

Friends

class LayoutView

Detailed Description

Description:
See also:
Author:
Kurt Skauen (kurt@atheos.cx)


Constructor & Destructor Documentation

LayoutNode::LayoutNode const std::string & cName,
float vWheight = 1.0f,
LayoutNode * pcParent = NULL,
View * pcView = NULL
 

LayoutNode::~LayoutNode [virtual]
 


Member Function Documentation

LayoutNode * LayoutNode::AddChild View * pcChildView,
float vWheight = 1.0f
 

void LayoutNode::AddChild LayoutNode * pcChild
 

void LayoutNode::AddToHeightRing LayoutNode * pcRing
 

void LayoutNode::AddToWidthRing LayoutNode * pcRing
 

void LayoutNode::AdjustPrefSize Point * pcMinSize,
Point * pcMaxSize
 

Point LayoutNode::CalculatePreferredSize bool bLargest [protected, virtual]
 

Reimplemented in os::VLayoutNode.

void LayoutNode::ExtendMaxSize const Point & cMaxSize
 

void LayoutNode::ExtendMinSize const Point & cMinSize
 

LayoutNode * LayoutNode::FindNode const std::string & cName,
bool bRequrcive = true,
bool bIncludeSelf = false
 

Rect LayoutNode::GetAbsFrame const
 

Rect LayoutNode::GetBorders const [virtual]
 

Rect LayoutNode::GetBounds const [virtual]
 

const std::vector< LayoutNode *> & LayoutNode::GetChildList const
 

Rect LayoutNode::GetFrame const [virtual]
 

alignment LayoutNode::GetHAlignment const
 

LayoutView * LayoutNode::GetLayoutView const
 

std::string LayoutNode::GetName const
 

LayoutNode * LayoutNode::GetParent const
 

Point LayoutNode::GetPreferredSize bool bLargest [virtual]
 

alignment LayoutNode::GetVAlignment const
 

float LayoutNode::GetWheight const
 

void LayoutNode::Layout [virtual]
 

Reimplemented in os::HLayoutNode, and os::VLayoutNode.

void LayoutNode::LimitMaxSize const Point & cMaxSize
 

void LayoutNode::RemoveChild View * pcChildView
 

void LayoutNode::RemoveChild LayoutNode * pcChild
 

void LayoutNode::SameHeight const char * pzName1,
...
 

void LayoutNode::SameWidth const char * pzName1,
...
 

void LayoutNode::SetBorders const Rect & cBorders,
const char * pzName1,
...
 

void LayoutNode::SetBorders const Rect & cBorder [virtual]
 

void LayoutNode::SetFrame const Rect & cFrame [virtual]
 

void LayoutNode::SetHAlignment alignment eAlignment
 

void LayoutNode::SetHAlignments alignment eAlign,
const char * pzFirstName,
...
 

void LayoutNode::SetVAlignment alignment eAlignment
 

void LayoutNode::SetVAlignments alignment eAlign,
const char * pzFirstName,
...
 

void LayoutNode::SetView View * pcView [virtual]
 

void LayoutNode::SetWheight float vWheight
 

void LayoutNode::SetWheights float vWheight,
const char * pzFirstName,
...
 


Friends And Related Function Documentation

friend class LayoutView [friend]
 


Generated at Tue Sep 11 15:27:49 2001 for AtheOS higlevel API by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001