[][src]Struct qt_widgets::QGraphicsSceneHelpEvent

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

The QGraphicsSceneHelpEvent class provides events when a tooltip is requested.

C++ class: QGraphicsSceneHelpEvent.

C++ documentation:

The QGraphicsSceneHelpEvent class provides events when a tooltip is requested.

When a QGraphicsView receives a QEvent of type QEvent::ToolTip, it creates a QGraphicsSceneHelpEvent, which is forwarded to the scene. You can set a tooltip on a QGraphicsItem with setToolTip(); by default QGraphicsScene displays the tooltip of the QGraphicsItem with the highest z-value (i.e, the top-most item) under the mouse position.

QGraphicsView does not forward events when "What's This" and status tip help is requested. If you need this, you can reimplement QGraphicsView::viewportEvent() and forward QStatusTipEvent events and QEvents of type QEvent::WhatsThis to the scene.

Methods

impl QGraphicsSceneHelpEvent[src]

pub unsafe fn new_1a(type_: Type) -> CppBox<QGraphicsSceneHelpEvent>[src]

Calls C++ function: [constructor] void QGraphicsSceneHelpEvent::QGraphicsSceneHelpEvent(QEvent::Type type = …).

pub unsafe fn new_0a() -> CppBox<QGraphicsSceneHelpEvent>[src]

The QGraphicsSceneHelpEvent class provides events when a tooltip is requested.

Calls C++ function: [constructor] void QGraphicsSceneHelpEvent::QGraphicsSceneHelpEvent().

C++ documentation:

The QGraphicsSceneHelpEvent class provides events when a tooltip is requested.

When a QGraphicsView receives a QEvent of type QEvent::ToolTip, it creates a QGraphicsSceneHelpEvent, which is forwarded to the scene. You can set a tooltip on a QGraphicsItem with setToolTip(); by default QGraphicsScene displays the tooltip of the QGraphicsItem with the highest z-value (i.e, the top-most item) under the mouse position.

QGraphicsView does not forward events when "What's This" and status tip help is requested. If you need this, you can reimplement QGraphicsView::viewportEvent() and forward QStatusTipEvent events and QEvents of type QEvent::WhatsThis to the scene.

pub unsafe fn scene_pos(&self) -> CppBox<QPointF>[src]

Returns the position of the mouse cursor in scene coordinates at the moment the help event was sent.

Calls C++ function: QPointF QGraphicsSceneHelpEvent::scenePos() const.

C++ documentation:

Returns the position of the mouse cursor in scene coordinates at the moment the help event was sent.

See also screenPos().

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

Returns the position of the mouse cursor in screen coordinates at the moment the help event was sent.

Calls C++ function: QPoint QGraphicsSceneHelpEvent::screenPos() const.

C++ documentation:

Returns the position of the mouse cursor in screen coordinates at the moment the help event was sent.

See also scenePos().

pub unsafe fn set_scene_pos(&mut self, pos: impl CastInto<Ref<QPointF>>)[src]

Calls C++ function: void QGraphicsSceneHelpEvent::setScenePos(const QPointF& pos).

pub unsafe fn set_screen_pos(&mut self, pos: impl CastInto<Ref<QPoint>>)[src]

Calls C++ function: void QGraphicsSceneHelpEvent::setScreenPos(const QPoint& pos).

Methods from Deref<Target = QGraphicsSceneEvent>

pub unsafe fn set_widget(&mut self, widget: impl CastInto<MutPtr<QWidget>>)[src]

Calls C++ function: void QGraphicsSceneEvent::setWidget(QWidget* widget).

pub unsafe fn widget(&self) -> MutPtr<QWidget>[src]

Returns the widget where the event originated, or 0 if the event originates from another application.

Calls C++ function: QWidget* QGraphicsSceneEvent::widget() const.

C++ documentation:

Returns the widget where the event originated, or 0 if the event originates from another application.

Trait Implementations

impl Deref for QGraphicsSceneHelpEvent[src]

type Target = QGraphicsSceneEvent

The resulting type after dereferencing.

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

Calls C++ function: QGraphicsSceneEvent* static_cast<QGraphicsSceneEvent*>(QGraphicsSceneHelpEvent* ptr).

impl DerefMut for QGraphicsSceneHelpEvent[src]

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

Calls C++ function: QGraphicsSceneEvent* static_cast<QGraphicsSceneEvent*>(QGraphicsSceneHelpEvent* ptr).

impl StaticUpcast<QGraphicsSceneEvent> for QGraphicsSceneHelpEvent[src]

unsafe fn static_upcast(
    ptr: Ptr<QGraphicsSceneHelpEvent>
) -> Ptr<QGraphicsSceneEvent>
[src]

Calls C++ function: QGraphicsSceneEvent* static_cast<QGraphicsSceneEvent*>(QGraphicsSceneHelpEvent* ptr).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QGraphicsSceneHelpEvent>
) -> MutPtr<QGraphicsSceneEvent>
[src]

Calls C++ function: QGraphicsSceneEvent* static_cast<QGraphicsSceneEvent*>(QGraphicsSceneHelpEvent* ptr).

impl StaticUpcast<QEvent> for QGraphicsSceneHelpEvent[src]

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

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

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

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

impl StaticDowncast<QGraphicsSceneHelpEvent> for QGraphicsSceneEvent[src]

unsafe fn static_downcast(
    ptr: Ptr<QGraphicsSceneEvent>
) -> Ptr<QGraphicsSceneHelpEvent>
[src]

Calls C++ function: QGraphicsSceneHelpEvent* static_cast<QGraphicsSceneHelpEvent*>(QGraphicsSceneEvent* ptr).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QGraphicsSceneEvent>
) -> MutPtr<QGraphicsSceneHelpEvent>
[src]

Calls C++ function: QGraphicsSceneHelpEvent* static_cast<QGraphicsSceneHelpEvent*>(QGraphicsSceneEvent* ptr).

impl StaticDowncast<QGraphicsSceneHelpEvent> for QEvent[src]

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

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

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

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

impl DynamicCast<QGraphicsSceneHelpEvent> for QGraphicsSceneEvent[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QGraphicsSceneEvent>
) -> Ptr<QGraphicsSceneHelpEvent>
[src]

Calls C++ function: QGraphicsSceneHelpEvent* dynamic_cast<QGraphicsSceneHelpEvent*>(QGraphicsSceneEvent* ptr).

unsafe fn dynamic_cast_mut(
    ptr: MutPtr<QGraphicsSceneEvent>
) -> MutPtr<QGraphicsSceneHelpEvent>
[src]

Calls C++ function: QGraphicsSceneHelpEvent* dynamic_cast<QGraphicsSceneHelpEvent*>(QGraphicsSceneEvent* ptr).

impl DynamicCast<QGraphicsSceneHelpEvent> for QEvent[src]

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

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

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

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

impl CppDeletable for QGraphicsSceneHelpEvent[src]

unsafe fn delete(&mut self)[src]

Destroys the event.

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

C++ documentation:

Destroys the event.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]