The KSize class defines the size of a two-dimensional object using integer point precision.
More...
#include <ksize.h>
The KSize class defines the size of a two-dimensional object using integer point precision.
This class can replace CSize with the same API, and is compatible with both CSize and QSize.
- See also
- https://learn.microsoft.com/en-us/cpp/atl-mfc-shared/reference/csize-class
◆ KSize() [1/5]
◆ KSize() [2/5]
KSize::KSize |
( |
int | cx, |
|
|
int | cy ) |
|
explicit |
◆ KSize() [3/5]
KSize::KSize |
( |
const KPoint & | cp | ) |
|
◆ KSize() [4/5]
KSize::KSize |
( |
const QSize & | qs | ) |
|
◆ KSize() [5/5]
KSize::KSize |
( |
const CSize & | cs | ) |
|
|
explicit |
◆ operator CSize()
KSize::operator CSize |
( |
| ) |
const |
◆ operator QSize()
KSize::operator QSize |
( |
| ) |
const |
◆ operator+=()
void KSize::operator+= |
( |
const KSize & | other | ) |
|
◆ operator-=()
void KSize::operator-= |
( |
const KSize & | other | ) |
|
◆ operator=() [1/2]
KSize & KSize::operator= |
( |
const CSize & | cs | ) |
|
◆ operator=() [2/2]
KSize & KSize::operator= |
( |
const QSize & | size | ) |
|
◆ toCSize()
CSize KSize::toCSize |
( |
| ) |
const |
◆ toQSize()
QSize KSize::toQSize |
( |
| ) |
const |
◆ operator!=()
bool operator!= |
( |
const KSize & | lhs, |
|
|
const KSize & | rhs ) |
|
related |
Checks for inequality between 2 sizes.
◆ operator+() [1/3]
◆ operator+() [2/3]
◆ operator+() [3/3]
◆ operator-() [1/3]
Returns a KRect that is offset by the negation of a KSize.
◆ operator-() [2/3]
◆ operator-() [3/3]
Returns the negation of a KSize.
◆ operator==()
bool operator== |
( |
const KSize & | lhs, |
|
|
const KSize & | rhs ) |
|
related |
Checks for equality between 2 sizes.
◆ cx
◆ cy
The documentation for this class was generated from the following files: