CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

csBoxLayout Class Reference
[Layouting]

Components are scaled to fit in one row or one column of the canvas. More...

#include <csws/csboxlay.h>

Inheritance diagram for csBoxLayout:

csLayout csDialog csComponent List of all members.

Public Member Functions

 csBoxLayout (csComponent *pParent, int axis)
 Set axis to 0 to align the components along the x-axis in the middle of this layout component.
virtual void SuggestSize (int &sugw, int &sugh)
 return best size for this layout
virtual void LayoutContainer ()
 recalc positions and sizes of components

Detailed Description

Components are scaled to fit in one row or one column of the canvas.

Definition at line 35 of file csboxlay.h.


Constructor & Destructor Documentation

csBoxLayout::csBoxLayout csComponent pParent,
int  axis
 

Set axis to 0 to align the components along the x-axis in the middle of this layout component.

To align along y axis set axis to 1.


Member Function Documentation

virtual void csBoxLayout::LayoutContainer  )  [virtual]
 

recalc positions and sizes of components

Implements csLayout.

virtual void csBoxLayout::SuggestSize int &  sugw,
int &  sugh
[virtual]
 

return best size for this layout

Implements csLayout.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.3.9.1