Top |
graphene_quad_t * | graphene_quad_alloc () |
void | graphene_quad_free () |
graphene_quad_t * | graphene_quad_init () |
graphene_quad_t * | graphene_quad_init_from_rect () |
graphene_quad_t * | graphene_quad_init_from_points () |
bool | graphene_quad_contains () |
void | graphene_quad_bounds () |
const graphene_point_t * | graphene_quad_get_point () |
graphene_quad_t *
graphene_quad_alloc (void
);
Allocates a new graphene_quad_t instance.
The contents of the returned instance are undefined.
[constructor]
Since: 1.0
void
graphene_quad_free (graphene_quad_t *q
);
Frees the resources allocated by graphene_quad_alloc()
Since: 1.0
graphene_quad_t * graphene_quad_init (graphene_quad_t *q
,const graphene_point_t *p1
,const graphene_point_t *p2
,const graphene_point_t *p3
,const graphene_point_t *p4
);
Initializes a graphene_quad_t with the given points.
q |
the graphene_quad_t to initialize |
|
p1 |
the first point of the quadrilateral |
|
p2 |
the second point of the quadrilateral |
|
p3 |
the third point of the quadrilateral |
|
p4 |
the fourth point of the quadrilateral |
Since: 1.0
graphene_quad_t * graphene_quad_init_from_rect (graphene_quad_t *q
,const graphene_rect_t *r
);
Initializes a graphene_quad_t using the four corners of the given graphene_rect_t.
Since: 1.0
graphene_quad_t * graphene_quad_init_from_points (graphene_quad_t *q
,const graphene_point_t points[]
);
Initializes a graphene_quad_t using an array of points.
q |
the graphene_quad_t to initialize |
|
points |
an array of 4 graphene_point_t. |
[array fixed-size=4] |
Since: 1.2
bool graphene_quad_contains (const graphene_quad_t *q
,const graphene_point_t *p
);
Checks if the given graphene_quad_t contains the given graphene_point_t.
Since: 1.0
void graphene_quad_bounds (const graphene_quad_t *q
,graphene_rect_t *r
);
Computes the bounding rectangle of q
and places it into r
.
Since: 1.0
const graphene_point_t * graphene_quad_get_point (const graphene_quad_t *q
,unsigned int index_
);
Retrieves the point of a graphene_quad_t at the given index.
Since: 1.0
typedef struct { } graphene_quad_t;
A 4 vertex quadrilateral, as represented by four graphene_point_t.
The contents of a graphene_quad_t are private and should never be accessed directly.
Since: 1.0