[][src]Struct qt_widgets::QLayout

#[repr(C)]
pub struct QLayout { /* fields omitted */ }

The QLayout class is the base class of geometry managers.

C++ class: QLayout.

C++ documentation:

The QLayout class is the base class of geometry managers.

This is an abstract base class inherited by the concrete classes QBoxLayout, QGridLayout, QFormLayout, and QStackedLayout.

For users of QLayout subclasses or of QMainWindow there is seldom any need to use the basic functions provided by QLayout, such as setSizeConstraint() or setMenuBar(). See Layout Management for more information.

To make your own layout manager, implement the functions addItem(), sizeHint(), setGeometry(), itemAt() and takeAt(). You should also implement minimumSize() to ensure your layout isn't resized to zero size if there is too little space. To support children whose heights depend on their widths, implement hasHeightForWidth() and heightForWidth(). See the Border Layout and Flow Layout examples for more information about implementing custom layout managers.

Geometry management stops when the layout manager is deleted.

Methods

impl QLayout[src]

pub unsafe fn activate(&mut self) -> bool[src]

Redoes the layout for parentWidget() if necessary.

Calls C++ function: bool QLayout::activate().

C++ documentation:

Redoes the layout for parentWidget() if necessary.

You should generally not need to call this because it is automatically called at the most appropriate times. It returns true if the layout was redone.

See also update() and QWidget::updateGeometry().

pub unsafe fn add_item(&mut self, arg1: impl CastInto<MutPtr<QLayoutItem>>)[src]

Implemented in subclasses to add an item. How it is added is specific to each subclass.

Calls C++ function: pure virtual void QLayout::addItem(QLayoutItem* arg1).

C++ documentation:

Implemented in subclasses to add an item. How it is added is specific to each subclass.

This function is not usually called in application code. To add a widget to a layout, use the addWidget() function; to add a child layout, use the addLayout() function provided by the relevant QLayout subclass.

Note: The ownership of item is transferred to the layout, and it's the layout's responsibility to delete it.

See also addWidget(), QBoxLayout::addLayout(), and QGridLayout::addLayout().

pub unsafe fn add_widget(&mut self, w: impl CastInto<MutPtr<QWidget>>)[src]

Adds widget w to this layout in a manner specific to the layout. This function uses addItem().

Calls C++ function: void QLayout::addWidget(QWidget* w).

C++ documentation:

Adds widget w to this layout in a manner specific to the layout. This function uses addItem().

pub unsafe fn closest_acceptable_size(
    w: impl CastInto<Ptr<QWidget>>,
    s: impl CastInto<Ref<QSize>>
) -> CppBox<QSize>
[src]

Returns a size that satisfies all size constraints on widget, including heightForWidth() and that is as close as possible to size.

Calls C++ function: static QSize QLayout::closestAcceptableSize(const QWidget* w, const QSize& s).

C++ documentation:

Returns a size that satisfies all size constraints on widget, including heightForWidth() and that is as close as possible to size.

pub unsafe fn contents_margins(&self) -> CppBox<QMargins>[src]

Returns the margins used around the layout.

Calls C++ function: QMargins QLayout::contentsMargins() const.

C++ documentation:

Returns the margins used around the layout.

By default, QLayout uses the values provided by the style. On most platforms, the margin is 11 pixels in all directions.

This function was introduced in Qt 4.6.

See also setContentsMargins().

pub unsafe fn contents_rect(&self) -> CppBox<QRect>[src]

Returns the layout's geometry() rectangle, but taking into account the contents margins.

Calls C++ function: QRect QLayout::contentsRect() const.

C++ documentation:

Returns the layout's geometry() rectangle, but taking into account the contents margins.

This function was introduced in Qt 4.3.

See also setContentsMargins() and getContentsMargins().

pub unsafe fn control_types(&self) -> QFlags<ControlType>[src]

Reimplemented from QLayoutItem::controlTypes().

Calls C++ function: virtual QFlags<QSizePolicy::ControlType> QLayout::controlTypes() const.

C++ documentation:

Reimplemented from QLayoutItem::controlTypes().

pub unsafe fn count(&self) -> c_int[src]

Must be implemented in subclasses to return the number of items in the layout.

Calls C++ function: pure virtual int QLayout::count() const.

C++ documentation:

Must be implemented in subclasses to return the number of items in the layout.

See also itemAt().

pub unsafe fn expanding_directions(&self) -> QFlags<Orientation>[src]

Reimplemented from QLayoutItem::expandingDirections().

Calls C++ function: virtual QFlags<Qt::Orientation> QLayout::expandingDirections() const.

C++ documentation:

Reimplemented from QLayoutItem::expandingDirections().

Returns whether this layout can make use of more space than sizeHint(). A value of Qt::Vertical or Qt::Horizontal means that it wants to grow in only one dimension, whereas Qt::Vertical | Qt::Horizontal means that it wants to grow in both dimensions.

The default implementation returns Qt::Horizontal | Qt::Vertical. Subclasses reimplement it to return a meaningful value based on their child widgets's size policies.

See also sizeHint().

pub unsafe fn geometry(&self) -> CppBox<QRect>[src]

Reimplemented from QLayoutItem::geometry().

Calls C++ function: virtual QRect QLayout::geometry() const.

C++ documentation:

Reimplemented from QLayoutItem::geometry().

See also setGeometry().

pub unsafe fn get_contents_margins(
    &self,
    left: impl CastInto<MutPtr<c_int>>,
    top: impl CastInto<MutPtr<c_int>>,
    right: impl CastInto<MutPtr<c_int>>,
    bottom: impl CastInto<MutPtr<c_int>>
)
[src]

Extracts the left, top, right, and bottom margins used around the layout, and assigns them to *left, *top, *right, and *bottom (unless they are null pointers).

Calls C++ function: void QLayout::getContentsMargins(int* left, int* top, int* right, int* bottom) const.

C++ documentation:

Extracts the left, top, right, and bottom margins used around the layout, and assigns them to *left, *top, *right, and *bottom (unless they are null pointers).

By default, QLayout uses the values provided by the style. On most platforms, the margin is 11 pixels in all directions.

This function was introduced in Qt 4.3.

See also setContentsMargins(), QStyle::pixelMetric(), PM_LayoutLeftMargin, PM_LayoutTopMargin, PM_LayoutRightMargin, and PM_LayoutBottomMargin.

pub unsafe fn index_of_q_widget(
    &self,
    arg1: impl CastInto<MutPtr<QWidget>>
) -> c_int
[src]

Searches for widget widget in this layout (not including child layouts).

Calls C++ function: virtual int QLayout::indexOf(QWidget* arg1) const.

C++ documentation:

Searches for widget widget in this layout (not including child layouts).

Returns the index of widget, or -1 if widget is not found.

The default implementation iterates over all items using itemAt()

pub unsafe fn index_of_q_layout_item(
    &self,
    arg1: impl CastInto<MutPtr<QLayoutItem>>
) -> c_int
[src]

Searches for layout item layoutItem in this layout (not including child layouts).

Calls C++ function: int QLayout::indexOf(QLayoutItem* arg1) const.

C++ documentation:

Searches for layout item layoutItem in this layout (not including child layouts).

Returns the index of layoutItem, or -1 if layoutItem is not found.

This function was introduced in Qt 5.12.

This item is available if any(cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

pub unsafe fn invalidate(&mut self)[src]

Reimplemented from QLayoutItem::invalidate().

Calls C++ function: virtual void QLayout::invalidate().

C++ documentation:

Reimplemented from QLayoutItem::invalidate().

pub unsafe fn is_empty(&self) -> bool[src]

Reimplemented from QLayoutItem::isEmpty().

Calls C++ function: virtual bool QLayout::isEmpty() const.

C++ documentation:

Reimplemented from QLayoutItem::isEmpty().

pub unsafe fn is_enabled(&self) -> bool[src]

Returns true if the layout is enabled; otherwise returns false.

Calls C++ function: bool QLayout::isEnabled() const.

C++ documentation:

Returns true if the layout is enabled; otherwise returns false.

See also setEnabled().

pub unsafe fn item_at(&self, index: c_int) -> MutPtr<QLayoutItem>[src]

Must be implemented in subclasses to return the layout item at index. If there is no such item, the function must return 0. Items are numbered consecutively from 0. If an item is deleted, other items will be renumbered.

Calls C++ function: pure virtual QLayoutItem* QLayout::itemAt(int index) const.

C++ documentation:

Must be implemented in subclasses to return the layout item at index. If there is no such item, the function must return 0. Items are numbered consecutively from 0. If an item is deleted, other items will be renumbered.

This function can be used to iterate over a layout. The following code will draw a rectangle for each layout item in the layout structure of the widget.

static void paintLayout(QPainter painter, QLayoutItem item) { QLayout *layout = item->layout(); if (layout) { for (int i = 0; i < layout->count(); ++i) paintLayout(painter, layout->itemAt(i)); } painter->drawRect(item->geometry()); }

void MyWidget::paintEvent(QPaintEvent *) { QPainter painter(this); if (layout()) paintLayout(&painter, layout()); }

See also count() and takeAt().

pub unsafe fn layout(&mut self) -> MutPtr<QLayout>[src]

Reimplemented from QLayoutItem::layout().

Calls C++ function: virtual QLayout* QLayout::layout().

C++ documentation:

Reimplemented from QLayoutItem::layout().

pub unsafe fn margin(&self) -> c_int[src]

This property holds the width of the outside border of the layout

Calls C++ function: int QLayout::margin() const.

C++ documentation:

This property holds the width of the outside border of the layout

Use setContentsMargins() and getContentsMargins() instead.

Access functions:

int margin() const
void setMargin(int margin)

See also contentsRect() and spacing.

Member Function Documentation

pub unsafe fn maximum_size(&self) -> CppBox<QSize>[src]

Reimplemented from QLayoutItem::maximumSize().

Calls C++ function: virtual QSize QLayout::maximumSize() const.

C++ documentation:

Reimplemented from QLayoutItem::maximumSize().

Returns the maximum size of this layout. This is the largest size that the layout can have while still respecting the specifications.

The returned value doesn't include the space required by QWidget::setContentsMargins() or menuBar().

The default implementation allows unlimited resizing.

pub unsafe fn menu_bar(&self) -> MutPtr<QWidget>[src]

Returns the menu bar set for this layout, or 0 if no menu bar is set.

Calls C++ function: QWidget* QLayout::menuBar() const.

C++ documentation:

Returns the menu bar set for this layout, or 0 if no menu bar is set.

See also setMenuBar().

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

Calls C++ function: virtual const QMetaObject* QLayout::metaObject() const.

pub unsafe fn minimum_size(&self) -> CppBox<QSize>[src]

Reimplemented from QLayoutItem::minimumSize().

Calls C++ function: virtual QSize QLayout::minimumSize() const.

C++ documentation:

Reimplemented from QLayoutItem::minimumSize().

Returns the minimum size of this layout. This is the smallest size that the layout can have while still respecting the specifications.

The returned value doesn't include the space required by QWidget::setContentsMargins() or menuBar().

The default implementation allows unlimited resizing.

pub unsafe fn parent_widget(&self) -> MutPtr<QWidget>[src]

Returns the parent widget of this layout, or 0 if this layout is not installed on any widget.

Calls C++ function: QWidget* QLayout::parentWidget() const.

C++ documentation:

Returns the parent widget of this layout, or 0 if this layout is not installed on any widget.

If the layout is a sub-layout, this function returns the parent widget of the parent layout.

See also parent().

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

Calls C++ function: virtual int QLayout::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

Calls C++ function: virtual void* QLayout::qt_metacast(const char* arg1).

pub unsafe fn remove_item(&mut self, arg1: impl CastInto<MutPtr<QLayoutItem>>)[src]

Removes the layout item item from the layout. It is the caller's responsibility to delete the item.

Calls C++ function: void QLayout::removeItem(QLayoutItem* arg1).

C++ documentation:

Removes the layout item item from the layout. It is the caller's responsibility to delete the item.

Notice that item can be a layout (since QLayout inherits QLayoutItem).

See also removeWidget() and addItem().

pub unsafe fn remove_widget(&mut self, w: impl CastInto<MutPtr<QWidget>>)[src]

Removes the widget widget from the layout. After this call, it is the caller's responsibility to give the widget a reasonable geometry or to put the widget back into a layout or to explicitly hide it if necessary.

Calls C++ function: void QLayout::removeWidget(QWidget* w).

C++ documentation:

Removes the widget widget from the layout. After this call, it is the caller's responsibility to give the widget a reasonable geometry or to put the widget back into a layout or to explicitly hide it if necessary.

Note: The ownership of widget remains the same as when it was added.

See also removeItem(), QWidget::setGeometry(), and addWidget().

pub unsafe fn replace_widget_3a(
    &mut self,
    from: impl CastInto<MutPtr<QWidget>>,
    to: impl CastInto<MutPtr<QWidget>>,
    options: QFlags<FindChildOption>
) -> MutPtr<QLayoutItem>
[src]

Searches for widget from and replaces it with widget to if found. Returns the layout item that contains the widget from on success. Otherwise 0 is returned. If options contains Qt::FindChildrenRecursively (the default), sub-layouts are searched for doing the replacement. Any other flag in options is ignored.

Calls C++ function: QLayoutItem* QLayout::replaceWidget(QWidget* from, QWidget* to, QFlags<Qt::FindChildOption> options = …).

C++ documentation:

Searches for widget from and replaces it with widget to if found. Returns the layout item that contains the widget from on success. Otherwise 0 is returned. If options contains Qt::FindChildrenRecursively (the default), sub-layouts are searched for doing the replacement. Any other flag in options is ignored.

Notice that the returned item therefore might not belong to this layout, but to a sub-layout.

The returned layout item is no longer owned by the layout and should be either deleted or inserted to another layout. The widget from is no longer managed by the layout and may need to be deleted or hidden. The parent of widget from is left unchanged.

This function works for the built-in Qt layouts, but might not work for custom layouts.

This function was introduced in Qt 5.2.

See also indexOf().

pub unsafe fn replace_widget_2a(
    &mut self,
    from: impl CastInto<MutPtr<QWidget>>,
    to: impl CastInto<MutPtr<QWidget>>
) -> MutPtr<QLayoutItem>
[src]

Searches for widget from and replaces it with widget to if found. Returns the layout item that contains the widget from on success. Otherwise 0 is returned. If options contains Qt::FindChildrenRecursively (the default), sub-layouts are searched for doing the replacement. Any other flag in options is ignored.

Calls C++ function: QLayoutItem* QLayout::replaceWidget(QWidget* from, QWidget* to).

C++ documentation:

Searches for widget from and replaces it with widget to if found. Returns the layout item that contains the widget from on success. Otherwise 0 is returned. If options contains Qt::FindChildrenRecursively (the default), sub-layouts are searched for doing the replacement. Any other flag in options is ignored.

Notice that the returned item therefore might not belong to this layout, but to a sub-layout.

The returned layout item is no longer owned by the layout and should be either deleted or inserted to another layout. The widget from is no longer managed by the layout and may need to be deleted or hidden. The parent of widget from is left unchanged.

This function works for the built-in Qt layouts, but might not work for custom layouts.

This function was introduced in Qt 5.2.

See also indexOf().

pub unsafe fn set_alignment_q_widget_q_flags_alignment_flag(
    &mut self,
    w: impl CastInto<MutPtr<QWidget>>,
    alignment: QFlags<AlignmentFlag>
) -> bool
[src]

Sets the alignment for widget w to alignment and returns true if w is found in this layout (not including child layouts); otherwise returns false.

Calls C++ function: bool QLayout::setAlignment(QWidget* w, QFlags<Qt::AlignmentFlag> alignment).

C++ documentation:

Sets the alignment for widget w to alignment and returns true if w is found in this layout (not including child layouts); otherwise returns false.

pub unsafe fn set_alignment_q_layout_q_flags_alignment_flag(
    &mut self,
    l: impl CastInto<MutPtr<QLayout>>,
    alignment: QFlags<AlignmentFlag>
) -> bool
[src]

This is an overloaded function.

Calls C++ function: bool QLayout::setAlignment(QLayout* l, QFlags<Qt::AlignmentFlag> alignment).

C++ documentation:

This is an overloaded function.

Sets the alignment for the layout l to alignment and returns true if l is found in this layout (not including child layouts); otherwise returns false.

pub unsafe fn set_contents_margins_4a(
    &mut self,
    left: c_int,
    top: c_int,
    right: c_int,
    bottom: c_int
)
[src]

Sets the left, top, right, and bottom margins to use around the layout.

Calls C++ function: void QLayout::setContentsMargins(int left, int top, int right, int bottom).

C++ documentation:

Sets the left, top, right, and bottom margins to use around the layout.

By default, QLayout uses the values provided by the style. On most platforms, the margin is 11 pixels in all directions.

This function was introduced in Qt 4.3.

See also contentsMargins(), getContentsMargins(), QStyle::pixelMetric(), PM_LayoutLeftMargin, PM_LayoutTopMargin, PM_LayoutRightMargin, and PM_LayoutBottomMargin.

pub unsafe fn set_contents_margins_1a(
    &mut self,
    margins: impl CastInto<Ref<QMargins>>
)
[src]

Sets the margins to use around the layout.

Calls C++ function: void QLayout::setContentsMargins(const QMargins& margins).

C++ documentation:

Sets the margins to use around the layout.

By default, QLayout uses the values provided by the style. On most platforms, the margin is 11 pixels in all directions.

This function was introduced in Qt 4.6.

See also contentsMargins().

pub unsafe fn set_enabled(&mut self, arg1: bool)[src]

Enables this layout if enable is true, otherwise disables it.

Calls C++ function: void QLayout::setEnabled(bool arg1).

C++ documentation:

Enables this layout if enable is true, otherwise disables it.

An enabled layout adjusts dynamically to changes; a disabled layout acts as if it did not exist.

By default all layouts are enabled.

See also isEnabled().

pub unsafe fn set_geometry(&mut self, arg1: impl CastInto<Ref<QRect>>)[src]

Reimplemented from QLayoutItem::setGeometry().

Calls C++ function: virtual void QLayout::setGeometry(const QRect& arg1).

C++ documentation:

Reimplemented from QLayoutItem::setGeometry().

See also geometry().

pub unsafe fn set_margin(&mut self, arg1: c_int)[src]

Note: Setter function for property margin.

Calls C++ function: void QLayout::setMargin(int arg1).

C++ documentation:

Note: Setter function for property margin.

See also margin().

pub unsafe fn set_menu_bar(&mut self, w: impl CastInto<MutPtr<QWidget>>)[src]

Tells the geometry manager to place the menu bar widget at the top of parentWidget(), outside QWidget::contentsMargins(). All child widgets are placed below the bottom edge of the menu bar.

Calls C++ function: void QLayout::setMenuBar(QWidget* w).

C++ documentation:

Tells the geometry manager to place the menu bar widget at the top of parentWidget(), outside QWidget::contentsMargins(). All child widgets are placed below the bottom edge of the menu bar.

See also menuBar().

pub unsafe fn set_size_constraint(&mut self, arg1: SizeConstraint)[src]

This property holds the resize mode of the layout

Calls C++ function: void QLayout::setSizeConstraint(QLayout::SizeConstraint arg1).

C++ documentation:

This property holds the resize mode of the layout

The default mode is SetDefaultConstraint.

Access functions:

SizeConstraint sizeConstraint() const
void setSizeConstraint(SizeConstraint)

pub unsafe fn set_spacing(&mut self, arg1: c_int)[src]

This property holds the spacing between widgets inside the layout

Calls C++ function: void QLayout::setSpacing(int arg1).

C++ documentation:

This property holds the spacing between widgets inside the layout

If no value is explicitly set, the layout's spacing is inherited from the parent layout, or from the style settings for the parent widget.

For QGridLayout and QFormLayout, it is possible to set different horizontal and vertical spacings using setHorizontalSpacing() and setVerticalSpacing(). In that case, spacing() returns -1.

Access functions:

int spacing() const
void setSpacing(int)

See also contentsRect(), getContentsMargins(), QStyle::layoutSpacing(), and QStyle::pixelMetric().

pub unsafe fn size_constraint(&self) -> SizeConstraint[src]

This property holds the resize mode of the layout

Calls C++ function: QLayout::SizeConstraint QLayout::sizeConstraint() const.

C++ documentation:

This property holds the resize mode of the layout

The default mode is SetDefaultConstraint.

Access functions:

SizeConstraint sizeConstraint() const
void setSizeConstraint(SizeConstraint)

pub unsafe fn spacing(&self) -> c_int[src]

This property holds the spacing between widgets inside the layout

Calls C++ function: int QLayout::spacing() const.

C++ documentation:

This property holds the spacing between widgets inside the layout

If no value is explicitly set, the layout's spacing is inherited from the parent layout, or from the style settings for the parent widget.

For QGridLayout and QFormLayout, it is possible to set different horizontal and vertical spacings using setHorizontalSpacing() and setVerticalSpacing(). In that case, spacing() returns -1.

Access functions:

int spacing() const
void setSpacing(int)

See also contentsRect(), getContentsMargins(), QStyle::layoutSpacing(), and QStyle::pixelMetric().

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

Returns a reference to the staticMetaObject field.

pub unsafe fn take_at(&mut self, index: c_int) -> MutPtr<QLayoutItem>[src]

Must be implemented in subclasses to remove the layout item at index from the layout, and return the item. If there is no such item, the function must do nothing and return 0. Items are numbered consecutively from 0. If an item is removed, other items will be renumbered.

Calls C++ function: pure virtual QLayoutItem* QLayout::takeAt(int index).

C++ documentation:

Must be implemented in subclasses to remove the layout item at index from the layout, and return the item. If there is no such item, the function must do nothing and return 0. Items are numbered consecutively from 0. If an item is removed, other items will be renumbered.

The following code fragment shows a safe way to remove all items from a layout:

QLayoutItem *child; while ((child = layout->takeAt(0)) != 0) { ... delete child; }

See also itemAt() and count().

pub unsafe fn total_height_for_width(&self, w: c_int) -> c_int[src]

Calls C++ function: int QLayout::totalHeightForWidth(int w) const.

pub unsafe fn total_maximum_size(&self) -> CppBox<QSize>[src]

Calls C++ function: QSize QLayout::totalMaximumSize() const.

pub unsafe fn total_minimum_size(&self) -> CppBox<QSize>[src]

Calls C++ function: QSize QLayout::totalMinimumSize() const.

pub unsafe fn total_size_hint(&self) -> CppBox<QSize>[src]

Calls C++ function: QSize QLayout::totalSizeHint() const.

pub unsafe fn tr(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QLayout::tr(const char* s, const char* c, int n).

pub unsafe fn tr_utf8(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

Calls C++ function: static QString QLayout::trUtf8(const char* s, const char* c, int n).

pub unsafe fn update(&mut self)[src]

Updates the layout for parentWidget().

Calls C++ function: void QLayout::update().

C++ documentation:

Updates the layout for parentWidget().

You should generally not need to call this because it is automatically called at the most appropriate times.

See also activate() and invalidate().

Trait Implementations

impl CppDeletable for QLayout[src]

unsafe fn delete(&mut self)[src]

Calls C++ function: virtual [destructor] void QLayout::~QLayout().

impl Deref for QLayout[src]

type Target = QObject

The resulting type after dereferencing.

fn deref(&self) -> &QObject[src]

Calls C++ function: QObject* static_cast<QObject*>(QLayout* ptr).

impl DerefMut for QLayout[src]

fn deref_mut(&mut self) -> &mut QObject[src]

Calls C++ function: QObject* static_cast<QObject*>(QLayout* ptr).

impl DynamicCast<QBoxLayout> for QLayout[src]

unsafe fn dynamic_cast(ptr: Ptr<QLayout>) -> Ptr<QBoxLayout>[src]

Calls C++ function: QBoxLayout* dynamic_cast<QBoxLayout*>(QLayout* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QLayout>) -> MutPtr<QBoxLayout>[src]

Calls C++ function: QBoxLayout* dynamic_cast<QBoxLayout*>(QLayout* ptr).

impl DynamicCast<QFormLayout> for QLayout[src]

unsafe fn dynamic_cast(ptr: Ptr<QLayout>) -> Ptr<QFormLayout>[src]

Calls C++ function: QFormLayout* dynamic_cast<QFormLayout*>(QLayout* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QLayout>) -> MutPtr<QFormLayout>[src]

Calls C++ function: QFormLayout* dynamic_cast<QFormLayout*>(QLayout* ptr).

impl DynamicCast<QGridLayout> for QLayout[src]

unsafe fn dynamic_cast(ptr: Ptr<QLayout>) -> Ptr<QGridLayout>[src]

Calls C++ function: QGridLayout* dynamic_cast<QGridLayout*>(QLayout* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QLayout>) -> MutPtr<QGridLayout>[src]

Calls C++ function: QGridLayout* dynamic_cast<QGridLayout*>(QLayout* ptr).

impl DynamicCast<QHBoxLayout> for QLayout[src]

unsafe fn dynamic_cast(ptr: Ptr<QLayout>) -> Ptr<QHBoxLayout>[src]

Calls C++ function: QHBoxLayout* dynamic_cast<QHBoxLayout*>(QLayout* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QLayout>) -> MutPtr<QHBoxLayout>[src]

Calls C++ function: QHBoxLayout* dynamic_cast<QHBoxLayout*>(QLayout* ptr).

impl DynamicCast<QLayout> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<QLayout>[src]

Calls C++ function: QLayout* dynamic_cast<QLayout*>(QObject* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<QLayout>[src]

Calls C++ function: QLayout* dynamic_cast<QLayout*>(QObject* ptr).

impl DynamicCast<QLayout> for QLayoutItem[src]

unsafe fn dynamic_cast(ptr: Ptr<QLayoutItem>) -> Ptr<QLayout>[src]

Calls C++ function: QLayout* dynamic_cast<QLayout*>(QLayoutItem* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QLayoutItem>) -> MutPtr<QLayout>[src]

Calls C++ function: QLayout* dynamic_cast<QLayout*>(QLayoutItem* ptr).

impl DynamicCast<QStackedLayout> for QLayout[src]

unsafe fn dynamic_cast(ptr: Ptr<QLayout>) -> Ptr<QStackedLayout>[src]

Calls C++ function: QStackedLayout* dynamic_cast<QStackedLayout*>(QLayout* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QLayout>) -> MutPtr<QStackedLayout>[src]

Calls C++ function: QStackedLayout* dynamic_cast<QStackedLayout*>(QLayout* ptr).

impl DynamicCast<QVBoxLayout> for QLayout[src]

unsafe fn dynamic_cast(ptr: Ptr<QLayout>) -> Ptr<QVBoxLayout>[src]

Calls C++ function: QVBoxLayout* dynamic_cast<QVBoxLayout*>(QLayout* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QLayout>) -> MutPtr<QVBoxLayout>[src]

Calls C++ function: QVBoxLayout* dynamic_cast<QVBoxLayout*>(QLayout* ptr).

impl StaticDowncast<QBoxLayout> for QLayout[src]

unsafe fn static_downcast(ptr: Ptr<QLayout>) -> Ptr<QBoxLayout>[src]

Calls C++ function: QBoxLayout* static_cast<QBoxLayout*>(QLayout* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QLayout>) -> MutPtr<QBoxLayout>[src]

Calls C++ function: QBoxLayout* static_cast<QBoxLayout*>(QLayout* ptr).

impl StaticDowncast<QFormLayout> for QLayout[src]

unsafe fn static_downcast(ptr: Ptr<QLayout>) -> Ptr<QFormLayout>[src]

Calls C++ function: QFormLayout* static_cast<QFormLayout*>(QLayout* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QLayout>) -> MutPtr<QFormLayout>[src]

Calls C++ function: QFormLayout* static_cast<QFormLayout*>(QLayout* ptr).

impl StaticDowncast<QGridLayout> for QLayout[src]

unsafe fn static_downcast(ptr: Ptr<QLayout>) -> Ptr<QGridLayout>[src]

Calls C++ function: QGridLayout* static_cast<QGridLayout*>(QLayout* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QLayout>) -> MutPtr<QGridLayout>[src]

Calls C++ function: QGridLayout* static_cast<QGridLayout*>(QLayout* ptr).

impl StaticDowncast<QHBoxLayout> for QLayout[src]

unsafe fn static_downcast(ptr: Ptr<QLayout>) -> Ptr<QHBoxLayout>[src]

Calls C++ function: QHBoxLayout* static_cast<QHBoxLayout*>(QLayout* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QLayout>) -> MutPtr<QHBoxLayout>[src]

Calls C++ function: QHBoxLayout* static_cast<QHBoxLayout*>(QLayout* ptr).

impl StaticDowncast<QLayout> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QObject* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QObject* ptr).

impl StaticDowncast<QLayout> for QLayoutItem[src]

unsafe fn static_downcast(ptr: Ptr<QLayoutItem>) -> Ptr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QLayoutItem* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QLayoutItem>) -> MutPtr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QLayoutItem* ptr).

impl StaticDowncast<QStackedLayout> for QLayout[src]

unsafe fn static_downcast(ptr: Ptr<QLayout>) -> Ptr<QStackedLayout>[src]

Calls C++ function: QStackedLayout* static_cast<QStackedLayout*>(QLayout* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QLayout>) -> MutPtr<QStackedLayout>[src]

Calls C++ function: QStackedLayout* static_cast<QStackedLayout*>(QLayout* ptr).

impl StaticDowncast<QVBoxLayout> for QLayout[src]

unsafe fn static_downcast(ptr: Ptr<QLayout>) -> Ptr<QVBoxLayout>[src]

Calls C++ function: QVBoxLayout* static_cast<QVBoxLayout*>(QLayout* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QLayout>) -> MutPtr<QVBoxLayout>[src]

Calls C++ function: QVBoxLayout* static_cast<QVBoxLayout*>(QLayout* ptr).

impl StaticUpcast<QLayout> for QGridLayout[src]

unsafe fn static_upcast(ptr: Ptr<QGridLayout>) -> Ptr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QGridLayout* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QGridLayout>) -> MutPtr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QGridLayout* ptr).

