Qyoto  4.0.7
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator 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)
  More...
 
override void CreateProxy ()
 
new void ChangeSize (int w, int h, QSizePolicy.Policy hData=QSizePolicy.Policy.Minimum, QSizePolicy.Policy vData=QSizePolicy.Policy.Minimum)
  More...
 
new void Dispose ()
 
- Public Member Functions inherited from QtGui.QLayoutItem
 QLayoutItem (IQLayoutItem copy)
 
 QLayoutItem (Qt.AlignmentFlag alignment=0)
  More...
 
virtual int HeightForWidth (int w)
  More...
 
virtual void Invalidate ()
  More...
 
virtual int MinimumHeightForWidth (int w)
  More...
 
new void Dispose ()
 

Protected Member Functions

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

Properties

override QRect Geometry [get, set]
  More...
 
override Qt.Orientation ExpandingDirections [get]
  More...
 
override bool IsEmpty [get]
  More...
 
override QSize MaximumSize [get]
  More...
 
override QSize MinimumSize [get]
  More...
 
override QSize SizeHint [get]
  More...
 
override QSpacerItem SpacerItem [get]
  More...
 
- Properties inherited from QtGui.QLayoutItem
Qt.AlignmentFlag Alignment [get, set]
  More...
 
virtual QRect Geometry [get, set]
  More...
 
QSizePolicy.ControlType ControlTypes [get]
  More...
 
virtual Qt.Orientation ExpandingDirections [get]
  More...
 
virtual bool HasHeightForWidth [get]
  More...
 
virtual bool IsEmpty [get]
  More...
 
virtual QLayout Layout [get]
  More...
 
virtual QSize MaximumSize [get]
  More...
 
virtual QSize MinimumSize [get]
  More...
 
virtual QSize SizeHint [get]
  More...
 
virtual QSpacerItem SpacerItem [get]
  More...
 
virtual QWidget Widget [get]
  More...
 
virtual System.IntPtr SmokeObject [get, set]
 
new Qt.AlignmentFlag Align [get, set]
 
- Properties inherited from QtGui.IQLayoutItem
Qt.AlignmentFlag Alignment [get, set]
  More...
 
QRect Geometry [get, set]
  More...
 
QSizePolicy.ControlType ControlTypes [get]
  More...
 
Qt.Orientation ExpandingDirections [get]
  More...
 
System.Boolean HasHeightForWidth [get]
  More...
 
System.Boolean IsEmpty [get]
  More...
 
QLayout Layout [get]
  More...
 
QSize MaximumSize [get]
  More...
 
QSize MinimumSize [get]
  More...
 
QSize SizeHint [get]
  More...
 
QSpacerItem SpacerItem [get]
  More...
 
QWidget Widget [get]
  More...
 

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)

Here is the call graph for this function:

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.

Here is the call graph for this function:

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.

Here is the caller graph for this function:

new void QtGui.QSpacerItem.Dispose ( )

Property Documentation

override Qt.Orientation QtGui.QSpacerItem.ExpandingDirections
get

Reimplemented from QLayoutItem::expandingDirections().

override QRect QtGui.QSpacerItem.Geometry
getset

Reimplemented from QLayoutItem::geometry().

Reimplemented from QLayoutItem::setGeometry().

override bool QtGui.QSpacerItem.IsEmpty
get

Reimplemented from QLayoutItem::isEmpty().

Returns true.

override QSize QtGui.QSpacerItem.MaximumSize
get

Reimplemented from QLayoutItem::maximumSize().

override QSize QtGui.QSpacerItem.MinimumSize
get

Reimplemented from QLayoutItem::minimumSize().

override QSize QtGui.QSpacerItem.SizeHint
get

Reimplemented from QLayoutItem::sizeHint().

override QSpacerItem QtGui.QSpacerItem.SpacerItem
get

Reimplemented from QLayoutItem::spacerItem().

Returns a pointer to this object.