[−][src]Struct qt_widgets::QGraphicsSceneHoverEvent
The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.
C++ class: QGraphicsSceneHoverEvent
.
The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.
When a QGraphicsView receives a QHoverEvent event, it translates it into QGraphicsSceneHoverEvent. The event is then forwarded to the QGraphicsScene associated with the view.
Methods
impl QGraphicsSceneHoverEvent
[src]
pub unsafe fn last_pos(&self) -> CppBox<QPointF>
[src]
Returns the last recorded mouse cursor position in item coordinates.
Calls C++ function: QPointF QGraphicsSceneHoverEvent::lastPos() const
.
Returns the last recorded mouse cursor position in item coordinates.
This function was introduced in Qt 4.4.
See also lastScenePos(), lastScreenPos(), and pos().
pub unsafe fn last_scene_pos(&self) -> CppBox<QPointF>
[src]
Returns the last recorded, the scene coordinates of the previous mouse or hover event received by the view, that created the event mouse cursor position in scene coordinates.
Calls C++ function: QPointF QGraphicsSceneHoverEvent::lastScenePos() const
.
Returns the last recorded, the scene coordinates of the previous mouse or hover event received by the view, that created the event mouse cursor position in scene coordinates.
This function was introduced in Qt 4.4.
See also lastPos(), lastScreenPos(), and scenePos().
pub unsafe fn last_screen_pos(&self) -> CppBox<QPoint>
[src]
Returns the last recorded mouse cursor position in screen coordinates. The last recorded position is the position of the previous mouse or hover event received by the view that created the event.
Calls C++ function: QPoint QGraphicsSceneHoverEvent::lastScreenPos() const
.
Returns the last recorded mouse cursor position in screen coordinates. The last recorded position is the position of the previous mouse or hover event received by the view that created the event.
This function was introduced in Qt 4.4.
See also lastPos(), lastScenePos(), and screenPos().
pub unsafe fn modifiers(&self) -> QFlags<KeyboardModifier>
[src]
Returns the keyboard modifiers at the moment the hover event was sent.
Calls C++ function: QFlags<Qt::KeyboardModifier> QGraphicsSceneHoverEvent::modifiers() const
.
Returns the keyboard modifiers at the moment the hover event was sent.
This function was introduced in Qt 4.4.
pub unsafe fn new_1a(type_: Type) -> CppBox<QGraphicsSceneHoverEvent>
[src]
Calls C++ function: [constructor] void QGraphicsSceneHoverEvent::QGraphicsSceneHoverEvent(QEvent::Type type = …)
.
pub unsafe fn new_0a() -> CppBox<QGraphicsSceneHoverEvent>
[src]
The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.
Calls C++ function: [constructor] void QGraphicsSceneHoverEvent::QGraphicsSceneHoverEvent()
.
The QGraphicsSceneHoverEvent class provides hover events in the graphics view framework.
When a QGraphicsView receives a QHoverEvent event, it translates it into QGraphicsSceneHoverEvent. The event is then forwarded to the QGraphicsScene associated with the view.
pub unsafe fn pos(&self) -> CppBox<QPointF>
[src]
Returns the position of the mouse cursor in item coordinates at the moment the hover event was sent.
Calls C++ function: QPointF QGraphicsSceneHoverEvent::pos() const
.
pub unsafe fn scene_pos(&self) -> CppBox<QPointF>
[src]
Returns the position of the mouse cursor in scene coordinates at the moment the hover event was sent.
Calls C++ function: QPointF QGraphicsSceneHoverEvent::scenePos() const
.
pub unsafe fn screen_pos(&self) -> CppBox<QPoint>
[src]
Returns the position of the mouse cursor in screen coordinates at the moment the hover event was sent.
Calls C++ function: QPoint QGraphicsSceneHoverEvent::screenPos() const
.
pub unsafe fn set_last_pos(&self, pos: impl CastInto<Ref<QPointF>>)
[src]
Calls C++ function: void QGraphicsSceneHoverEvent::setLastPos(const QPointF& pos)
.
pub unsafe fn set_last_scene_pos(&self, pos: impl CastInto<Ref<QPointF>>)
[src]
Calls C++ function: void QGraphicsSceneHoverEvent::setLastScenePos(const QPointF& pos)
.
pub unsafe fn set_last_screen_pos(&self, pos: impl CastInto<Ref<QPoint>>)
[src]
Calls C++ function: void QGraphicsSceneHoverEvent::setLastScreenPos(const QPoint& pos)
.
pub unsafe fn set_modifiers(&self, modifiers: QFlags<KeyboardModifier>)
[src]
Calls C++ function: void QGraphicsSceneHoverEvent::setModifiers(QFlags<Qt::KeyboardModifier> modifiers)
.
pub unsafe fn set_pos(&self, pos: impl CastInto<Ref<QPointF>>)
[src]
Calls C++ function: void QGraphicsSceneHoverEvent::setPos(const QPointF& pos)
.
pub unsafe fn set_scene_pos(&self, pos: impl CastInto<Ref<QPointF>>)
[src]
Calls C++ function: void QGraphicsSceneHoverEvent::setScenePos(const QPointF& pos)
.
pub unsafe fn set_screen_pos(&self, pos: impl CastInto<Ref<QPoint>>)
[src]
Calls C++ function: void QGraphicsSceneHoverEvent::setScreenPos(const QPoint& pos)
.
Methods from Deref<Target = QGraphicsSceneEvent>
pub unsafe fn set_widget(&self, widget: impl CastInto<Ptr<QWidget>>)
[src]
Calls C++ function: void QGraphicsSceneEvent::setWidget(QWidget* widget)
.
pub unsafe fn widget(&self) -> QPtr<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
.
Returns the widget where the event originated, or 0 if the event originates from another application.
Trait Implementations
impl CppDeletable for QGraphicsSceneHoverEvent
[src]
unsafe fn delete(&self)
[src]
Destroys the event.
Calls C++ function: virtual [destructor] void QGraphicsSceneHoverEvent::~QGraphicsSceneHoverEvent()
.
Destroys the event.
impl Deref for QGraphicsSceneHoverEvent
[src]
type Target = QGraphicsSceneEvent
The resulting type after dereferencing.
fn deref(&self) -> &QGraphicsSceneEvent
[src]
Calls C++ function: QGraphicsSceneEvent* static_cast<QGraphicsSceneEvent*>(QGraphicsSceneHoverEvent* ptr)
.
impl DynamicCast<QGraphicsSceneHoverEvent> for QGraphicsSceneEvent
[src]
unsafe fn dynamic_cast(
ptr: Ptr<QGraphicsSceneEvent>
) -> Ptr<QGraphicsSceneHoverEvent>
[src]
ptr: Ptr<QGraphicsSceneEvent>
) -> Ptr<QGraphicsSceneHoverEvent>
Calls C++ function: QGraphicsSceneHoverEvent* dynamic_cast<QGraphicsSceneHoverEvent*>(QGraphicsSceneEvent* ptr)
.
impl DynamicCast<QGraphicsSceneHoverEvent> for QEvent
[src]
unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QGraphicsSceneHoverEvent>
[src]
Calls C++ function: QGraphicsSceneHoverEvent* dynamic_cast<QGraphicsSceneHoverEvent*>(QEvent* ptr)
.
impl StaticDowncast<QGraphicsSceneHoverEvent> for QGraphicsSceneEvent
[src]
unsafe fn static_downcast(
ptr: Ptr<QGraphicsSceneEvent>
) -> Ptr<QGraphicsSceneHoverEvent>
[src]
ptr: Ptr<QGraphicsSceneEvent>
) -> Ptr<QGraphicsSceneHoverEvent>
Calls C++ function: QGraphicsSceneHoverEvent* static_cast<QGraphicsSceneHoverEvent*>(QGraphicsSceneEvent* ptr)
.
impl StaticDowncast<QGraphicsSceneHoverEvent> for QEvent
[src]
unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QGraphicsSceneHoverEvent>
[src]
Calls C++ function: QGraphicsSceneHoverEvent* static_cast<QGraphicsSceneHoverEvent*>(QEvent* ptr)
.
impl StaticUpcast<QEvent> for QGraphicsSceneHoverEvent
[src]
unsafe fn static_upcast(ptr: Ptr<QGraphicsSceneHoverEvent>) -> Ptr<QEvent>
[src]
Calls C++ function: QEvent* static_cast<QEvent*>(QGraphicsSceneHoverEvent* ptr)
.
impl StaticUpcast<QGraphicsSceneEvent> for QGraphicsSceneHoverEvent
[src]
unsafe fn static_upcast(
ptr: Ptr<QGraphicsSceneHoverEvent>
) -> Ptr<QGraphicsSceneEvent>
[src]
ptr: Ptr<QGraphicsSceneHoverEvent>
) -> Ptr<QGraphicsSceneEvent>
Calls C++ function: QGraphicsSceneEvent* static_cast<QGraphicsSceneEvent*>(QGraphicsSceneHoverEvent* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QGraphicsSceneHoverEvent
impl Send for QGraphicsSceneHoverEvent
impl Sync for QGraphicsSceneHoverEvent
impl Unpin for QGraphicsSceneHoverEvent
impl UnwindSafe for QGraphicsSceneHoverEvent
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>,