![]() |
Clapkit
|
Defines a rectangular area. More...
#include <ckTypes.h>
Public Member Functions | |
CKSize (int w, int h) | |
CKSize () | |
Point | ToOS () const |
bool | operator== (const CKSize &other) const |
bool | operator!= (const CKSize &other) const |
void | Subscribe (std::function< void()> cb) |
Static Public Member Functions | |
static CKSize | FromOS (Point p) |
Public Attributes | |
CKProperty< int > | width = 0 |
CKProperty< int > | height = 0 |
Defines a rectangular area.
|
inline |
|
inline |
|
inlinestatic |
Convert OS-rect to what we use.
|
inline |
|
inline |
|
inline |
For change tracking
|
inline |
CKProperty<int> CKSize::height = 0 |
CKProperty<int> CKSize::width = 0 |