Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QGuiApplicationPrivate::QLastCursorPosition Struct Reference

#include <qguiapplication_p.h>

+ Collaboration diagram for QGuiApplicationPrivate::QLastCursorPosition:

Public Member Functions

constexpr QLastCursorPosition () noexcept
 
constexpr Q_IMPLICIT QLastCursorPosition (QPointF p) noexcept
 
constexpr Q_IMPLICIT operator QPointF () const noexcept
 
constexpr qreal x () const noexcept
 
constexpr qreal y () const noexcept
 
Q_GUI_EXPORT QPoint toPoint () const noexcept
 
constexpr void reset () noexcept
 

Friends

constexpr bool operator== (const QLastCursorPosition &p1, const QPointF &p2) noexcept
 
constexpr bool operator!= (const QLastCursorPosition &p1, const QPointF &p2) noexcept
 
constexpr bool operator== (const QPointF &p1, const QLastCursorPosition &p2) noexcept
 
constexpr bool operator!= (const QPointF &p1, const QLastCursorPosition &p2) noexcept
 

Detailed Description

Definition at line 200 of file qguiapplication_p.h.

Constructor & Destructor Documentation

◆ QLastCursorPosition() [1/2]

constexpr QGuiApplicationPrivate::QLastCursorPosition::QLastCursorPosition ( )
inlineconstexprnoexcept

Definition at line 201 of file qguiapplication_p.h.

◆ QLastCursorPosition() [2/2]

constexpr Q_IMPLICIT QGuiApplicationPrivate::QLastCursorPosition::QLastCursorPosition ( QPointF  p)
inlineconstexprnoexcept

Definition at line 202 of file qguiapplication_p.h.

Member Function Documentation

◆ operator QPointF()

constexpr Q_IMPLICIT QGuiApplicationPrivate::QLastCursorPosition::operator QPointF ( ) const
inlineconstexprnoexcept

Definition at line 203 of file qguiapplication_p.h.

◆ reset()

constexpr void QGuiApplicationPrivate::QLastCursorPosition::reset ( )
inlineconstexprnoexcept

Definition at line 208 of file qguiapplication_p.h.

Referenced by QGuiApplication::~QGuiApplication().

+ Here is the caller graph for this function:

◆ toPoint()

QPoint QGuiApplicationPrivate::QLastCursorPosition::toPoint ( ) const
noexcept

Definition at line 4271 of file qguiapplication.cpp.

References Q_UNLIKELY, qIsInf(), QPointF::toPoint(), and QPointF::x().

Referenced by QQuickMouseArea::itemChange(), QPlatformCursor::pos(), QCursor::pos(), and QMenuSloppyState::timeout().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ x()

constexpr qreal QGuiApplicationPrivate::QLastCursorPosition::x ( ) const
inlineconstexprnoexcept

Definition at line 204 of file qguiapplication_p.h.

◆ y()

constexpr qreal QGuiApplicationPrivate::QLastCursorPosition::y ( ) const
inlineconstexprnoexcept

Definition at line 205 of file qguiapplication_p.h.

Friends And Related Symbol Documentation

◆ operator!= [1/2]

constexpr bool operator!= ( const QLastCursorPosition p1,
const QPointF p2 
)
friend

Definition at line 219 of file qguiapplication_p.h.

◆ operator!= [2/2]

constexpr bool operator!= ( const QPointF p1,
const QLastCursorPosition p2 
)
friend

Definition at line 227 of file qguiapplication_p.h.

◆ operator== [1/2]

constexpr bool operator== ( const QLastCursorPosition p1,
const QPointF p2 
)
friend

Definition at line 214 of file qguiapplication_p.h.

◆ operator== [2/2]

constexpr bool operator== ( const QPointF p1,
const QLastCursorPosition p2 
)
friend

Definition at line 223 of file qguiapplication_p.h.


The documentation for this struct was generated from the following files: