libyui
3.0.10
|
#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'.
Definition at line 44 of file YSquash.cc.
YSquash::~YSquash | ( | ) | [virtual] |
Destructor.
Definition at line 52 of file YSquash.cc.
bool YSquash::horSquash | ( | ) | const |
Returns 'true' if this widget squashes horizontally.
Definition at line 58 of file YSquash.cc.
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.
Definition at line 70 of file YSquash.cc.
bool YSquash::vertSquash | ( | ) | const |
Returns 'true' if this widget squashes vertically.
Definition at line 64 of file YSquash.cc.
const char * YSquash::widgetClass | ( | ) | const [virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.
Definition at line 80 of file YSquash.cc.