Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 203 of file qguiapplication_p.h.

Constructor & Destructor Documentation

◆ QLastCursorPosition() [1/2]

constexpr QGuiApplicationPrivate::QLastCursorPosition::QLastCursorPosition ( )
inlineconstexprnoexcept

Definition at line 204 of file qguiapplication_p.h.

◆ QLastCursorPosition() [2/2]

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

Definition at line 205 of file qguiapplication_p.h.

Member Function Documentation

◆ operator QPointF()

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

Definition at line 206 of file qguiapplication_p.h.

◆ reset()

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

Definition at line 211 of file qguiapplication_p.h.

◆ toPoint()

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

Definition at line 4299 of file qguiapplication.cpp.

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

+ Here is the call graph for this function:

◆ x()

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

Definition at line 207 of file qguiapplication_p.h.

◆ y()

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

Definition at line 208 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 222 of file qguiapplication_p.h.

◆ operator!= [2/2]

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

Definition at line 230 of file qguiapplication_p.h.

◆ operator== [1/2]

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

Definition at line 217 of file qguiapplication_p.h.

◆ operator== [2/2]

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

Definition at line 226 of file qguiapplication_p.h.


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