Sets our main struct and passes it to the parent class.
Checks whether a #graphene_rect_t contains the given coordinates.
Checks whether a #graphene_rect_t fully contains the given rectangle.
Checks whether the two given rectangle are equal.
Expands a #graphene_rect_t to contain the given #graphene_point_t.
Frees the resources allocated by graphene_rect_alloc().
Compute the area of given normalized rectangle.
Retrieves the coordinates of the bottom-left corner of the given rectangle.
Retrieves the coordinates of the bottom-right corner of the given rectangle.
Retrieves the coordinates of the center of the given rectangle.
Retrieves the normalized height of the given rectangle.
Get the main Gtk struct
the main Gtk struct as a void*
Retrieves the coordinates of the top-left corner of the given rectangle.
Retrieves the coordinates of the top-right corner of the given rectangle.
Computes the four vertices of a #graphene_rect_t.
Retrieves the normalized width of the given rectangle.
Retrieves the normalized X coordinate of the origin of the given rectangle.
Retrieves the normalized Y coordinate of the origin of the given rectangle.
Initializes the given #graphene_rect_t with the given values.
Initializes @r using the given @src rectangle.
Changes the given rectangle to be smaller, or larger depending on the given inset parameters.
Changes the given rectangle to be smaller, or larger depending on the given inset parameters.
Linearly interpolates the origin and size of the two given rectangles.
Computes the intersection of the two given rectangles.
Normalizes the passed rectangle.
Normalizes the passed rectangle.
Offsets the origin by @d_x and @d_y.
Offsets the origin of the given rectangle by @d_x and @d_y.
Rounds the origin and size of the given rectangle to their nearest integer values; the rounding is guaranteed to be large enough to have an area bigger or equal to the original rectangle, but might not fully contain its extents. Use graphene_rect_round_extents() in case you need to round to a rectangle that covers fully the original one.
Rounds the origin of the given rectangle to its nearest integer value and and recompute the size so that the rectangle is large enough to contain all the conrners of the original rectangle.
Rounds the origin and the size of the given rectangle to their nearest integer values; the rounding is guaranteed to be large enough to contain the original rectangle.
Scales the size and origin of a rectangle horizontaly by @s_h, and vertically by @s_v. The result @res is normalized.
Computes the union of the two given rectangles.
Allocates a new #graphene_rect_t.
Returns a degenerate rectangle with origin fixed at (0, 0) and a size of 0, 0.
the main Gtk struct
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.