GR_RECT

Name

GR_RECT -- Rectangle structure

Synopsis

typedef struct 
{
    GR_COORD     x;
    GR_COORD     y;
    GR_SIZE      width;
    GR_SIZE      height;
} GR_RECT;
  

Description

A GR_RECT structure defines the size and position of a rectangle.

Fields

TypeNameDescription
GR_COORDxThe X coordinate of the upper left corner of the rectangle.
GR_COORDyThe Y coordinate of the upper left corner of the rectangle.
GR_SIZEwidthThe width, in pixels, of the rectangle.
GR_SIZEheightThe height, in pixels, of the rectangle.