Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include <graphene-rect.h>
Data Fields | |
graphene_point_t | origin |
graphene_size_t | size |
graphene_rect_t: @origin: the coordinates of the origin of the rectangle @size: the size of the rectangle
The location and size of a rectangle region.
The width and height of a graphene_rect_t can be negative; for instance, a graphene_rect_t with an origin of [ 0, 0 ] and a size of [ 10, 10 ] is equivalent to a graphene_rect_t with an origin of [ 10, 10 ] and a size of [ -10, -10 ].
Application code can normalize rectangles using graphene_rect_normalize(); this function will ensure that the width and height of a rectangle are positive values. All functions taking a graphene_rect_t as an argument will internally operate on a normalized copy; all functions returning a graphene_rect_t will always return a normalized rectangle.
Since: 1.0
Definition at line 83 of file graphene-rect.h.
graphene_point_t _graphene_rect_t::origin |
Definition at line 85 of file graphene-rect.h.
graphene_size_t _graphene_rect_t::size |
Definition at line 86 of file graphene-rect.h.