#include <YSquash.h>
Inheritance diagram for YSquash:
Public Member Functions | |
YSquash (const YWidgetOpt &opt, bool hsquash, bool vsquash) | |
virtual char * | widgetClass () |
bool | stretchable (YUIDimension dim) const |
Protected Attributes | |
bool | squash [YUIAllDimensions] |
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 |
|
In a squashed dimension the widget NOT stretchable. In an unsquashed dimension the widget is stretchable if the child is stretchable. Reimplemented from YContainerWidget. |
|
Returns a descriptive name of this widget class for logging, debugging etc. Reimplemented from YContainerWidget. |
|
In which dimensions to squash the contained widget. |