libyui  3.0.10
YSquash Class Reference

#include <YSquash.h>

Inheritance diagram for YSquash:
Collaboration diagram for YSquash:

List of all members.

Public Member Functions

virtual ~YSquash ()
virtual const char * widgetClass () const
bool horSquash () const
bool vertSquash () const
bool stretchable (YUIDimension dim) const

Protected Member Functions

 YSquash (YWidget *parent, bool horSquash, bool vertSquash)

Detailed Description

HSquash, VSquash HVSquash:

Squash is a widget that "squashes" its one child during layout, i.e., it reduces it in size down to its preferred size. It may squash vertically, horizontally or in both dimensions.

Definition at line 41 of file YSquash.h.


Constructor & Destructor Documentation

YSquash::YSquash ( YWidget parent,
bool  horSquash,
bool  vertSquash 
) [protected]

Constructor.

Squashes horizontally if 'horSquash' is 'true', vertically if 'vertSquash' is 'true'.

Definition at line 44 of file YSquash.cc.

YSquash::~YSquash ( ) [virtual]

Destructor.

Definition at line 52 of file YSquash.cc.


Member Function Documentation

bool YSquash::horSquash ( ) const

Returns 'true' if this widget squashes horizontally.

Definition at line 58 of file YSquash.cc.

bool YSquash::stretchable ( YUIDimension  dim) const [virtual]

In a squashed dimension the widget NOT stretchable. In an unsquashed dimension the widget is stretchable if the child is stretchable.

Reimplemented from YSingleChildContainerWidget.

Definition at line 70 of file YSquash.cc.

Here is the call graph for this function:

bool YSquash::vertSquash ( ) const

Returns 'true' if this widget squashes vertically.

Definition at line 64 of file YSquash.cc.

const char * YSquash::widgetClass ( ) const [virtual]

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

Reimplemented from YWidget.

Definition at line 80 of file YSquash.cc.


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