Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csBoxLayout Class Reference

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 Types

enum  AXIS_ORIENTATIONS { X_AXIS = 0, Y_AXIS = 1 }

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.

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

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


Protected Attributes

int mAxis

Detailed Description

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


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000