libyui  3.0.10
YSpacing Class Reference

#include <YSpacing.h>

Inheritance diagram for YSpacing:
Collaboration diagram for YSpacing:

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

Definition at line 37 of file YSpacing.h.


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.

Definition at line 45 of file YSpacing.cc.

Here is the call graph for this function:

YSpacing::~YSpacing ( ) [virtual]

Destructor.

Definition at line 55 of file YSpacing.cc.


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.

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.

Here is the call graph for this function:


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