diff options
Diffstat (limited to 'src/lib/eina/eina_rectangle.h')
-rw-r--r-- | src/lib/eina/eina_rectangle.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/eina/eina_rectangle.h b/src/lib/eina/eina_rectangle.h index 8045bf7..54cf1cc 100644 --- a/src/lib/eina/eina_rectangle.h +++ b/src/lib/eina/eina_rectangle.h | |||
@@ -62,6 +62,27 @@ typedef struct _Eina_Size2D | |||
62 | int w, h; | 62 | int w, h; |
63 | } Eina_Size2D; | 63 | } Eina_Size2D; |
64 | 64 | ||
65 | |||
66 | /** | ||
67 | * @brief convenience macro for comparing two Eina_Size2D structs | ||
68 | * @param[in] a An Eina_Size2D | ||
69 | * @param[in] b An Eina_Size2D | ||
70 | * @return 1 if the structs are equal, 0 if they are not | ||
71 | * @since 1.24 | ||
72 | */ | ||
73 | #define EINA_SIZE2D_EQ(a, b) \ | ||
74 | (((a).w == (b).w) && ((a).h == (b).h)) | ||
75 | |||
76 | /** | ||
77 | * @brief convenience macro for comparing two Eina_Position2D structs | ||
78 | * @param[in] a An Eina_Position2D | ||
79 | * @param[in] b An Eina_Position2D | ||
80 | * @return 1 if the structs are equal, 0 if they are not | ||
81 | * @since 1.24 | ||
82 | */ | ||
83 | #define EINA_POSITION2D_EQ(a, b) \ | ||
84 | (((a).x == (b).x) && ((a).y == (b).y)) | ||
85 | |||
65 | /** | 86 | /** |
66 | * @typedef Eina_Rectangle | 87 | * @typedef Eina_Rectangle |
67 | * Simple rectangle structure. | 88 | * Simple rectangle structure. |