[][src]Struct qt_gui::QMoveEvent

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

The QMoveEvent class contains event parameters for move events.

C++ class: QMoveEvent.

C++ documentation:

The QMoveEvent class contains event parameters for move events.

Move events are sent to widgets that have been moved to a new position relative to their parent.

The event handler QWidget::moveEvent() receives move events.

Methods

impl QMoveEvent[src]

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

The QMoveEvent class contains event parameters for move events.

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

C++ documentation:

The QMoveEvent class contains event parameters for move events.

Move events are sent to widgets that have been moved to a new position relative to their parent.

The event handler QWidget::moveEvent() receives move events.

pub unsafe fn new(
    pos: impl CastInto<Ref<QPoint>>,
    old_pos: impl CastInto<Ref<QPoint>>
) -> CppBox<QMoveEvent>
[src]

Constructs a move event with the new and old widget positions, pos and oldPos respectively.

Calls C++ function: [constructor] void QMoveEvent::QMoveEvent(const QPoint& pos, const QPoint& oldPos).

C++ documentation:

Constructs a move event with the new and old widget positions, pos and oldPos respectively.

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

The QMoveEvent class contains event parameters for move events.

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

C++ documentation:

The QMoveEvent class contains event parameters for move events.

Move events are sent to widgets that have been moved to a new position relative to their parent.

The event handler QWidget::moveEvent() receives move events.

pub unsafe fn old_pos(&self) -> Ref<QPoint>[src]

Returns the old position of the widget.

Calls C++ function: const QPoint& QMoveEvent::oldPos() const.

C++ documentation:

Returns the old position of the widget.

pub unsafe fn pos(&self) -> Ref<QPoint>[src]

Returns the new position of the widget. This excludes the window frame for top level widgets.

Calls C++ function: const QPoint& QMoveEvent::pos() const.

C++ documentation:

Returns the new position of the widget. This excludes the window frame for top level widgets.

Trait Implementations

impl CppDeletable for QMoveEvent[src]

unsafe fn delete(&self)[src]

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

impl Deref for QMoveEvent[src]

type Target = QEvent

The resulting type after dereferencing.

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

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

impl DynamicCast<QMoveEvent> for QEvent[src]

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

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

impl StaticDowncast<QMoveEvent> for QEvent[src]

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

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

impl StaticUpcast<QEvent> for QMoveEvent[src]

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

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