Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Examples

YSquash Class Reference

Implementation of the HSquash, VSquash and HVSquash widgets. More...

#include <YSquash.h>

Inheritance diagram for YSquash:

YContainerWidget YWidget List of all members.

Public Member Functions

 YSquash (const YWidgetOpt &opt, bool hsquash, bool vsquash)
virtual char * widgetClass ()
bool stretchable (YUIDimension dim) const

Protected Attributes

bool squash [YUIAllDimensions]

Detailed Description

Implementation of the HSquash, VSquash and HVSquash widgets.

HSquash VSquash HVSquash

The Squash widgets are used to control the layout. A HSquash widget makes its child widget nonstretchable in the horizontal dimension. A VSquash operates vertically, a HVSquash in both dimensions. You can used this for example to reverse the effect of `Left making a widget stretchable. If you want to make a VBox containing for left aligned CheckBoxes, but want the VBox itself to be nonstretchable and centered, than you enclose each CheckBox with a `Left( .. ) and the whole VBox with a HSquash( ... ).

See the Layout HOWTO for details.


Constructor & Destructor Documentation

YSquash::YSquash const YWidgetOpt opt,
bool  hsquash,
bool  vsquash
 

Constructor


Member Function Documentation

bool YSquash::stretchable YUIDimension  dim  )  const [virtual]
 

In a squashed dimension the widget NOT stretchable. In an unsquashed dimension the widget is stretchable if the child is stretchable.

Reimplemented from YContainerWidget.

virtual char* YSquash::widgetClass  )  [inline, virtual]
 

Returns a descriptive name of this widget class for logging, debugging etc.

Reimplemented from YContainerWidget.


Member Data Documentation

bool YSquash::squash[ YUIAllDimensions ] [protected]
 

In which dimensions to squash the contained widget.


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 18:15:25 2007 for yast2-core by doxygen 1.3.6