|
libyui
|
#include <YSpacing.h>
Public Member Functions | |
| YSpacing (YWidget *parent, YUIDimension dim, bool stretchable=false, YLayoutSize_t layoutUnits=0.0) | |
| virtual | ~YSpacing () |
| virtual const char * | widgetClass () const |
| YUIDimension | dimension () const |
| int | size () const |
| int | size (YUIDimension dim) const |
| virtual int | preferredWidth () |
| virtual int | preferredHeight () |
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.
| YSpacing::~YSpacing | ( | ) | [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.
| int YSpacing::preferredHeight | ( | ) | [virtual] |
| int YSpacing::preferredWidth | ( | ) | [virtual] |
| 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.
| 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.
| const char * YSpacing::widgetClass | ( | ) | const [virtual] |
Return a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.
1.7.3