Platform Package reference: Function EwNewRect()

Description of the function EwNewRect() available in all Platform Packages for C compatible target systems. This function 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

XRect EwNewRect( XInt32 aX1, XInt32 aY1, XInt32 aX2, XInt32 aY2 )

Parameters

aX1

The X-coordinate of the first (top-left) point of the rectangle.

aY1

The Y-coordinate of the first (top-left) point of the rectangle.

aX2

The X-coordinate of the second (bottom-right) point of the rectangle.

aY2

The Y-coordinate of the second (bottom-right) point of the rectangle.

Discussion

The function EwNewRect() initializes a new XRect structure with the given aX1, aY1, aX2, aY2 values and returns the initialized structure.