libyui
|
#include <YAlignment.h>
Protected Member Functions | |
YAlignment (YWidget *parent, YAlignmentType horAlign, YAlignmentType vertAlign) | |
![]() | |
YSingleChildContainerWidget (YWidget *parent) | |
![]() | |
YWidget (YWidget *parent) | |
YWidgetChildrenManager * | childrenManager () const |
void | setChildrenManager (YWidgetChildrenManager *manager) |
void | setBeingDestroyed () |
void | dumpWidget (YWidget *w, int indentationLevel) |
Protected Attributes | |
ImplPtr< YAlignmentPrivate > | priv |
Implementation of all the alignment widgets:
|
protected |
Constructor.
|
virtual |
Destructor.
Add a child widget.
Reimplemented from YSingleChildContainerWidget to propagate stretchability down to the single child.
Reimplemented from YWidget.
YAlignmentType YAlignment::alignment | ( | YUIDimension | dim | ) | const |
Return the alignment in the specified dimension.
string YAlignment::backgroundPixmap | ( | ) | const |
Return the name of the background pixmap or an empty string, if there is none.
int YAlignment::bottomMargin | ( | ) | const |
Return the bottom margin in pixels, the distance between the bottom edge of this alignment and the bottom edge of the child widget.
int YAlignment::leftMargin | ( | ) | const |
Return the left margin in pixels, the distance between the left edge of this alignment and the left edge of the child widget.
int YAlignment::minHeight | ( | ) | const |
Return the minimum height of this alignment or 0 if none is set. preferredHeight() will never return less than this value.
int YAlignment::minWidth | ( | ) | const |
Return the minimum width of this alignment or 0 if none is set. preferredWidth() will never return less than this value.
Move a child widget to a new position.
|
virtual |
Preferred height of the widget.
Reimplemented from YWidget.
Reimplemented from YSingleChildContainerWidget.
|
virtual |
Preferred width of the widget.
Reimplemented from YWidget.
Reimplemented from YSingleChildContainerWidget.
int YAlignment::rightMargin | ( | ) | const |
Return 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/libyui/theme/") if the path doesn't start with "/" or ".").
Set the minimum height to return for preferredHeight().
Set the minimum width to return for preferredWidth().
Set the current size and move the child widget according to its alignment.
Derived classes should reimplement this, but call this base class function in their own implementation.
Reimplemented from YSingleChildContainerWidget.
|
virtual |
Return this widget's stretchability. Reimplemented from YWidget.
In an aligned dimension the widget is always stretchable. In an unchanged dimension the widget is stretchable if the child is stretchable.
Reimplemented from YSingleChildContainerWidget.
int YAlignment::topMargin | ( | ) | const |
Return the top margin in pixels, the distance between the top edge of this alignment and the top edge of the child widget.
int YAlignment::totalMargins | ( | YUIDimension | dim | ) | const |
Return the sum of all margins in the specified dimension.
Return a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.