[][src]Struct qt_widgets::QGraphicsLayoutItem

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

The QGraphicsLayoutItem class can be inherited to allow your custom items to be managed by layouts.

C++ class: QGraphicsLayoutItem.

C++ documentation:

The QGraphicsLayoutItem class can be inherited to allow your custom items to be managed by layouts.

QGraphicsLayoutItem is an abstract class that defines a set of virtual functions describing sizes, size policies, and size hints for any object arranged by QGraphicsLayout. The API contains functions relevant for both the item itself and for the user of the item as most of QGraphicsLayoutItem's functions are also part of the subclass' public API.

In most cases, existing layout-aware classes such as QGraphicsWidget and QGraphicsLayout already provide the functionality you require. However, subclassing these classes will enable you to create both graphical elements that work well with layouts (QGraphicsWidget) or custom layouts (QGraphicsLayout).

Methods

impl QGraphicsLayoutItem[src]

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

Returns the contents rect in local coordinates.

Calls C++ function: QRectF QGraphicsLayoutItem::contentsRect() const.

C++ documentation:

Returns the contents rect in local coordinates.

The contents rect defines the subrectangle used by an associated layout when arranging subitems. This function is a convenience function that adjusts the item's geometry() by its contents margins. Note that getContentsMargins() is a virtual function that you can reimplement to return the item's contents margins.

See also getContentsMargins() and geometry().

pub unsafe fn effective_size_hint_2a(
    &self,
    which: SizeHint,
    constraint: impl CastInto<Ref<QSizeF>>
) -> CppBox<QSizeF>
[src]

Returns the effective size hint for this QGraphicsLayoutItem.

Calls C++ function: QSizeF QGraphicsLayoutItem::effectiveSizeHint(Qt::SizeHint which, const QSizeF& constraint = …) const.

C++ documentation:

Returns the effective size hint for this QGraphicsLayoutItem.

which is the size hint in question. constraint is an optional argument that defines a special constrain when calculating the effective size hint. By default, constraint is QSizeF(-1, -1), which means there is no constraint to the size hint.

If you want to specify the widget's size hint for a given width or height, you can provide the fixed dimension in constraint. This is useful for widgets that can grow only either vertically or horizontally, and need to set either their width or their height to a special value.

For example, a text paragraph item fit into a column width of 200 may grow vertically. You can pass QSizeF(200, -1) as a constraint to get a suitable minimum, preferred and maximum height).

You can adjust the effective size hint by reimplementing sizeHint() in a QGraphicsLayoutItem subclass, or by calling one of the following functions: setMinimumSize(), setPreferredSize, or setMaximumSize() (or a combination of both).

This function caches each of the size hints and guarantees that sizeHint() will be called only once for each value of which - unless constraint is not specified and updateGeometry() has been called.

See also sizeHint().

pub unsafe fn effective_size_hint_1a(&self, which: SizeHint) -> CppBox<QSizeF>[src]

Returns the effective size hint for this QGraphicsLayoutItem.

Calls C++ function: QSizeF QGraphicsLayoutItem::effectiveSizeHint(Qt::SizeHint which) const.

C++ documentation:

Returns the effective size hint for this QGraphicsLayoutItem.

which is the size hint in question. constraint is an optional argument that defines a special constrain when calculating the effective size hint. By default, constraint is QSizeF(-1, -1), which means there is no constraint to the size hint.

If you want to specify the widget's size hint for a given width or height, you can provide the fixed dimension in constraint. This is useful for widgets that can grow only either vertically or horizontally, and need to set either their width or their height to a special value.

For example, a text paragraph item fit into a column width of 200 may grow vertically. You can pass QSizeF(200, -1) as a constraint to get a suitable minimum, preferred and maximum height).

You can adjust the effective size hint by reimplementing sizeHint() in a QGraphicsLayoutItem subclass, or by calling one of the following functions: setMinimumSize(), setPreferredSize, or setMaximumSize() (or a combination of both).

