libyui
3.0.10
|
#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
Definition at line 37 of file YSpacing.h.
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.
Definition at line 45 of file YSpacing.cc.
YSpacing::~YSpacing | ( | ) | [virtual] |
Destructor.
Definition at line 55 of file YSpacing.cc.
YUIDimension YSpacing::dimension | ( | ) | const |
Return the primary dimension of this Spacing/Stretch, i.e. the dimension in which it uses space or stretches.
Definition at line 62 of file YSpacing.cc.
int YSpacing::preferredHeight | ( | ) | [virtual] |
Preferred height of the widget.
Reimplemented from YWidget.
Implements YWidget.
Definition at line 90 of file YSpacing.cc.
int YSpacing::preferredWidth | ( | ) | [virtual] |
Preferred width of the widget.
Reimplemented from YWidget.
Implements YWidget.
Definition at line 81 of file YSpacing.cc.
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.
Definition at line 68 of file YSpacing.cc.
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.
Definition at line 74 of file YSpacing.cc.
const char * YSpacing::widgetClass | ( | ) | const [virtual] |
Return a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.
Definition at line 100 of file YSpacing.cc.