Platform Package reference: Type XRect

Description of the type definition XRect available in all Platform Packages for C compatible target systems. This type definition is intended to be used when integrating the Embedded Wizard created GUI application with the underlying graphics subsystem, graphics hardware or other external GUI applications coexisting on the same system.

Declaration

typedef struct

{

  XPoint   Point1;

  XPoint   Point2;

} XRect;

Elements

Point1

Specifies the 2D coordinates of the upper-left corner of the rectangle.

Point2

Specifies the 2D coordinates of the bottom-right corner of the rectangle.

Discussion

The structure XRect covers the Chora instant datatype rect. XRect can store the position and the expansion of an rectangle in a 2D coordinate system.