libyui
Public Member Functions

YSpacing Class Reference

#include <YSpacing.h>

Inheritance diagram for YSpacing:
YWidget

List of all members.

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 ()

Detailed Description

HSpacing, VSpacing, HStretch, VStretch


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Preferred height of the widget.

Reimplemented from YWidget.

Implements YWidget.

int YSpacing::preferredWidth ( ) [virtual]

Preferred width of the widget.

Reimplemented from YWidget.

Implements YWidget.

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations Friends