libyui
|
#include <YSquash.h>
Protected Member Functions | |
YSquash (YWidget *parent, bool horSquash, bool vertSquash) | |
![]() | |
YSingleChildContainerWidget (YWidget *parent) | |
![]() | |
YWidget (YWidget *parent) | |
YWidgetChildrenManager * | childrenManager () const |
void | setChildrenManager (YWidgetChildrenManager *manager) |
void | setBeingDestroyed () |
void | dumpWidget (YWidget *w, int indentationLevel) |
HSquash, VSquash HVSquash: reduce child to its preferred size.
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.
Constructor.
Squashes horizontally if 'horSquash' is 'true', vertically if 'vertSquash' is 'true'.
|
virtual |
Destructor.
bool YSquash::horSquash | ( | ) | const |
Returns 'true' if this widget squashes horizontally.
|
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.
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.