This function caches each of the size hints and guarantees that sizeHint() will be called only once for each value of which - unless constraint is not specified and updateGeometry() has been called.

See also sizeHint().

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

Returns the item's geometry (e.g., position and size) as a QRectF. This function is equivalent to QRectF(pos(), size()).

Calls C++ function: QRectF QGraphicsLayoutItem::geometry() const.

C++ documentation:

Returns the item's geometry (e.g., position and size) as a QRectF. This function is equivalent to QRectF(pos(), size()).

See also setGeometry().

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

This virtual function provides the left, top, right and bottom contents margins for this QGraphicsLayoutItem. The default implementation assumes all contents margins are 0. The parameters point to values stored in qreals. If any of the pointers is 0, that value will not be updated.

Calls C++ function: virtual void QGraphicsLayoutItem::getContentsMargins(double* left, double* top, double* right, double* bottom) const.

C++ documentation:

This virtual function provides the left, top, right and bottom contents margins for this QGraphicsLayoutItem. The default implementation assumes all contents margins are 0. The parameters point to values stored in qreals. If any of the pointers is 0, that value will not be updated.

See also QGraphicsWidget::setContentsMargins().

pub unsafe fn graphics_item(&self) -> MutPtr<QGraphicsItem>[src]

Returns the QGraphicsItem that this layout item represents. For QGraphicsWidget it will return itself. For custom items it can return an aggregated value.

Calls C++ function: QGraphicsItem* QGraphicsLayoutItem::graphicsItem() const.

C++ documentation:

Returns the QGraphicsItem that this layout item represents. For QGraphicsWidget it will return itself. For custom items it can return an aggregated value.

See also setGraphicsItem().

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

Returns true if this QGraphicsLayoutItem is a layout (e.g., is inherited by an object that arranges other QGraphicsLayoutItem objects); otherwise returns false.

Calls C++ function: bool QGraphicsLayoutItem::isLayout() const.

C++ documentation:

Returns true if this QGraphicsLayoutItem is a layout (e.g., is inherited by an object that arranges other QGraphicsLayoutItem objects); otherwise returns false.

See also QGraphicsLayout.

pub unsafe fn maximum_height(&self) -> c_double[src]

Returns the maximum height.

Calls C++ function: double QGraphicsLayoutItem::maximumHeight() const.

C++ documentation:

Returns the maximum height.

See also setMaximumHeight(), setMaximumSize(), and maximumSize().

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

Returns the maximum size.

Calls C++ function: QSizeF QGraphicsLayoutItem::maximumSize() const.

C++ documentation:

Returns the maximum size.

See also setMaximumSize(), minimumSize(), preferredSize(), Qt::MaximumSize, and sizeHint().

pub unsafe fn maximum_width(&self) -> c_double[src]

Returns the maximum width.

Calls C++ function: double QGraphicsLayoutItem::maximumWidth() const.

C++ documentation:

Returns the maximum width.

See also setMaximumWidth(), setMaximumSize(), and maximumSize().

pub unsafe fn minimum_height(&self) -> c_double[src]

Returns the minimum height.

Calls C++ function: double QGraphicsLayoutItem::minimumHeight() const.

C++ documentation:

Returns the minimum height.

See also setMinimumHeight(), setMinimumSize(), and minimumSize().

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

Returns the minimum size.

Calls C++ function: QSizeF QGraphicsLayoutItem::minimumSize() const.

C++ documentation:

Returns the minimum size.

See also setMinimumSize(), preferredSize(), maximumSize(), Qt::MinimumSize, and sizeHint().

pub unsafe fn minimum_width(&self) -> c_double[src]

Returns the minimum width.

Calls C++ function: double QGraphicsLayoutItem::minimumWidth() const.

C++ documentation:

Returns the minimum width.

See also setMinimumWidth(), setMinimumSize(), and minimumSize().

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

Returns whether a layout should delete this item in its destructor. If its true, then the layout will delete it. If its false, then it is assumed that another object has the ownership of it, and the layout won't delete this item.

Calls C++ function: bool QGraphicsLayoutItem::ownedByLayout() const.

C++ documentation:

Returns whether a layout should delete this item in its destructor. If its true, then the layout will delete it. If its false, then it is assumed that another object has the ownership of it, and the layout won't delete this item.

If the item inherits both QGraphicsItem and QGraphicsLayoutItem (such as QGraphicsWidget does) the item is really part of two ownership hierarchies. This property informs what the layout should do with its child items when it is destructed. In the case of QGraphicsWidget, it is preferred that when the layout is deleted it won't delete its children (since they are also part of the graphics item hierarchy).

By default this value is initialized to false in QGraphicsLayoutItem, but it is overridden by QGraphicsLayout to return true. This is because QGraphicsLayout is not normally part of the QGraphicsItem hierarchy, so the parent layout should delete it. Subclasses might override this default behaviour by calling setOwnedByLayout(true).

This function was introduced in Qt 4.6.

See also setOwnedByLayout().

pub unsafe fn parent_layout_item(&self) -> MutPtr<QGraphicsLayoutItem>[src]

Returns the parent of this QGraphicsLayoutItem, or 0 if there is no parent, or if the parent does not inherit from QGraphicsLayoutItem (QGraphicsLayoutItem is often used through multiple inheritance with QObject-derived classes).

Calls C++ function: QGraphicsLayoutItem* QGraphicsLayoutItem::parentLayoutItem() const.

C++ documentation:

Returns the parent of this QGraphicsLayoutItem, or 0 if there is no parent, or if the parent does not inherit from QGraphicsLayoutItem (QGraphicsLayoutItem is often used through multiple inheritance with QObject-derived classes).

See also setParentLayoutItem().

pub unsafe fn preferred_height(&self) -> c_double[src]

Returns the preferred height.

Calls C++ function: double QGraphicsLayoutItem::preferredHeight() const.

C++ documentation:

Returns the preferred height.

See also setPreferredHeight(), setPreferredSize(), and preferredSize().

pub unsafe fn preferred_size(&self) -> CppBox<QSizeF>[src]

Returns the preferred size.

Calls C++ function: QSizeF QGraphicsLayoutItem::preferredSize() const.

C++ documentation:

Returns the preferred size.

See also setPreferredSize(), minimumSize(), maximumSize(), Qt::PreferredSize, and sizeHint().

pub unsafe fn preferred_width(&self) -> c_double[src]

Returns the preferred width.

Calls C++ function: double QGraphicsLayoutItem::preferredWidth() const.

C++ documentation:

Returns the preferred width.

See also setPreferredWidth(), setPreferredSize(), and preferredSize().

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

