Rectangle
[Tools]
Data Structures | |
struct | _Eina_Rectangle |
To be documented FIXME: To be fixed. More... | |
Defines | |
#define | EINA_RECTANGLE_SET(Rectangle, X, Y, W, H) |
Macro to set the values of a Eina_Rectangle. | |
Typedefs | |
typedef struct _Eina_Rectangle | Eina_Rectangle |
To be documented FIXME: To be fixed. | |
typedef struct _Eina_Rectangle_Pool | Eina_Rectangle_Pool |
Functions | |
static int | eina_spans_intersect (int c1, int l1, int c2, int l2) EINA_CONST EINA_WARN_UNUSED_RESULT |
static Eina_Bool | eina_rectangle_is_empty (const Eina_Rectangle *r) EINA_PURE EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
static void | eina_rectangle_coords_from (Eina_Rectangle *r, int x, int y, int w, int h) EINA_ARG_NONNULL(1) |
static Eina_Bool | eina_rectangles_intersect (const Eina_Rectangle *r1, const Eina_Rectangle *r2) EINA_PURE EINA_ARG_NONNULL(1 |
static Eina_Bool | eina_rectangle_xcoord_inside (const Eina_Rectangle *r, int x) EINA_PURE EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
static Eina_Bool | eina_rectangle_ycoord_inside (const Eina_Rectangle *r, int y) EINA_PURE EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
static Eina_Bool | eina_rectangle_coords_inside (const Eina_Rectangle *r, int x, int y) EINA_PURE EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
static void | eina_rectangle_union (Eina_Rectangle *dst, const Eina_Rectangle *src) EINA_ARG_NONNULL(1 |
static void static Eina_Bool | eina_rectangle_intersection (Eina_Rectangle *dst, const Eina_Rectangle *src) EINA_ARG_NONNULL(1 |
static void | eina_rectangle_rescale_in (const Eina_Rectangle *out, const Eina_Rectangle *in, Eina_Rectangle *res) EINA_ARG_NONNULL(1 |
static void static void | eina_rectangle_rescale_out (const Eina_Rectangle *out, const Eina_Rectangle *in, Eina_Rectangle *res) EINA_ARG_NONNULL(1 |
static void static void EAPI Eina_Rectangle_Pool * | eina_rectangle_pool_new (int w, int h) EINA_MALLOC EINA_WARN_UNUSED_RESULT |
EAPI Eina_Rectangle_Pool * | eina_rectangle_pool_get (Eina_Rectangle *rect) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) |
EAPI Eina_Bool | eina_rectangle_pool_geometry_get (Eina_Rectangle_Pool *pool, int *w, int *h) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
EAPI void * | eina_rectangle_pool_data_get (Eina_Rectangle_Pool *pool) EINA_PURE EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) |
EAPI void | eina_rectangle_pool_data_set (Eina_Rectangle_Pool *pool, const void *data) EINA_ARG_NONNULL(1) |
EAPI void | eina_rectangle_pool_free (Eina_Rectangle_Pool *pool) EINA_ARG_NONNULL(1) |
EAPI int | eina_rectangle_pool_count (Eina_Rectangle_Pool *pool) EINA_PURE EINA_ARG_NONNULL(1) EINA_WARN_UNUSED_RESULT |
EAPI Eina_Rectangle * | eina_rectangle_pool_request (Eina_Rectangle_Pool *pool, int w, int h) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) |
EAPI void | eina_rectangle_pool_release (Eina_Rectangle *rect) EINA_ARG_NONNULL(1) |
EAPI Eina_Rectangle * | eina_rectangle_new (int x, int y, int w, int h) EINA_MALLOC EINA_WARN_UNUSED_RESULT |
EAPI void | eina_rectangle_free (Eina_Rectangle *rect) EINA_ARG_NONNULL(1) |
Variables | |
static Eina_Bool | EINA_WARN_UNUSED_RESULT |
Define Documentation
#define EINA_RECTANGLE_SET | ( | Rectangle, | |||
X, | |||||
Y, | |||||
W, | |||||
H | ) |
Value:
(Rectangle)->x = X; \ (Rectangle)->y = Y; \ (Rectangle)->w = W; \ (Rectangle)->h = H;
Macro to set the values of a Eina_Rectangle.
- Parameters:
-
Rectangle The rectangle to set the values. X The X coordinate of the top left corner of the rectangle. Y The Y coordinate of the top left corner of the rectangle. W The width of the rectangle. H The height of the rectangle.
This macro set the values of Rectangle
. (X
, Y
) is the coordinates of the top left corner of Rectangle
, W
is its width and H
is its height.