Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

ONE::gui::AlignedLayout Class Reference

Inheritance diagram for ONE::gui::AlignedLayout:

Inheritance graph
[legend]
List of all members.

Detailed Description

shows a single component

Adding more than one component to this layout will yield strange behavior.

Author:
Daniel Seibert


Public Member Functions

void add (Component *comp, const LayoutConstraint *)
 adds a component to be laid out later
 AlignedLayout (HorzAlignment h=HCENTER, VertAlignment v=VCENTER)
void layout (Widget *obj, const Bounds &inner)
 lays out the given object
Size preferredLayoutSize (const Widget *obj) const
 calculates the preferred size for the given object
void remove (Component *comp)
 removes a component


Constructor & Destructor Documentation

ONE::gui::AlignedLayout::AlignedLayout HorzAlignment  h = HCENTER,
VertAlignment  v = VCENTER
 


Member Function Documentation

void ONE::gui::AlignedLayout::add Component comp,
const LayoutConstraint
[virtual]
 

adds a component to be laid out later

The components are only modified when LayoutManager::layout is called.

Parameters:
comp the component
cons a constraint object which helps the layout manager determine the component's placement

Implements ONE::gui::LayoutManager.

void ONE::gui::AlignedLayout::layout Widget obj,
const Bounds inner
[virtual]
 

lays out the given object

This function will rearrange and resize obj 's content to fit inside inner according to this LayoutManager 's layout strategy.

Parameters:
obj the object that will be laid out
inner obj 's inner bounds

Implements ONE::gui::LayoutManager.

Size ONE::gui::AlignedLayout::preferredLayoutSize const Widget obj  )  const [virtual]
 

calculates the preferred size for the given object

The size is calculated based on this layout manager's layout strategy and the content's preferred sizes. Note, hovever, that this function does not check for the presence of a border around obj.

Parameters:
obj the target of the operation
Returns:
the optimal size for obj

Implements ONE::gui::LayoutManager.

void ONE::gui::AlignedLayout::remove Component comp  )  [virtual]
 

removes a component

Parameters:
comp the component

Implements ONE::gui::LayoutManager.


Generated on Wed Sep 7 19:03:15 2005 for ONEngine by  doxygen 1.4.3