libyui
|
#include <YSquash.h>
Public Member Functions | |
virtual | ~YSquash () |
virtual const char * | widgetClass () const |
bool | horSquash () const |
bool | vertSquash () const |
bool | stretchable (YUIDimension dim) const |
Protected Member Functions | |
YSquash (YWidget *parent, bool horSquash, bool vertSquash) |
HSquash, VSquash HVSquash:
Squash is a widget that "squashes" its one child during layout, i.e., it reduces it in size down to its preferred size. It may squash vertically, horizontally or in both dimensions.
YSquash::YSquash | ( | YWidget * | parent, |
bool | horSquash, | ||
bool | vertSquash | ||
) | [protected] |
Constructor.
Squashes horizontally if 'horSquash' is 'true', vertically if 'vertSquash' is 'true'.
YSquash::~YSquash | ( | ) | [virtual] |
Destructor.
bool YSquash::horSquash | ( | ) | const |
Returns 'true' if this widget squashes horizontally.
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 YSingleChildContainerWidget.
bool YSquash::vertSquash | ( | ) | const |
Returns 'true' if this widget squashes vertically.
const char * YSquash::widgetClass | ( | ) | const [virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.