[][src]Struct qt_gui::QEnterEvent

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

The QEnterEvent class contains parameters that describe an enter event.

C++ class: QEnterEvent.

C++ documentation:

The QEnterEvent class contains parameters that describe an enter event.

Enter events occur when the mouse cursor enters a window or a widget.

Methods

impl QEnterEvent[src]

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

The QEnterEvent class contains parameters that describe an enter event.

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

C++ documentation:

The QEnterEvent class contains parameters that describe an enter event.

Enter events occur when the mouse cursor enters a window or a widget.

pub unsafe fn global_pos(&self) -> CppBox<QPoint>[src]

Returns the global position of the widget at the time of the event.

Calls C++ function: QPoint QEnterEvent::globalPos() const.

C++ documentation:

Returns the global position of the widget at the time of the event.

pub unsafe fn global_x(&self) -> c_int[src]

Returns the global position on the X-axis of the mouse cursor relative to the the widget.

Calls C++ function: int QEnterEvent::globalX() const.

C++ documentation:

Returns the global position on the X-axis of the mouse cursor relative to the the widget.

pub unsafe fn global_y(&self) -> c_int[src]

Returns the global position on the Y-axis of the mouse cursor relative to the the widget.

Calls C++ function: int QEnterEvent::globalY() const.

C++ documentation:

Returns the global position on the Y-axis of the mouse cursor relative to the the widget.

pub unsafe fn local_pos(&self) -> Ref<QPointF>[src]

Returns the mouse cursor's position relative to the receiving widget.

Calls C++ function: const QPointF& QEnterEvent::localPos() const.

C++ documentation:

Returns the mouse cursor's position relative to the receiving widget.

pub unsafe fn new(
    local_pos: impl CastInto<Ref<QPointF>>,
    window_pos: impl CastInto<Ref<QPointF>>,
    screen_pos: impl CastInto<Ref<QPointF>>
) -> CppBox<QEnterEvent>
[src]

Constructs an enter event object.

Calls C++ function: [constructor] void QEnterEvent::QEnterEvent(const QPointF& localPos, const QPointF& windowPos, const QPointF& screenPos).

C++ documentation:

Constructs an enter event object.

The points localPos, windowPos and screenPos specify the mouse cursor's position relative to the receiving widget or item, window, and screen, respectively.

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

The QEnterEvent class contains parameters that describe an enter event.

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

C++ documentation:

The QEnterEvent class contains parameters that describe an enter event.

Enter events occur when the mouse cursor enters a window or a widget.

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

Returns the position of the mouse cursor in global screen coordinates.

Calls C++ function: QPoint QEnterEvent::pos() const.

C++ documentation:

Returns the position of the mouse cursor in global screen coordinates.

pub unsafe fn screen_pos(&self) -> Ref<QPointF>[src]

Returns the position of the mouse cursor relative to the receiving screen.

Calls C++ function: const QPointF& QEnterEvent::screenPos() const.

C++ documentation:

Returns the position of the mouse cursor relative to the receiving screen.

pub unsafe fn window_pos(&self) -> Ref<QPointF>[src]

Returns the position of the mouse cursor relative to the receiving window.

Calls C++ function: const QPointF& QEnterEvent::windowPos() const.

C++ documentation:

Returns the position of the mouse cursor relative to the receiving window.

pub unsafe fn x(&self) -> c_int[src]

Returns the x position of the mouse cursor relative to the receiving widget.

Calls C++ function: int QEnterEvent::x() const.

C++ documentation:

Returns the x position of the mouse cursor relative to the receiving widget.

pub unsafe fn y(&self) -> c_int[src]

Returns the y position of the mouse cursor relative to the receiving widget.

Calls C++ function: int QEnterEvent::y() const.

C++ documentation:

Returns the y position of the mouse cursor relative to the receiving widget.

Trait Implementations

impl CppDeletable for QEnterEvent[src]

unsafe fn delete(&self)[src]

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

impl Deref for QEnterEvent[src]

type Target = QEvent

The resulting type after dereferencing.

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

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

impl DynamicCast<QEnterEvent> for QEvent[src]

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

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

impl StaticDowncast<QEnterEvent> for QEvent[src]

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

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

impl StaticUpcast<QEvent> for QEnterEvent[src]

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

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