This virtual function sets the geometry of the QGraphicsLayoutItem to rect, which is in parent coordinates (e.g., the top-left corner of rect is equivalent to the item's position in parent coordinates).

Calls C++ function: virtual void QGraphicsLayoutItem::setGeometry(const QRectF& rect).

C++ documentation:

This virtual function sets the geometry of the QGraphicsLayoutItem to rect, which is in parent coordinates (e.g., the top-left corner of rect is equivalent to the item's position in parent coordinates).

You must reimplement this function in a subclass of QGraphicsLayoutItem to receive geometry updates. The layout will call this function when it does a rearrangement.

If rect is outside of the bounds of minimumSize and maximumSize, it will be adjusted to its closest size so that it is within the legal bounds.

See also geometry().

pub unsafe fn set_maximum_height(&mut self, height: c_double)[src]

Sets the maximum height to height.

Calls C++ function: void QGraphicsLayoutItem::setMaximumHeight(double height).

C++ documentation:

Sets the maximum height to height.

See also maximumHeight(), setMaximumSize(), and maximumSize().

pub unsafe fn set_maximum_size_1a(&mut self, size: impl CastInto<Ref<QSizeF>>)[src]

Sets the maximum size to size. This property overrides sizeHint() for Qt::MaximumSize and ensures that effectiveSizeHint() will never return a size larger than size. In order to unset the maximum size, use an invalid size.

Calls C++ function: void QGraphicsLayoutItem::setMaximumSize(const QSizeF& size).

C++ documentation:

Sets the maximum size to size. This property overrides sizeHint() for Qt::MaximumSize and ensures that effectiveSizeHint() will never return a size larger than size. In order to unset the maximum size, use an invalid size.

See also maximumSize(), minimumSize(), preferredSize(), Qt::MaximumSize, and sizeHint().

pub unsafe fn set_maximum_size_2a(&mut self, w: c_double, h: c_double)[src]

This convenience function is equivalent to calling setMaximumSize(QSizeF(w, h)).

Calls C++ function: void QGraphicsLayoutItem::setMaximumSize(double w, double h).

C++ documentation:

This convenience function is equivalent to calling setMaximumSize(QSizeF(w, h)).

See also maximumSize(), setMinimumSize(), setPreferredSize(), and sizeHint().

pub unsafe fn set_maximum_width(&mut self, width: c_double)[src]

Sets the maximum width to width.

Calls C++ function: void QGraphicsLayoutItem::setMaximumWidth(double width).

C++ documentation:

Sets the maximum width to width.

See also maximumWidth(), setMaximumSize(), and maximumSize().

pub unsafe fn set_minimum_height(&mut self, height: c_double)[src]

Sets the minimum height to height.

Calls C++ function: void QGraphicsLayoutItem::setMinimumHeight(double height).

C++ documentation:

Sets the minimum height to height.

See also minimumHeight(), setMinimumSize(), and minimumSize().

pub unsafe fn set_minimum_size_1a(&mut self, size: impl CastInto<Ref<QSizeF>>)[src]

Sets the minimum size to size. This property overrides sizeHint() for Qt::MinimumSize and ensures that effectiveSizeHint() will never return a size smaller than size. In order to unset the minimum size, use an invalid size.

Calls C++ function: void QGraphicsLayoutItem::setMinimumSize(const QSizeF& size).

C++ documentation:

Sets the minimum size to size. This property overrides sizeHint() for Qt::MinimumSize and ensures that effectiveSizeHint() will never return a size smaller than size. In order to unset the minimum size, use an invalid size.

See also minimumSize(), maximumSize(), preferredSize(), Qt::MinimumSize, sizeHint(), setMinimumWidth(), and setMinimumHeight().

pub unsafe fn set_minimum_size_2a(&mut self, w: c_double, h: c_double)[src]

This convenience function is equivalent to calling setMinimumSize(QSizeF(w, h)).

Calls C++ function: void QGraphicsLayoutItem::setMinimumSize(double w, double h).

C++ documentation:

This convenience function is equivalent to calling setMinimumSize(QSizeF(w, h)).

See also minimumSize(), setMaximumSize(), setPreferredSize(), and sizeHint().

pub unsafe fn set_minimum_width(&mut self, width: c_double)[src]

Sets the minimum width to width.

Calls C++ function: void QGraphicsLayoutItem::setMinimumWidth(double width).

C++ documentation:

Sets the minimum width to width.

See also minimumWidth(), setMinimumSize(), and minimumSize().

pub unsafe fn set_parent_layout_item(
    &mut self,
    parent: impl CastInto<MutPtr<QGraphicsLayoutItem>>
)
[src]

Sets the parent of this QGraphicsLayoutItem to parent.

Calls C++ function: void QGraphicsLayoutItem::setParentLayoutItem(QGraphicsLayoutItem* parent).

C++ documentation:

Sets the parent of this QGraphicsLayoutItem to parent.

See also parentLayoutItem().

pub unsafe fn set_preferred_height(&mut self, height: c_double)[src]

Sets the preferred height to height.

Calls C++ function: void QGraphicsLayoutItem::setPreferredHeight(double height).

C++ documentation:

Sets the preferred height to height.

See also preferredHeight(), preferredWidth(), setPreferredSize(), and preferredSize().

pub unsafe fn set_preferred_size_1a(&mut self, size: impl CastInto<Ref<QSizeF>>)[src]

Sets the preferred size to size. This property overrides sizeHint() for Qt::PreferredSize and provides the default value for effectiveSizeHint(). In order to unset the preferred size, use an invalid size.

Calls C++ function: void QGraphicsLayoutItem::setPreferredSize(const QSizeF& size).

C++ documentation:

Sets the preferred size to size. This property overrides sizeHint() for Qt::PreferredSize and provides the default value for effectiveSizeHint(). In order to unset the preferred size, use an invalid size.

See also preferredSize(), minimumSize(), maximumSize(), Qt::PreferredSize, and sizeHint().

pub unsafe fn set_preferred_size_2a(&mut self, w: c_double, h: c_double)[src]

This convenience function is equivalent to calling setPreferredSize(QSizeF(w, h)).

Calls C++ function: void QGraphicsLayoutItem::setPreferredSize(double w, double h).

C++ documentation:

This convenience function is equivalent to calling setPreferredSize(QSizeF(w, h)).

See also preferredSize(), setMaximumSize(), setMinimumSize(), and sizeHint().

pub unsafe fn set_preferred_width(&mut self, width: c_double)[src]

Sets the preferred width to width.

Calls C++ function: void QGraphicsLayoutItem::setPreferredWidth(double width).

C++ documentation:

Sets the preferred width to width.

See also preferredWidth(), preferredHeight(), setPreferredSize(), and preferredSize().

pub unsafe fn set_size_policy_1a(
    &mut self,
    policy: impl CastInto<Ref<QSizePolicy>>
)
[src]

Sets the size policy to policy. The size policy describes how the item should grow horizontally and vertically when arranged in a layout.

Calls C++ function: void QGraphicsLayoutItem::setSizePolicy(const QSizePolicy& policy).

C++ documentation:

Sets the size policy to policy. The size policy describes how the item should grow horizontally and vertically when arranged in a layout.

QGraphicsLayoutItem's default size policy is (QSizePolicy::Fixed, QSizePolicy::Fixed, QSizePolicy::DefaultType), but it is common for subclasses to change the default. For example, QGraphicsWidget defaults to (QSizePolicy::Preferred, QSizePolicy::Preferred, QSizePolicy::DefaultType).

See also sizePolicy() and QWidget::sizePolicy().

pub unsafe fn set_size_policy_3a(
    &mut self,
    h_policy: Policy,
    v_policy: Policy,
    control_type: ControlType
)
[src]

This is an overloaded function.

Calls C++ function: void QGraphicsLayoutItem::setSizePolicy(QSizePolicy::Policy hPolicy, QSizePolicy::Policy vPolicy, QSizePolicy::ControlType controlType = …).

C++ documentation:

This is an overloaded function.

This function is equivalent to calling setSizePolicy(QSizePolicy(hPolicy, vPolicy, controlType)).

See also sizePolicy() and QWidget::sizePolicy().

pub unsafe fn set_size_policy_2a(&mut self, h_policy: Policy, v_policy: Policy)[src]

This is an overloaded function.

Calls C++ function: void QGraphicsLayoutItem::setSizePolicy(QSizePolicy::Policy hPolicy, QSizePolicy::Policy vPolicy).

C++ documentation:

This is an overloaded function.

This function is equivalent to calling setSizePolicy(QSizePolicy(hPolicy, vPolicy, controlType)).

See also sizePolicy() and QWidget::sizePolicy().

pub unsafe fn size_policy(&self) -> CppBox<QSizePolicy>[src]

Returns the current size policy.

Calls C++ function: QSizePolicy QGraphicsLayoutItem::sizePolicy() const.

C++ documentation:

Returns the current size policy.

See also setSizePolicy() and QWidget::sizePolicy().

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

This virtual function discards any cached size hint information. You should always call this function if you change the return value of the sizeHint() function. Subclasses must always call the base implementation when reimplementing this function.

Calls C++ function: virtual void QGraphicsLayoutItem::updateGeometry().

C++ documentation:

This virtual function discards any cached size hint information. You should always call this function if you change the return value of the sizeHint() function. Subclasses must always call the base implementation when reimplementing this function.

See also effectiveSizeHint().

Trait Implementations

impl CppDeletable for QGraphicsLayoutItem[src]

unsafe fn delete(&mut self)[src]

Destroys the QGraphicsLayoutItem object.

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

C++ documentation:

Destroys the QGraphicsLayoutItem object.

impl DynamicCast<QGraphicsAnchorLayout> for QGraphicsLayoutItem[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QGraphicsLayoutItem>
) -> Ptr<QGraphicsAnchorLayout>
[src]

Calls C++ function: QGraphicsAnchorLayout* dynamic_cast<QGraphicsAnchorLayout*>(QGraphicsLayoutItem* ptr).

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QGraphicsLayoutItem>
) -> MutPtr<QGraphicsAnchorLayout>
[src]

Calls C++ function: QGraphicsAnchorLayout* dynamic_cast<QGraphicsAnchorLayout*>(QGraphicsLayoutItem* ptr).

impl DynamicCast<QGraphicsGridLayout> for QGraphicsLayoutItem[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QGraphicsLayoutItem>
) -> Ptr<QGraphicsGridLayout>
[src]

Calls C++ function: QGraphicsGridLayout* dynamic_cast<QGraphicsGridLayout*>(QGraphicsLayoutItem* ptr).

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QGraphicsLayoutItem>
) -> MutPtr<QGraphicsGridLayout>
[src]

