28 #include "YApplication.h"
49 YUI_CHECK_NEW( priv );
76 if ( dim == priv->dim )
return priv->size;
83 if ( priv->dim == YD_HORIZ )
92 if ( priv->dim == YD_VERT )
102 if ( priv->size > 0 )
103 return ( priv->dim == YD_HORIZ ) ?
"YHSpacing" :
"YVSpacing";
virtual int preferredHeight()
Preferred height of the widget.
Abstract base class of a libYUI user interface.
virtual ~YSpacing()
Destructor.
YSpacing(YWidget *parent, YUIDimension dim, bool stretchable=false, YLayoutSize_t layoutUnits=0.0)
Constructor.
virtual const char * widgetClass() const
Return a descriptive name of this widget class for logging, debugging etc.
virtual int preferredWidth()
Preferred width of the widget.
int size() const
Return the size in the primary dimension.
YUIDimension dimension() const
Return the primary dimension of this Spacing/Stretch, i.e.