Go to the source code of this file.
Data Structures | |
struct | HitRect |
Macros | |
#define | HITRECT(x0, y0, width, height, callback) {(x0), (y0), (x0) + (width) - 1, (y0) + (height) - 1, (callback)} |
#define | HITEND { 0xFFFFFFFFul, 0, 0xFFFFFFFFul, 0, 0 } |
Functions | |
int | HitTest (const struct HitRect *r, uint32_t x, uint32_t y) |
void | ShowHitRect (const struct HitRect *hitArr) |
#define HITEND { 0xFFFFFFFFul, 0, 0xFFFFFFFFul, 0, 0 } |
#define HITRECT | ( | x0, | |
y0, | |||
width, | |||
height, | |||
callback | |||
) | {(x0), (y0), (x0) + (width) - 1, (y0) + (height) - 1, (callback)} |
int HitTest | ( | const struct HitRect * | r, |
uint32_t | x, | ||
uint32_t | y | ||
) |