Calls C++ function: QGraphicsGridLayout* dynamic_cast<QGraphicsGridLayout*>(QGraphicsLayoutItem* ptr).

impl DynamicCast<QGraphicsLayout> for QGraphicsLayoutItem[src]

unsafe fn dynamic_cast(ptr: Ptr<QGraphicsLayoutItem>) -> Ptr<QGraphicsLayout>[src]

Calls C++ function: QGraphicsLayout* dynamic_cast<QGraphicsLayout*>(QGraphicsLayoutItem* ptr).

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QGraphicsLayoutItem>
) -> MutPtr<QGraphicsLayout>
[src]

Calls C++ function: QGraphicsLayout* dynamic_cast<QGraphicsLayout*>(QGraphicsLayoutItem* ptr).

impl DynamicCast<QGraphicsLinearLayout> for QGraphicsLayoutItem[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QGraphicsLayoutItem>
) -> Ptr<QGraphicsLinearLayout>
[src]

Calls C++ function: QGraphicsLinearLayout* dynamic_cast<QGraphicsLinearLayout*>(QGraphicsLayoutItem* ptr).

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QGraphicsLayoutItem>
) -> MutPtr<QGraphicsLinearLayout>
[src]

Calls C++ function: QGraphicsLinearLayout* dynamic_cast<QGraphicsLinearLayout*>(QGraphicsLayoutItem* ptr).