impl StaticUpcast<QLayout> for QBoxLayout[src]

unsafe fn static_upcast(ptr: Ptr<QBoxLayout>) -> Ptr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QBoxLayout* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QBoxLayout>) -> MutPtr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QBoxLayout* ptr).

impl StaticUpcast<QLayout> for QHBoxLayout[src]

unsafe fn static_upcast(ptr: Ptr<QHBoxLayout>) -> Ptr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QHBoxLayout* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QHBoxLayout>) -> MutPtr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QHBoxLayout* ptr).

impl StaticUpcast<QLayout> for QVBoxLayout[src]

unsafe fn static_upcast(ptr: Ptr<QVBoxLayout>) -> Ptr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QVBoxLayout* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QVBoxLayout>) -> MutPtr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QVBoxLayout* ptr).

impl StaticUpcast<QLayout> for QFormLayout[src]

unsafe fn static_upcast(ptr: Ptr<QFormLayout>) -> Ptr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QFormLayout* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QFormLayout>) -> MutPtr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QFormLayout* ptr).

impl StaticUpcast<QLayout> for QStackedLayout[src]

unsafe fn static_upcast(ptr: Ptr<QStackedLayout>) -> Ptr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QStackedLayout* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QStackedLayout>) -> MutPtr<QLayout>[src]

Calls C++ function: QLayout* static_cast<QLayout*>(QStackedLayout* ptr).

impl StaticUpcast<QLayoutItem> for QLayout[src]

unsafe fn static_upcast(ptr: Ptr<QLayout>) -> Ptr<QLayoutItem>[src]

Calls C++ function: QLayoutItem* static_cast<QLayoutItem*>(QLayout* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QLayout>) -> MutPtr<QLayoutItem>[src]

Calls C++ function: QLayoutItem* static_cast<QLayoutItem*>(QLayout* ptr).

impl StaticUpcast<QObject> for QLayout[src]

unsafe fn static_upcast(ptr: Ptr<QLayout>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QLayout* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<QLayout>) -> MutPtr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(QLayout* ptr).

Auto Trait Implementations

impl RefUnwindSafe for QLayout

impl Send for QLayout

impl Sync for QLayout

impl Unpin for QLayout

impl UnwindSafe for QLayout

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.