KLayout Manual: Main Index » Class Index » API reference - Class QLayoutItem

API reference - Class QLayoutItem

Notation used in Ruby API documentation

Description: Binding of QLayoutItem

Class hierarchy: QLayoutItem

Public constructors

new QLayoutItemnewConstructor QLayoutItem::QLayoutItem(QFlags<enum Qt::AlignmentFlag> alignment)
new QLayoutItemnew(int alignment)Constructor QLayoutItem::QLayoutItem(QFlags<enum Qt::AlignmentFlag> alignment)

Public methods

[const]intalignmentMethod QFlags<enum Qt::AlignmentFlag> QLayoutItem::alignment()
voidalignment=(int a)Method void QLayoutItem::setAlignment(QFlags<enum Qt::AlignmentFlag> a)
[const]voidassign(const QLayoutItem other)Assign the contents of another object to self
[const]intcontrolTypesMethod QFlags<enum QSizePolicy::ControlType> QLayoutItem::controlTypes()
voidcreateEnsures the C++ object is created
voiddestroyExplicitly destroy the object
[const]booldestroyed?Returns a value indicating whether the object was already destroyed
[const]QLayoutItemdupCreates a copy of self
[virtual,const]intexpandingDirectionsVirtual method QFlags<enum Qt::Orientation> QLayoutItem::expandingDirections()
[virtual,const]QRectgeometryVirtual method QRect QLayoutItem::geometry()
voidgeometry=(const QRect arg1)Method void QLayoutItem::setGeometry(const QRect &)
[virtual,const]boolhasHeightForWidthVirtual method bool QLayoutItem::hasHeightForWidth()
[virtual,const]intheightForWidth(int arg1)Virtual method int QLayoutItem::heightForWidth(int )
[virtual]voidinvalidateVirtual method void QLayoutItem::invalidate()
[virtual,const]boolisEmptyVirtual method bool QLayoutItem::isEmpty()
[const]boolisEmpty?Method bool QLayoutItem::isEmpty()
[const]boolis_const_object?Returns a value indicating whether the reference is a const reference
[virtual]QLayout ptrlayoutVirtual method QLayout * QLayoutItem::layout()
[virtual,const]QSizemaximumSizeVirtual method QSize QLayoutItem::maximumSize()
[virtual,const]intminimumHeightForWidth(int arg1)Virtual method int QLayoutItem::minimumHeightForWidth(int )
[virtual,const]QSizeminimumSizeVirtual method QSize QLayoutItem::minimumSize()
voidsetAlignment(int a)Method void QLayoutItem::setAlignment(QFlags<enum Qt::AlignmentFlag> a)
[virtual]voidsetGeometry(const QRect arg1)Virtual method void QLayoutItem::setGeometry(const QRect &)
[virtual,const]QSizesizeHintVirtual method QSize QLayoutItem::sizeHint()
[virtual]QSpacerItem ptrspacerItemVirtual method QSpacerItem * QLayoutItem::spacerItem()
[virtual]QWidget ptrwidgetVirtual method QWidget * QLayoutItem::widget()

Detailed description

[const] int alignment

Description: Method QFlags<enum Qt::AlignmentFlag> QLayoutItem::alignment()

void alignment=(int a)

Description: Method void QLayoutItem::setAlignment(QFlags<enum Qt::AlignmentFlag> a)

[const] void assign(const QLayoutItem other)

Description: Assign the contents of another object to self

This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.

[const] int controlTypes

Description: Method QFlags<enum QSizePolicy::ControlType> QLayoutItem::controlTypes()

void create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

void destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] QLayoutItem dup

Description: Creates a copy of self

[virtual,const] int expandingDirections

Description: Virtual method QFlags<enum Qt::Orientation> QLayoutItem::expandingDirections()

This method can be reimplemented in a derived class.

[virtual,const] QRect geometry

Description: Virtual method QRect QLayoutItem::geometry()

This method can be reimplemented in a derived class.

void geometry=(const QRect arg1)

Description: Method void QLayoutItem::setGeometry(const QRect &)

[virtual,const] bool hasHeightForWidth

Description: Virtual method bool QLayoutItem::hasHeightForWidth()

This method can be reimplemented in a derived class.

[virtual,const] int heightForWidth(int arg1)

Description: Virtual method int QLayoutItem::heightForWidth(int )

This method can be reimplemented in a derived class.

[virtual] void invalidate

Description: Virtual method void QLayoutItem::invalidate()

This method can be reimplemented in a derived class.

[virtual,const] bool isEmpty

Description: Virtual method bool QLayoutItem::isEmpty()

This method can be reimplemented in a derived class.

[const] bool isEmpty?

Description: Method bool QLayoutItem::isEmpty()

[const] bool is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

[virtual] QLayout ptr layout

Description: Virtual method QLayout * QLayoutItem::layout()

This method can be reimplemented in a derived class.

[virtual,const] QSize maximumSize

Description: Virtual method QSize QLayoutItem::maximumSize()

This method can be reimplemented in a derived class.

[virtual,const] int minimumHeightForWidth(int arg1)

Description: Virtual method int QLayoutItem::minimumHeightForWidth(int )

This method can be reimplemented in a derived class.

[virtual,const] QSize minimumSize

Description: Virtual method QSize QLayoutItem::minimumSize()

This method can be reimplemented in a derived class.

[static] new QLayoutItem new

Description: Constructor QLayoutItem::QLayoutItem(QFlags<enum Qt::AlignmentFlag> alignment)

This method creates an object of class QLayoutItem.

[static] new QLayoutItem new(int alignment)

Description: Constructor QLayoutItem::QLayoutItem(QFlags<enum Qt::AlignmentFlag> alignment)

This method creates an object of class QLayoutItem.

void setAlignment(int a)

Description: Method void QLayoutItem::setAlignment(QFlags<enum Qt::AlignmentFlag> a)

[virtual] void setGeometry(const QRect arg1)

Description: Virtual method void QLayoutItem::setGeometry(const QRect &)

This method can be reimplemented in a derived class.

[virtual,const] QSize sizeHint

Description: Virtual method QSize QLayoutItem::sizeHint()

This method can be reimplemented in a derived class.

[virtual] QSpacerItem ptr spacerItem

Description: Virtual method QSpacerItem * QLayoutItem::spacerItem()

This method can be reimplemented in a derived class.

[virtual] QWidget ptr widget

Description: Virtual method QWidget * QLayoutItem::widget()

This method can be reimplemented in a derived class.