impl DynamicCast<QGraphicsProxyWidget> for QGraphicsLayoutItem[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QGraphicsLayoutItem>
) -> Ptr<QGraphicsProxyWidget>
[src]

Calls C++ function: QGraphicsProxyWidget* dynamic_cast<QGraphicsProxyWidget*>(QGraphicsLayoutItem* ptr).

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QGraphicsLayoutItem>
) -> MutPtr<QGraphicsProxyWidget>
[src]

Calls C++ function: QGraphicsProxyWidget* dynamic_cast<QGraphicsProxyWidget*>(QGraphicsLayoutItem* ptr).

impl DynamicCast<QGraphicsWidget> for QGraphicsLayoutItem[src]

unsafe fn dynamic_cast(ptr: Ptr<QGraphicsLayoutItem>) -> Ptr<QGraphicsWidget>[src]

Calls C++ function: QGraphicsWidget* dynamic_cast<QGraphicsWidget*>(QGraphicsLayoutItem* ptr).

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QGraphicsLayoutItem>
) -> MutPtr<QGraphicsWidget>
[src]

Calls C++ function: QGraphicsWidget* dynamic_cast<QGraphicsWidget*>(QGraphicsLayoutItem* ptr).

impl StaticDowncast<QGraphicsAnchorLayout> for QGraphicsLayoutItem[src]

