28#if !defined(GRAPHENE_H_INSIDE) && !defined(GRAPHENE_COMPILATION)
29#error "Only graphene.h can be included directly."
50#define GRAPHENE_RECT_INIT(_x,_y,_w,_h) \
51 (graphene_rect_t) { .origin = { .x = (_x), .y = (_y) }, .size = { .width = (_w), .height = (_h) } }
61#define GRAPHENE_RECT_INIT_ZERO GRAPHENE_RECT_INIT (0.f, 0.f, 0.f, 0.f)
#define GRAPHENE_END_DECLS
#define GRAPHENE_BEGIN_DECLS
GRAPHENE_AVAILABLE_IN_1_0 float graphene_rect_get_height(const graphene_rect_t *r)
GRAPHENE_AVAILABLE_IN_1_0 void graphene_rect_free(graphene_rect_t *r)
GRAPHENE_AVAILABLE_IN_1_0 void graphene_rect_get_top_right(const graphene_rect_t *r, graphene_point_t *p)
GRAPHENE_AVAILABLE_IN_1_0 graphene_rect_t * graphene_rect_normalize(graphene_rect_t *r)
GRAPHENE_AVAILABLE_IN_1_0 float graphene_rect_get_x(const graphene_rect_t *r)
GRAPHENE_AVAILABLE_IN_1_0 void graphene_rect_get_center(const graphene_rect_t *r, graphene_point_t *p)
GRAPHENE_AVAILABLE_IN_1_4 const graphene_rect_t * graphene_rect_zero(void)
GRAPHENE_AVAILABLE_IN_1_0 graphene_rect_t * graphene_rect_alloc(void)
GRAPHENE_AVAILABLE_IN_1_10 float graphene_rect_get_area(const graphene_rect_t *r)
GRAPHENE_AVAILABLE_IN_1_0 float graphene_rect_get_width(const graphene_rect_t *r)
graphene_rect_t * graphene_rect_round_to_pixel(graphene_rect_t *r)
GRAPHENE_AVAILABLE_IN_1_4 void graphene_rect_get_vertices(const graphene_rect_t *r, graphene_vec2_t vertices[])
GRAPHENE_AVAILABLE_IN_1_0 bool graphene_rect_contains_point(const graphene_rect_t *r, const graphene_point_t *p)
GRAPHENE_AVAILABLE_IN_1_0 void graphene_rect_get_bottom_left(const graphene_rect_t *r, graphene_point_t *p)
GRAPHENE_AVAILABLE_IN_1_4 void graphene_rect_offset_r(const graphene_rect_t *r, float d_x, float d_y, graphene_rect_t *res)
GRAPHENE_AVAILABLE_IN_1_0 graphene_rect_t * graphene_rect_inset(graphene_rect_t *r, float d_x, float d_y)
GRAPHENE_AVAILABLE_IN_1_10 void graphene_rect_round_extents(const graphene_rect_t *r, graphene_rect_t *res)
GRAPHENE_AVAILABLE_IN_1_0 bool graphene_rect_intersection(const graphene_rect_t *a, const graphene_rect_t *b, graphene_rect_t *res)
GRAPHENE_AVAILABLE_IN_1_4 void graphene_rect_inset_r(const graphene_rect_t *r, float d_x, float d_y, graphene_rect_t *res)
GRAPHENE_AVAILABLE_IN_1_0 void graphene_rect_union(const graphene_rect_t *a, const graphene_rect_t *b, graphene_rect_t *res)
GRAPHENE_AVAILABLE_IN_1_0 bool graphene_rect_equal(const graphene_rect_t *a, const graphene_rect_t *b)
GRAPHENE_AVAILABLE_IN_1_4 void graphene_rect_expand(const graphene_rect_t *r, const graphene_point_t *p, graphene_rect_t *res)
GRAPHENE_AVAILABLE_IN_1_0 void graphene_rect_get_top_left(const graphene_rect_t *r, graphene_point_t *p)
GRAPHENE_AVAILABLE_IN_1_0 bool graphene_rect_contains_rect(const graphene_rect_t *a, const graphene_rect_t *b)
GRAPHENE_AVAILABLE_IN_1_0 void graphene_rect_get_bottom_right(const graphene_rect_t *r, graphene_point_t *p)
GRAPHENE_AVAILABLE_IN_1_0 graphene_rect_t * graphene_rect_offset(graphene_rect_t *r, float d_x, float d_y)
GRAPHENE_AVAILABLE_IN_1_0 float graphene_rect_get_y(const graphene_rect_t *r)
void graphene_rect_round(const graphene_rect_t *r, graphene_rect_t *res)
GRAPHENE_AVAILABLE_IN_1_4 void graphene_rect_normalize_r(const graphene_rect_t *r, graphene_rect_t *res)
GRAPHENE_AVAILABLE_IN_1_0 void graphene_rect_interpolate(const graphene_rect_t *a, const graphene_rect_t *b, double factor, graphene_rect_t *res)
GRAPHENE_AVAILABLE_IN_1_0 graphene_rect_t * graphene_rect_init_from_rect(graphene_rect_t *r, const graphene_rect_t *src)
GRAPHENE_AVAILABLE_IN_1_0 graphene_rect_t * graphene_rect_init(graphene_rect_t *r, float x, float y, float width, float height)
GRAPHENE_AVAILABLE_IN_1_10 void graphene_rect_scale(const graphene_rect_t *r, float s_h, float s_v, graphene_rect_t *res)
#define GRAPHENE_DEPRECATED_IN_1_4_FOR(f)
#define GRAPHENE_AVAILABLE_IN_1_4
#define GRAPHENE_AVAILABLE_IN_1_10
#define GRAPHENE_DEPRECATED_IN_1_10_FOR(f)
#define GRAPHENE_AVAILABLE_IN_1_0