summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_rectangle.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina/eina_rectangle.h')
-rw-r--r--src/lib/eina/eina_rectangle.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/eina/eina_rectangle.h b/src/lib/eina/eina_rectangle.h
index ba3e78f..b2792c0 100644
--- a/src/lib/eina/eina_rectangle.h
+++ b/src/lib/eina/eina_rectangle.h
@@ -43,10 +43,13 @@
43#define EINA_RECTANGLE_FORMAT "dx%d - %dx%d" 43#define EINA_RECTANGLE_FORMAT "dx%d - %dx%d"
44#define EINA_RECTANGLE_ARGS(r) (r)->x, (r)->y, (r)->w, (r)->h 44#define EINA_RECTANGLE_ARGS(r) (r)->x, (r)->y, (r)->w, (r)->h
45 45
46#define EINA_RECT(x, y, w, h) ((Eina_Rect) { { x, y, w, h } }) 46#define EINA_RECT(x, y, w, h) ((Eina_Rect) { { (x), (y), (w), (h) } })
47#define EINA_RECT_ZERO() { EINA_RECTANGLE_INIT } 47#define EINA_RECT_ZERO() { EINA_RECTANGLE_INIT }
48#define EINA_RECT_EMPTY() ((Eina_Rect) EINA_RECT_ZERO()) 48#define EINA_RECT_EMPTY() ((Eina_Rect) EINA_RECT_ZERO())
49 49
50#define EINA_POSITION2D(x, y) ((Eina_Position2D) { (x), (y) })
51#define EINA_SIZE2D(x, y) ((Eina_Size2D) { (x), (y) })
52
50/** @brief A 2D position in pixels coordinates */ 53/** @brief A 2D position in pixels coordinates */
51typedef struct _Eina_Position2D 54typedef struct _Eina_Position2D
52{ 55{