[][src]Struct qt_gui::QHelpEvent

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

The QHelpEvent class provides an event that is used to request helpful information about a particular point in a widget.

C++ class: QHelpEvent.

C++ documentation:

The QHelpEvent class provides an event that is used to request helpful information about a particular point in a widget.

This event can be intercepted in applications to provide tooltips or "What's This?" help for custom widgets. The type() can be either QEvent::ToolTip or QEvent::WhatsThis.

Methods

impl QHelpEvent[src]

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

The QHelpEvent class provides an event that is used to request helpful information about a particular point in a widget.

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

C++ documentation:

The QHelpEvent class provides an event that is used to request helpful information about a particular point in a widget.

This event can be intercepted in applications to provide tooltips or "What's This?" help for custom widgets. The type() can be either QEvent::ToolTip or QEvent::WhatsThis.

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

Returns the mouse cursor position when the event was generated in global coordinates.

Calls C++ function: const QPoint& QHelpEvent::globalPos() const.

C++ documentation:

Returns the mouse cursor position when the event was generated in global coordinates.

See also pos(), globalX(), and globalY().

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

Same as globalPos().x().

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

C++ documentation:

Same as globalPos().x().

See also x(), globalY(), and globalPos().

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

Same as globalPos().y().

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

C++ documentation:

Same as globalPos().y().

See also y(), globalX(), and globalPos().

pub unsafe fn new(
    type_: Type,
    pos: impl CastInto<Ref<QPoint>>,
    global_pos: impl CastInto<Ref<QPoint>>
) -> CppBox<QHelpEvent>
[src]

Constructs a help event with the given type corresponding to the widget-relative position specified by pos and the global position specified by globalPos.

Calls C++ function: [constructor] void QHelpEvent::QHelpEvent(QEvent::Type type, const QPoint& pos, const QPoint& globalPos).

C++ documentation:

Constructs a help event with the given type corresponding to the widget-relative position specified by pos and the global position specified by globalPos.

type must be either QEvent::ToolTip or QEvent::WhatsThis.

See also pos() and globalPos().

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

The QHelpEvent class provides an event that is used to request helpful information about a particular point in a widget.

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

C++ documentation:

The QHelpEvent class provides an event that is used to request helpful information about a particular point in a widget.

This event can be intercepted in applications to provide tooltips or "What's This?" help for custom widgets. The type() can be either QEvent::ToolTip or QEvent::WhatsThis.

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

Returns the mouse cursor position when the event was generated, relative to the widget to which the event is dispatched.

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

C++ documentation:

Returns the mouse cursor position when the event was generated, relative to the widget to which the event is dispatched.

See also globalPos(), x(), and y().

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

Same as pos().x().

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

C++ documentation:

Same as pos().x().

See also y(), pos(), and globalPos().

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

Same as pos().y().

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

C++ documentation:

Same as pos().y().

See also x(), pos(), and globalPos().

Trait Implementations

impl CppDeletable for QHelpEvent[src]

unsafe fn delete(&mut self)[src]

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

impl Deref for QHelpEvent[src]

type Target = QEvent

The resulting type after dereferencing.

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

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

impl DerefMut for QHelpEvent[src]

fn deref_mut(&mut self) -> &mut QEvent[src]

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

impl DynamicCast<QHelpEvent> for QEvent[src]

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

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

unsafe fn dynamic_cast_mut(ptr: MutPtr<QEvent>) -> MutPtr<QHelpEvent>[src]

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

impl StaticDowncast<QHelpEvent> for QEvent[src]

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

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

unsafe fn static_downcast_mut(ptr: MutPtr<QEvent>) -> MutPtr<QHelpEvent>[src]

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

impl StaticUpcast<QEvent> for QHelpEvent[src]

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

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

unsafe fn static_upcast_mut(ptr: MutPtr<QHelpEvent>) -> MutPtr<QEvent>[src]

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