The KPoint class defines a point in the plane using integer precision.
More...
#include <kpoint.h>
The KPoint class defines a point in the plane using integer precision.
This class can replace CPoint with the same API, and is compatible with both CPoint and QPoint.
- See also
- https://learn.microsoft.com/en-us/cpp/atl-mfc-shared/reference/cpoint-class
◆ KPoint() [1/5]
◆ KPoint() [2/5]
KPoint::KPoint |
( |
const KSize & | cs | ) |
|
◆ KPoint() [3/5]
KPoint::KPoint |
( |
int | x, |
|
|
int | y ) |
|
explicit |
◆ KPoint() [4/5]
KPoint::KPoint |
( |
const QPoint & | qp | ) |
|
◆ KPoint() [5/5]
KPoint::KPoint |
( |
const CPoint & | cp | ) |
|
|
explicit |
◆ Offset() [1/2]
void KPoint::Offset |
( |
const KPoint & | other | ) |
|
Adds values to the x and y members of the KPoint.
◆ Offset() [2/2]
void KPoint::Offset |
( |
int | xOffset, |
|
|
int | yOffset ) |
Adds values to the x and y members of the KPoint.
◆ operator CPoint()
KPoint::operator CPoint |
( |
| ) |
const |
◆ operator QPoint()
KPoint::operator QPoint |
( |
| ) |
const |
◆ operator+=() [1/2]
void KPoint::operator+= |
( |
const KPoint & | cp | ) |
|
◆ operator+=() [2/2]
void KPoint::operator+= |
( |
const KSize & | cs | ) |
|
◆ operator-=() [1/2]
void KPoint::operator-= |
( |
const KPoint & | cp | ) |
|
◆ operator-=() [2/2]
void KPoint::operator-= |
( |
const KSize & | cs | ) |
|
◆ operator=() [1/2]
KPoint & KPoint::operator= |
( |
const CPoint & | cp | ) |
|
◆ operator=() [2/2]
KPoint & KPoint::operator= |
( |
const QPoint & | point | ) |
|
◆ toCPoint()
CPoint KPoint::toCPoint |
( |
| ) |
const |
◆ toQPoint()
QPoint KPoint::toQPoint |
( |
| ) |
const |
◆ operator!=()
Checks for inequality between two KPoints.
◆ operator+() [1/3]
Returns the sum of 2 KPoints.
◆ operator+() [2/3]
◆ operator+() [3/3]
◆ operator-() [1/4]
Subtracts two points and returns a size.
◆ operator-() [2/4]
Returns a KRect that is offset by the negation of a KPoint.
◆ operator-() [3/4]
◆ operator-() [4/4]
Returns the negation of a KPoint.
◆ operator==()
Checks for equality between two KPoints.
The documentation for this class was generated from the following files: