![]() |
Clapkit
|
Defines a rectangular area at a specific location. More...
#include <ckTypes.h>
Public Member Functions | |
CKRect (const CKRect &f) | |
CKRect (CKPoint o, CKSize s) | |
CKRect (int x, int y, int w, int h) | |
CKRect (int w, int h) | |
CKRect () | |
Rect | ToOS () const |
Rect * | ToOSCopy () |
bool | IntersectsPoint (CKPoint p) |
bool | IntersectsRect (CKRect r) |
bool | operator== (const CKRect &other) const |
bool | operator!= (const CKRect &other) const |
void | Subscribe (std::function< void()> cb) |
Static Public Member Functions | |
static CKRect | FromOS (Rect r) |
Public Attributes | |
CKProperty< CKPoint > | origin |
CKProperty< CKSize > | size |
Defines a rectangular area at a specific location.
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Convert OS-rect to what we use.
|
inline |
|
inline |
|
inline |
|
inline |
For change tracking
|
inline |
Convert our Rect to what the OS expects.
|
inline |
Same as ToOS but returns a Ptr.
CKProperty<CKPoint> CKRect::origin |
CKProperty<CKSize> CKRect::size |