unsafe fn static_downcast(
    ptr: Ptr<QGraphicsLayoutItem>
) -> Ptr<QGraphicsAnchorLayout>
[src]

Calls C++ function: QGraphicsAnchorLayout* static_cast<QGraphicsAnchorLayout*>(QGraphicsLayoutItem* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QGraphicsLayoutItem>
) -> MutPtr<QGraphicsAnchorLayout>
[src]

Calls C++ function: QGraphicsAnchorLayout* static_cast<QGraphicsAnchorLayout*>(QGraphicsLayoutItem* ptr).

impl StaticDowncast<QGraphicsGridLayout> for QGraphicsLayoutItem[src]

unsafe fn static_downcast(
    ptr: Ptr<QGraphicsLayoutItem>
) -> Ptr<QGraphicsGridLayout>
[src]

Calls C++ function: QGraphicsGridLayout* static_cast<QGraphicsGridLayout*>(QGraphicsLayoutItem* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QGraphicsLayoutItem>
) -> MutPtr<QGraphicsGridLayout>
[src]

Calls C++ function: QGraphicsGridLayout* static_cast<QGraphicsGridLayout*>(QGraphicsLayoutItem* ptr).

impl StaticDowncast<QGraphicsLayout> for QGraphicsLayoutItem[src]

unsafe fn static_downcast(ptr: Ptr<QGraphicsLayoutItem>) -> Ptr<QGraphicsLayout>[src]

Calls C++ function: QGraphicsLayout* static_cast<QGraphicsLayout*>(QGraphicsLayoutItem* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QGraphicsLayoutItem>
) -> MutPtr<QGraphicsLayout>
[src]

Calls C++ function: QGraphicsLayout* static_cast<QGraphicsLayout*>(QGraphicsLayoutItem* ptr).

impl StaticDowncast<QGraphicsLinearLayout> for QGraphicsLayoutItem[src]

unsafe fn static_downcast(
    ptr: Ptr<QGraphicsLayoutItem>
) -> Ptr<QGraphicsLinearLayout>
[src]

Calls C++ function: QGraphicsLinearLayout* static_cast<QGraphicsLinearLayout*>(QGraphicsLayoutItem* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QGraphicsLayoutItem>
) -> MutPtr<QGraphicsLinearLayout>
[src]

Calls C++ function: QGraphicsLinearLayout* static_cast<QGraphicsLinearLayout*>(QGraphicsLayoutItem* ptr).

impl StaticDowncast<QGraphicsProxyWidget> for QGraphicsLayoutItem[src]

unsafe fn static_downcast(
    ptr: Ptr<QGraphicsLayoutItem>
) -> Ptr<QGraphicsProxyWidget>
[src]

Calls C++ function: QGraphicsProxyWidget* static_cast<QGraphicsProxyWidget*>(QGraphicsLayoutItem* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QGraphicsLayoutItem>
) -> MutPtr<QGraphicsProxyWidget>
[src]

Calls C++ function: QGraphicsProxyWidget* static_cast<QGraphicsProxyWidget*>(QGraphicsLayoutItem* ptr).

impl StaticDowncast<QGraphicsWidget> for QGraphicsLayoutItem[src]

unsafe fn static_downcast(ptr: Ptr<QGraphicsLayoutItem>) -> Ptr<QGraphicsWidget>[src]

Calls C++ function: QGraphicsWidget* static_cast<QGraphicsWidget*>(QGraphicsLayoutItem* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QGraphicsLayoutItem>
) -> MutPtr<QGraphicsWidget>
[src]

