diff options
Diffstat (limited to 'libraries/elementary/src/lib/elm_macros.h')
-rw-r--r-- | libraries/elementary/src/lib/elm_macros.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libraries/elementary/src/lib/elm_macros.h b/libraries/elementary/src/lib/elm_macros.h new file mode 100644 index 0000000..906b883 --- /dev/null +++ b/libraries/elementary/src/lib/elm_macros.h | |||
@@ -0,0 +1,3 @@ | |||
1 | /* handy macros */ | ||
2 | #define ELM_RECTS_INTERSECT(x, y, w, h, xx, yy, ww, hh) (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && (((x) + (w)) > (xx)) && (((y) + (h)) > (yy))) | ||
3 | #define ELM_PI 3.14159265358979323846 | ||