Rect


Object Hierarchy:

Object hierarchy for Rect

Description:

[ CCode ( cname = "graphene_rect_t" , copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "graphene_rect_get_type ()" ) ]
[ Version ( since = "1.0" ) ]
public struct Rect

The location and size of a rectangle region.

The width and height of a Rect can be negative; for instance, a Rect with an origin of [ 0, 0 ] and a size of [ 10, 10 ] is equivalent to a Rect with an origin of [ 10, 10 ] and a size of [ -10, -10 ].

Application code can normalize rectangles using normalize; this function will ensure that the width and height of a rectangle are positive values. All functions taking a Rect as an argument will internally operate on a normalized copy; all functions returning a Rect will always return a normalized rectangle.


Namespace: Graphene

Content:

Static methods:

Methods:

Fields: