CrystalSpace

Public API Reference

Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

csBoxLayout Class Reference
[Layouting]

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

#include <csboxlay.h>

Inheritance diagram for csBoxLayout:

csLayout csDialog csComponent List of all members.

Public Methods

 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. More...

virtual void SuggestSize (int &sugw, int &sugh)
 return best size for this layout. More...

virtual void LayoutContainer ()
 recalc positions and sizes of components. More...


Detailed Description

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

Definition at line 33 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.2.14