#include <YAlignment.h>
Inheritance diagram for YAlignment:
Public Member Functions | |
YAlignment (const YWidgetOpt &opt, YAlignmentType halign, YAlignmentType valign) | |
virtual char * | widgetClass () |
virtual void | moveChild (YWidget *child, long newx, long newy)=0 |
bool | stretchable (YUIDimension dim) const |
void | setSize (long newwidth, long newheight) |
long | nicesize (YUIDimension dim) |
long | leftMargin () const |
long | rightMargin () const |
long | topMargin () const |
long | bottomMargin () const |
long | totalMargins (YUIDimension dim) const |
void | setLeftMargin (long margin) |
void | setRightMargin (long margin) |
void | setTopMargin (long margin) |
void | setBottomMargin (long margin) |
long | minWidth () const |
long | minHeight () const |
void | setMinWidth (long width) |
void | setMinHeight (long height) |
virtual void | setBackgroundPixmap (string px) |
string | backgroundPixmap () const |
Protected Attributes | |
YAlignmentType | align [YUIAllDimensions] |
long | _leftMargin |
long | _rightMargin |
long | _topMargin |
long | _bottomMargin |
long | _minWidth |
long | _minHeight |
string | _backgroundPixmap |
|
Constructor
|
|
Returns the name of the background pixmap or an empty string, if there is none. |
|
Returns the bottom margin in pixels, the distance between the bottom edge of this alignment and the bottom edge of the child widget. |
|
Returns the left margin in pixels, the distance between the left edge of this alignment and the left edge of the child widget. |
|
Returns the minimum height of this alignment or 0 if none is set. nicesize() will never return less than this value. |
|
Returns the minimum width of this alignment or 0 if none is set. nicesize() will never return less than this value. |
|
Moves a child widget to a new position. |
|
Returns the preferred size of this widget, taking margins into account. Reimplemented from YContainerWidget.
Reimplemented from YContainerWidget. |
|
Returns the right margin in pixels, the distance between the right edge of this alignment and the right edge of the child widget. |
|
Set a background pixmap. Derived classes may want to overwrite this. This parent method should be called first in the overwritten method to ensure path expansion is done as specified (prepend the theme path ("/usr/share/YaST2/theme/current/") if the path doesn't start with "/" or "."). |
|
Set the bottom margin in pixels. |
|
Set the left margin in pixels. |
|
Set the minimum height to return for nicesize(). |
|
Set the minimum width to return for nicesize(). |
|
Set the right margin in pixels. |
|
Sets the size and move the child widget according to its alignment. The UI specific widget subclass overrides this function in order to resize the ui specific widget, but calls this method at the end. Reimplemented from YContainerWidget. |
|
Set the top margin in pixels. |
|
In an aligned dimension the widget is always stretchable. In an unchanged dimension the widget is stretchable if the child is stretchable. Reimplemented from YContainerWidget. |
|
Returns the top margin in pixels, the distance between the top edge of this alignment and the top edge of the child widget. |
|
Returns the sum of all margins in the specified dimension. |
|
Returns a descriptive name of this widget class for logging, debugging etc. Reimplemented from YContainerWidget. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|