Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
_graphene_rect_t Struct Reference

#include <graphene-rect.h>

Data Fields

graphene_point_t origin
 
graphene_size_t size
 

Detailed Description

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.

Field Documentation

◆ origin

graphene_point_t _graphene_rect_t::origin

Definition at line 85 of file graphene-rect.h.

◆ size

graphene_size_t _graphene_rect_t::size

Definition at line 86 of file graphene-rect.h.


The documentation for this struct was generated from the following file: