[−][src]Struct qt_gui::QMoveEvent
The QMoveEvent class contains event parameters for move events.
C++ class: QMoveEvent
.
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]
&self,
other: impl CastInto<Ref<QMoveEvent>>
) -> Ref<QMoveEvent>
The QMoveEvent class contains event parameters for move events.
Calls C++ function: QMoveEvent& QMoveEvent::operator=(const QMoveEvent& other)
.
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]
pos: impl CastInto<Ref<QPoint>>,
old_pos: impl CastInto<Ref<QPoint>>
) -> CppBox<QMoveEvent>
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)
.
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]
other: impl CastInto<Ref<QMoveEvent>>
) -> CppBox<QMoveEvent>
The QMoveEvent class contains event parameters for move events.
Calls C++ function: [constructor] void QMoveEvent::QMoveEvent(const QMoveEvent& other)
.
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
.
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
.
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
impl RefUnwindSafe for QMoveEvent
impl Send for QMoveEvent
impl Sync for QMoveEvent
impl Unpin for QMoveEvent
impl UnwindSafe for QMoveEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,