libyui
|
#include <YSpacing.h>
Additional Inherited Members | |
![]() | |
YWidget (YWidget *parent) | |
YWidgetChildrenManager * | childrenManager () const |
void | setChildrenManager (YWidgetChildrenManager *manager) |
void | setBeingDestroyed () |
void | dumpWidget (YWidget *w, int indentationLevel) |
HSpacing, VSpacing, HStretch, VStretch
YSpacing::YSpacing | ( | YWidget * | parent, |
YUIDimension | dim, | ||
bool | stretchable = false, | ||
YLayoutSize_t | layoutUnits = 0.0 ) |
Constructor.
A Spacing/Stretch widget works only in one dimension ('dim') at the same time. But it can be stretchable and have a size at the same time, in which case the specified size acts very much like a minimal size - but not exactly, since YLayoutBox will reduce Spacings first before other widgets have to be resized below their preferred size.
'layoutUnits' is specified in abstract UI units where a main window (800x600 pixels in the Qt UI) corresponds to a 80x25 window.
|
virtual |
Destructor.
YUIDimension YSpacing::dimension | ( | ) | const |
Return the primary dimension of this Spacing/Stretch, i.e. the dimension in which it uses space or stretches.
|
virtual |
|
virtual |
int YSpacing::size | ( | ) | const |
Return the size in the primary dimension.
This is the device dependent size (pixels or character cells), not the abstract UI layout unit from the constructor.
int YSpacing::size | ( | YUIDimension | dim | ) | const |
Return the size in the specified dimension.
This is the device dependent size (pixels or character cells), not the abstract UI layout unit from the constructor.
Return a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.