libguac 1.6.0
 
Loading...
Searching...
No Matches
guac_rect Struct Reference

A rectangle defined by its upper-left and lower-right corners. More...

Data Fields

int left
 The X coordinate of the upper-left corner of this rectangle (inclusive).
 
int top
 The Y coordinate of the upper-left corner of this rectangle (inclusive).
 
int right
 The X coordinate of the lower-right corner of this rectangle (exclusive).
 
int bottom
 The Y coordinate of the lower-right corner of this rectangle (exclusive).
 

Detailed Description

A rectangle defined by its upper-left and lower-right corners.

The upper-left corner is inclusive (represents the start of the area contained by the guac_rect), while the lower-right corner is exclusive (represents the start of the area NOT contained by the guac_rect). All coordinates may be negative.

Field Documentation

◆ bottom

int guac_rect::bottom

The Y coordinate of the lower-right corner of this rectangle (exclusive).

This value represents the least integer Y coordinate that is NOT part of this rectangle, with lesser integer Y coordinates being part of this rectangle up to and including the top boundary.

This value MUST be greater than or equal to the top boundary. If this value is equal to the top boundary, the rectangle is empty (has no height).

◆ left

int guac_rect::left

The X coordinate of the upper-left corner of this rectangle (inclusive).

This value represents the least integer X coordinate that is part of this rectangle, with greater integer X coordinates being part of this rectangle up to but excluding the right boundary.

This value MUST be less than or equal to the right boundary. If this value is equal to the right boundary, the rectangle is empty (has no width).

◆ right

int guac_rect::right

The X coordinate of the lower-right corner of this rectangle (exclusive).

This value represents the least integer X coordinate that is NOT part of this rectangle, with lesser integer X coordinates being part of this rectangle up to and including the left boundary.

This value MUST be greater than or equal to the left boundary. If this value is equal to the left boundary, the rectangle is empty (has no width).

◆ top

int guac_rect::top

The Y coordinate of the upper-left corner of this rectangle (inclusive).

This value represents the least integer Y coordinate that is part of this rectangle, with greater integer Y coordinates being part of this rectangle up to but excluding the bottom boundary.

This value MUST be less than or equal to the bottom boundary. If this value is equal to the bottom boundary, the rectangle is empty (has no height).


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