[][src]Struct qt_gui::QResizeEvent

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

The QResizeEvent class contains event parameters for resize events.

C++ class: QResizeEvent.

C++ documentation:

The QResizeEvent class contains event parameters for resize events.

Resize events are sent to widgets that have been resized.

The event handler QWidget::resizeEvent() receives resize events.

Methods

impl QResizeEvent[src]

pub unsafe fn copy_from(
    &self,
    other: impl CastInto<Ref<QResizeEvent>>
) -> Ref<QResizeEvent>
[src]

The QResizeEvent class contains event parameters for resize events.

Calls C++ function: QResizeEvent& QResizeEvent::operator=(const QResizeEvent& other).

C++ documentation:

The QResizeEvent class contains event parameters for resize events.

Resize events are sent to widgets that have been resized.

The event handler QWidget::resizeEvent() receives resize events.

pub unsafe fn new(
    size: impl CastInto<Ref<QSize>>,
    old_size: impl CastInto<Ref<QSize>>
) -> CppBox<QResizeEvent>
[src]

Constructs a resize event with the new and old widget sizes, size and oldSize respectively.

Calls C++ function: [constructor] void QResizeEvent::QResizeEvent(const QSize& size, const QSize& oldSize).

C++ documentation:

Constructs a resize event with the new and old widget sizes, size and oldSize respectively.

pub unsafe fn new_copy(
    other: impl CastInto<Ref<QResizeEvent>>
) -> CppBox<QResizeEvent>
[src]

The QResizeEvent class contains event parameters for resize events.

Calls C++ function: [constructor] void QResizeEvent::QResizeEvent(const QResizeEvent& other).

C++ documentation:

The QResizeEvent class contains event parameters for resize events.

Resize events are sent to widgets that have been resized.

The event handler QWidget::resizeEvent() receives resize events.

pub unsafe fn old_size(&self) -> Ref<QSize>[src]

Returns the old size of the widget.

Calls C++ function: const QSize& QResizeEvent::oldSize() const.

C++ documentation:

Returns the old size of the widget.

pub unsafe fn size(&self) -> Ref<QSize>[src]

Returns the new size of the widget. This is the same as QWidget::size().

Calls C++ function: const QSize& QResizeEvent::size() const.

C++ documentation:

Returns the new size of the widget. This is the same as QWidget::size().

Trait Implementations

impl CppDeletable for QResizeEvent[src]

unsafe fn delete(&self)[src]

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

impl Deref for QResizeEvent[src]

type Target = QEvent

The resulting type after dereferencing.

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

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

impl DynamicCast<QResizeEvent> for QEvent[src]

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

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

impl Size for QResizeEvent[src]

unsafe fn size(&self) -> usize[src]

Returns the new size of the widget. This is the same as QWidget::size().

Calls C++ function: const QSize& QResizeEvent::size() const.

C++ documentation:

Returns the new size of the widget. This is the same as QWidget::size().

impl StaticDowncast<QResizeEvent> for QEvent[src]

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

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

impl StaticUpcast<QEvent> for QResizeEvent[src]

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

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