| SCR_RECT | Type (Structure)

dialogs.h, estack.h, events.h, graph.h, kbd.h, statline.h, textedit.h, wingraph.h, unknown.h

typedef union {
| struct {
| unsigned char x0, y0, x1, y1;
| } xy;
| unsigned long l;
} SCR_RECT;

A scructure for defining a rectangular area.

SCR_RECT is a structure (more precisely, an union) for defining a rectangular area using physical screen coordinates.
Instead of giving four coordinates x0, y0, x1 and y1, it is possible to give all together using a field l which is a packed long number.
Note: TIGCC is derived from GNU C, so it allows cast constructors. That's why, constructions like

    DrawClipEllipse (50, 50, 30, 20, &(SCR_RECT){{0, 0, 159, 99}}, A_NORMAL);

are legal. See DrawClipEllipse for info about this command.

See also: ScrRect