[−][src]Struct qt_gui::QHelpEvent
The QHelpEvent class provides an event that is used to request helpful information about a particular point in a widget.
C++ class: QHelpEvent
.
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]
&mut self,
other: impl CastInto<Ref<QHelpEvent>>
) -> MutRef<QHelpEvent>
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)
.
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
.
pub unsafe fn global_x(&self) -> c_int
[src]
Calls C++ function: int QHelpEvent::globalX() const
.
pub unsafe fn global_y(&self) -> c_int
[src]
Calls C++ function: int QHelpEvent::globalY() const
.
pub unsafe fn new(
type_: Type,
pos: impl CastInto<Ref<QPoint>>,
global_pos: impl CastInto<Ref<QPoint>>
) -> CppBox<QHelpEvent>
[src]
type_: Type,
pos: impl CastInto<Ref<QPoint>>,
global_pos: impl CastInto<Ref<QPoint>>
) -> CppBox<QHelpEvent>
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)
.
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.
pub unsafe fn new_copy(
other: impl CastInto<Ref<QHelpEvent>>
) -> CppBox<QHelpEvent>
[src]
other: impl CastInto<Ref<QHelpEvent>>
) -> CppBox<QHelpEvent>
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)
.
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
.
pub unsafe fn x(&self) -> c_int
[src]
Same as pos().x().
Calls C++ function: int QHelpEvent::x() const
.
pub unsafe fn y(&self) -> c_int
[src]
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
impl RefUnwindSafe for QHelpEvent
impl Send for QHelpEvent
impl Sync for QHelpEvent
impl Unpin for QHelpEvent
impl UnwindSafe for QHelpEvent
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]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<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>,