#include <YSpacing.h>
Inheritance diagram for YSpacing:

Public Member Functions | |
| YSpacing (const YWidgetOpt &opt, float layoutUnits, bool horizontal, bool vertical) | |
| virtual char * | widgetClass () |
| long | nicesize (YUIDimension dim) |
| bool | isLayoutStretch (YUIDimension dim) const |
| long | width () const |
| long | height () const |
Private Attributes | |
| long | _size [YUIAllDimensions] |
HSpacing VSpacing Spacing
integer|float size `HSpacing( 0.3 )
| YSpacing::YSpacing | ( | const YWidgetOpt & | opt, | |
| float | layoutUnits, | |||
| bool | horizontal, | |||
| bool | vertical | |||
| ) |
Constructor
| size | the relative size of this widget in logical layout units (normalized to 80x25) | |
| horizontal | flag: use "size" for the horizontal dimension? | |
| vertical | flag: use "size" for the vertical dimension? |
| virtual char* YSpacing::widgetClass | ( | ) | [inline, virtual] |
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.
| long YSpacing::nicesize | ( | YUIDimension | dim | ) | [virtual] |
Minimum size the widget should have to make it look and feel nice. This is 0 for the empty widget.
| dim | Dimension, either YD_HORIZ or YD_VERT |
Implements YWidget.
| bool YSpacing::isLayoutStretch | ( | YUIDimension | dim | ) | const [virtual] |
| long YSpacing::width | ( | ) | const [inline] |
Width in device dependent units (pixels or character cells)
| long YSpacing::height | ( | ) | const [inline] |
Height in device dependent units (pixels or character cells)
long YSpacing::_size[YUIAllDimensions] [private] |
1.5.0