Rect Struct Reference

Structure defining a 2D rectangle with top-left corner coordinates and width/height in pixels. More...

Attributes

int x
 x coordinates of top-left corner. More...
 
int y
 y coordinates of top-left corner. More...
 
int width
 Width of the rectangle in pixels. More...
 
int height
 Height of the rectangle in pixels. More...
 

Detailed Description

Structure defining a 2D rectangle with top-left corner coordinates and width/height in pixels.

Variables

◆ x

int x

x coordinates of top-left corner.

◆ y

int y

y coordinates of top-left corner.

◆ width

int width

Width of the rectangle in pixels.

◆ height

int height

Height of the rectangle in pixels.