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.
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.
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 r using the given src rectangle.
Initializes the given #graphene_rect_t with the given values.
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.Rect.roundExtents 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.
Pointer to the C boxed value
Get the GType of this boxed type.
Boxed GType property.
Convenience method to return this cast to a type. For use in D with statements.
Make a copy of the wrapped C boxed data.
Copy a C boxed value using g_boxed_copy.
Free a C boxed value using g_boxed_free.
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.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.