Calls C++ function: QGraphicsWidget* static_cast<QGraphicsWidget*>(QGraphicsLayoutItem* ptr).

impl StaticUpcast<QGraphicsLayoutItem> for QGraphicsLayout[src]

unsafe fn static_upcast(ptr: Ptr<QGraphicsLayout>) -> Ptr<QGraphicsLayoutItem>[src]

Calls C++ function: QGraphicsLayoutItem* static_cast<QGraphicsLayoutItem*>(QGraphicsLayout* ptr).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QGraphicsLayout>
) -> MutPtr<QGraphicsLayoutItem>
[src]

Calls C++ function: QGraphicsLayoutItem* static_cast<QGraphicsLayoutItem*>(QGraphicsLayout* ptr).

impl StaticUpcast<QGraphicsLayoutItem> for QGraphicsAnchorLayout[src]

unsafe fn static_upcast(
    ptr: Ptr<QGraphicsAnchorLayout>
) -> Ptr<QGraphicsLayoutItem>
[src]

Calls C++ function: QGraphicsLayoutItem* static_cast<QGraphicsLayoutItem*>(QGraphicsAnchorLayout* ptr).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QGraphicsAnchorLayout>
) -> MutPtr<QGraphicsLayoutItem>
[src]

Calls C++ function: QGraphicsLayoutItem* static_cast<QGraphicsLayoutItem*>(QGraphicsAnchorLayout* ptr).

impl StaticUpcast<QGraphicsLayoutItem> for QGraphicsGridLayout[src]

unsafe fn static_upcast(
    ptr: Ptr<QGraphicsGridLayout>
) -> Ptr<QGraphicsLayoutItem>
[src]

Calls C++ function: QGraphicsLayoutItem* static_cast<QGraphicsLayoutItem*>(QGraphicsGridLayout* ptr).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QGraphicsGridLayout>
) -> MutPtr<QGraphicsLayoutItem>
[src]

Calls C++ function: QGraphicsLayoutItem* static_cast<QGraphicsLayoutItem*>(QGraphicsGridLayout* ptr).

impl StaticUpcast<QGraphicsLayoutItem> for QGraphicsLinearLayout[src]

unsafe fn static_upcast(
    ptr: Ptr<QGraphicsLinearLayout>
) -> Ptr<QGraphicsLayoutItem>
[src]

Calls C++ function: QGraphicsLayoutItem* static_cast<QGraphicsLayoutItem*>(QGraphicsLinearLayout* ptr).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QGraphicsLinearLayout>
) -> MutPtr<QGraphicsLayoutItem>
[src]

Calls C++ function: QGraphicsLayoutItem* static_cast<QGraphicsLayoutItem*>(QGraphicsLinearLayout* ptr).

impl StaticUpcast<QGraphicsLayoutItem> for QGraphicsWidget[src]

unsafe fn static_upcast(ptr: Ptr<QGraphicsWidget>) -> Ptr<QGraphicsLayoutItem>[src]

Calls C++ function: QGraphicsLayoutItem* static_cast<QGraphicsLayoutItem*>(QGraphicsWidget* ptr).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QGraphicsWidget>
) -> MutPtr<QGraphicsLayoutItem>
[src]

Calls C++ function: QGraphicsLayoutItem* static_cast<QGraphicsLayoutItem*>(QGraphicsWidget* ptr).

impl StaticUpcast<QGraphicsLayoutItem> for QGraphicsProxyWidget[src]

unsafe fn static_upcast(
    ptr: Ptr<QGraphicsProxyWidget>
) -> Ptr<QGraphicsLayoutItem>
[src]

Calls C++ function: QGraphicsLayoutItem* static_cast<QGraphicsLayoutItem*>(QGraphicsProxyWidget* ptr).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QGraphicsProxyWidget>
) -> MutPtr<QGraphicsLayoutItem>
[src]

Calls C++ function: QGraphicsLayoutItem* static_cast<QGraphicsLayoutItem*>(QGraphicsProxyWidget* ptr).

Auto Trait Implementations

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.