Qyoto
4.0.6
Qyoto is a C# language binding for Qt
|
The QSpacerItem class provides blank space in a layout. More...
Public Member Functions | |
QSpacerItem (QSpacerItem copy) | |
QSpacerItem (int w, int h, QSizePolicy.Policy hData=QSizePolicy.Policy.Minimum, QSizePolicy.Policy vData=QSizePolicy.Policy.Minimum) | |
| |
override void | CreateProxy () |
new void | ChangeSize (int w, int h, QSizePolicy.Policy hData=QSizePolicy.Policy.Minimum, QSizePolicy.Policy vData=QSizePolicy.Policy.Minimum) |
| |
new void | Dispose () |
![]() | |
QLayoutItem (IQLayoutItem copy) | |
QLayoutItem (Qt.AlignmentFlag alignment=0) | |
| |
virtual int | HeightForWidth (int w) |
| |
virtual void | Invalidate () |
| |
virtual int | MinimumHeightForWidth (int w) |
| |
new void | Dispose () |
![]() | |
int | HeightForWidth (int w) |
| |
void | Invalidate () |
| |
int | MinimumHeightForWidth (int w) |
| |
Protected Member Functions | |
QSpacerItem (System.Type dummy) | |
![]() | |
QLayoutItem (System.Type dummy) | |
Additional Inherited Members | |
![]() | |
SmokeInvocation | interceptor |
The QSpacerItem class provides blank space in a layout.
Normally, you don't need to use this class directly. Qt's built-in layout managers provide the following functions for manipulating empty space in layouts:
ClassFunctions
QHBoxLayout addSpacing(), addStretch(), insertSpacing(), insertStretch()
QGridLayout setRowMinimumHeight(), setRowStretch(), setColumnMinimumWidth(), setColumnStretch()
See also QLayout, QWidgetItem, and QLayoutItem::spacerItem().
|
protected |
QtGui.QSpacerItem.QSpacerItem | ( | QSpacerItem | copy | ) |
QtGui.QSpacerItem.QSpacerItem | ( | int | w, |
int | h, | ||
QSizePolicy.Policy | hData = QSizePolicy.Policy.Minimum , |
||
QSizePolicy.Policy | vData = QSizePolicy.Policy.Minimum |
||
) |
Constructs a spacer item with preferred width w, preferred height h, horizontal size policy hPolicy and vertical size policy vPolicy.
The default values provide a gap that is able to stretch if nothing else wants the space.
new void QtGui.QSpacerItem.ChangeSize | ( | int | w, |
int | h, | ||
QSizePolicy.Policy | hData = QSizePolicy.Policy.Minimum , |
||
QSizePolicy.Policy | vData = QSizePolicy.Policy.Minimum |
||
) |
Changes this spacer item to have preferred width w, preferred height h, horizontal size policy hPolicy and vertical size policy vPolicy.
The default values provide a gap that is able to stretch if nothing else wants the space.
Note that if changeSize() is called after the spacer item has been added to a layout, it is necessary to invalidate the layout in order for the spacer item's new size to take effect.
See also QSpacerItem::invalidate().
|
virtual |
Reimplemented from QtGui.QLayoutItem.
new void QtGui.QSpacerItem.Dispose | ( | ) |
|
get |
Reimplemented from QLayoutItem::expandingDirections().
|
getset |
Reimplemented from QLayoutItem::geometry().
Reimplemented from QLayoutItem::setGeometry().
|
get |
Reimplemented from QLayoutItem::isEmpty().
Returns true.
|
get |
Reimplemented from QLayoutItem::maximumSize().
|
get |
Reimplemented from QLayoutItem::minimumSize().
|
get |
Reimplemented from QLayoutItem::sizeHint().
|
get |
Reimplemented from QLayoutItem::spacerItem().
Returns a pointer to this object.