libyui
Public Member Functions | Protected Member Functions

YSquash Class Reference

#include <YSquash.h>

Inheritance diagram for YSquash:
YSingleChildContainerWidget YWidget

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.


Constructor & Destructor Documentation

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

Constructor.

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

YSquash::~YSquash ( ) [virtual]

Destructor.


Member Function Documentation

bool YSquash::horSquash ( ) const

Returns 'true' if this widget squashes horizontally.

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.

bool YSquash::vertSquash ( ) const

Returns 'true' if this widget squashes vertically.

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

Returns 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