YSpacing Class Reference

Implementation of the HSpacing and VSpacing and widgets. More...

#include <YSpacing.h>

Inheritance diagram for YSpacing:

YWidget List of all members.

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]

Detailed Description

Implementation of the HSpacing and VSpacing and widgets.


Constructor & Destructor Documentation

YSpacing::YSpacing const YWidgetOpt opt,
float  layoutUnits,
bool  horizontal,
bool  vertical
 

Constructor

Parameters:
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?


Member Function Documentation

long YSpacing::height  )  const [inline]
 

Height in device dependent units (pixels or character cells)

bool YSpacing::isLayoutStretch YUIDimension  dim  )  const [virtual]
 

Returns true if this is a layout stretch space in dimension "dim". Such widgets will receive special treatment in layout calculations. Inherited from YWidget.

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.

Parameters:
dim Dimension, either YD_HORIZ or YD_VERT

Implements YWidget.

virtual char* YSpacing::widgetClass  )  [inline, virtual]
 

Returns a descriptive name of this widget class for logging, debugging etc.

Reimplemented from YWidget.

long YSpacing::width  )  const [inline]
 

Width in device dependent units (pixels or character cells)


Member Data Documentation

long YSpacing::_size[YUIAllDimensions] [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 18:07:47 2006 for yast2-core by  doxygen 1.4.6