[][src]Struct qt_widgets::QGraphicsSceneResizeEvent

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

The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework.

C++ class: QGraphicsSceneResizeEvent.

C++ documentation:

The QGraphicsSceneResizeEvent class provides events for widget resizing in the graphics view framework.

A QGraphicsWidget sends itself a QGraphicsSceneResizeEvent immediately when its geometry changes.

It's similar to QResizeEvent, but its sizes, oldSize() and newSize(), use QSizeF instead of QSize.

Methods

impl QGraphicsSceneResizeEvent[src]

pub unsafe fn new() -> CppBox<QGraphicsSceneResizeEvent>[src]

Constructs a QGraphicsSceneResizeEvent.

Calls C++ function: [constructor] void QGraphicsSceneResizeEvent::QGraphicsSceneResizeEvent().

C++ documentation:

Constructs a QGraphicsSceneResizeEvent.

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

Returns the new size (i.e., the current size).

Calls C++ function: QSizeF QGraphicsSceneResizeEvent::newSize() const.

C++ documentation:

Returns the new size (i.e., the current size).

See also oldSize() and QGraphicsWidget::resize().

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

Returns the old size (i.e., the size immediately before the widget was resized).

Calls C++ function: QSizeF QGraphicsSceneResizeEvent::oldSize() const.

C++ documentation:

Returns the old size (i.e., the size immediately before the widget was resized).

See also newSize() and QGraphicsWidget::resize().

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

Calls C++ function: void QGraphicsSceneResizeEvent::setNewSize(const QSizeF& size).

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

Calls C++ function: void QGraphicsSceneResizeEvent::setOldSize(const QSizeF& size).

Methods from Deref<Target = QGraphicsSceneEvent>

pub unsafe fn set_widget(&self, widget: impl CastInto<Ptr<QWidget>>)[src]

Calls C++ function: void QGraphicsSceneEvent::setWidget(QWidget* widget).

pub unsafe fn widget(&self) -> QPtr<QWidget>[src]

Returns the widget where the event originated, or 0 if the event originates from another application.

Calls C++ function: QWidget* QGraphicsSceneEvent::widget() const.

C++ documentation:

Returns the widget where the event originated, or 0 if the event originates from another application.

Trait Implementations

impl CppDeletable for QGraphicsSceneResizeEvent[src]

unsafe fn delete(&self)[src]

Destroys the QGraphicsSceneResizeEvent.

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

C++ documentation:

impl Deref for QGraphicsSceneResizeEvent[src]

type Target = QGraphicsSceneEvent

The resulting type after dereferencing.

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

Calls C++ function: QGraphicsSceneEvent* static_cast<QGraphicsSceneEvent*>(QGraphicsSceneResizeEvent* ptr).

impl DynamicCast<QGraphicsSceneResizeEvent> for QGraphicsSceneEvent[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QGraphicsSceneEvent>
) -> Ptr<QGraphicsSceneResizeEvent>
[src]

Calls C++ function: QGraphicsSceneResizeEvent* dynamic_cast<QGraphicsSceneResizeEvent*>(QGraphicsSceneEvent* ptr).

impl DynamicCast<QGraphicsSceneResizeEvent> for QEvent[src]

unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QGraphicsSceneResizeEvent>[src]

Calls C++ function: QGraphicsSceneResizeEvent* dynamic_cast<QGraphicsSceneResizeEvent*>(QEvent* ptr).

impl StaticDowncast<QGraphicsSceneResizeEvent> for QGraphicsSceneEvent[src]

unsafe fn static_downcast(
    ptr: Ptr<QGraphicsSceneEvent>
) -> Ptr<QGraphicsSceneResizeEvent>
[src]

Calls C++ function: QGraphicsSceneResizeEvent* static_cast<QGraphicsSceneResizeEvent*>(QGraphicsSceneEvent* ptr).

impl StaticDowncast<QGraphicsSceneResizeEvent> for QEvent[src]

unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QGraphicsSceneResizeEvent>[src]

Calls C++ function: QGraphicsSceneResizeEvent* static_cast<QGraphicsSceneResizeEvent*>(QEvent* ptr).

impl StaticUpcast<QEvent> for QGraphicsSceneResizeEvent[src]

unsafe fn static_upcast(ptr: Ptr<QGraphicsSceneResizeEvent>) -> Ptr<QEvent>[src]

Calls C++ function: QEvent* static_cast<QEvent*>(QGraphicsSceneResizeEvent* ptr).

impl StaticUpcast<QGraphicsSceneEvent> for QGraphicsSceneResizeEvent[src]

unsafe fn static_upcast(
    ptr: Ptr<QGraphicsSceneResizeEvent>
) -> Ptr<QGraphicsSceneEvent>
[src]

Calls C++ function: QGraphicsSceneEvent* static_cast<QGraphicsSceneEvent*>(QGraphicsSceneResizeEvent* 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.