Qyoto  4.0.5
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Properties
QtGui.QSpacerItem Class Reference

The QSpacerItem class provides blank space in a layout. More...

Inheritance diagram for QtGui.QSpacerItem:
Collaboration diagram for QtGui.QSpacerItem:

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)
 
 
override Qt.Orientation ExpandingDirections ()
 
 
override bool IsEmpty ()
 
 
override QSize MaximumSize ()
 
 
override QSize MinimumSize ()
 
 
override QSize SizeHint ()
 
 
override QSpacerItem SpacerItem ()
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QLayoutItem
 QLayoutItem (IQLayoutItem copy)
 
 
 QLayoutItem (Qt.AlignmentFlag alignment=0)
 
 
new QSizePolicy.ControlType ControlTypes ()
 
 
virtual bool HasHeightForWidth ()
 
 
virtual int HeightForWidth (int arg1)
 
 
virtual void Invalidate ()
 
 
virtual QLayout Layout ()
 
 
virtual int MinimumHeightForWidth (int arg1)
 
 
virtual QWidget Widget ()
 
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.IQLayoutItem
new QSizePolicy.ControlType ControlTypes ()
 
Qt.Orientation ExpandingDirections ()
 
bool HasHeightForWidth ()
 
int HeightForWidth (int arg1)
 
void Invalidate ()
 
bool IsEmpty ()
 
QLayout Layout ()
 
QSize MaximumSize ()
 
int MinimumHeightForWidth (int arg1)
 
QSize MinimumSize ()
 
QSize SizeHint ()
 
QSpacerItem SpacerItem ()
 
QWidget Widget ()
 

Protected Member Functions

 QSpacerItem (System.Type dummy)
 
- Protected Member Functions inherited from QtGui.QLayoutItem
 QLayoutItem (System.Type dummy)
 

Properties

override QRect Geometry [get, set]
 
 
- Properties inherited from QtGui.QLayoutItem
new Qt.AlignmentFlag Alignment [get, set]
 
 
abstract QRect Geometry [get, set]
 
 
virtual System.IntPtr SmokeObject [get, set]
 
new Qt.AlignmentFlag Align [get, set]
 
- Properties inherited from QtGui.IQLayoutItem
Qt.AlignmentFlag Alignment [get, set]
 
QRect Geometry [get, set]
 

Additional Inherited Members

- Protected Attributes inherited from QtGui.QLayoutItem
SmokeInvocation interceptor
 

Detailed Description

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().

Constructor & Destructor Documentation

QtGui.QSpacerItem.QSpacerItem ( System.Type  dummy)
protected
QtGui.QSpacerItem.QSpacerItem ( QSpacerItem  copy)

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.

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.

Member Function Documentation

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().

override void QtGui.QSpacerItem.CreateProxy ( )
virtual

Reimplemented from QtGui.QLayoutItem.

new void QtGui.QSpacerItem.Dispose ( )
override Qt.Orientation QtGui.QSpacerItem.ExpandingDirections ( )
virtual

Reimplemented from QLayoutItem::expandingDirections().

Implements QtGui.QLayoutItem.

override bool QtGui.QSpacerItem.IsEmpty ( )
virtual

Reimplemented from QLayoutItem::isEmpty().

Returns true.

Implements QtGui.QLayoutItem.

override QSize QtGui.QSpacerItem.MaximumSize ( )
virtual

Reimplemented from QLayoutItem::maximumSize().

Implements QtGui.QLayoutItem.

override QSize QtGui.QSpacerItem.MinimumSize ( )
virtual

Reimplemented from QLayoutItem::minimumSize().

Implements QtGui.QLayoutItem.

override QSize QtGui.QSpacerItem.SizeHint ( )
virtual

Reimplemented from QLayoutItem::sizeHint().

Implements QtGui.QLayoutItem.

override QSpacerItem QtGui.QSpacerItem.SpacerItem ( )
virtual

Reimplemented from QLayoutItem::spacerItem().

Returns a pointer to this object.

Reimplemented from QtGui.QLayoutItem.

Property Documentation

override QRect QtGui.QSpacerItem.Geometry
getset

Reimplemented from QLayoutItem::geometry().

Reimplemented from QLayoutItem::setGeometry().