Primary Data Structures


The following data structures are used when programming bitmaps, screens, frames, and the display generator.

The Graphics Context (GrafCon) Data Structure

/* Graphics Context structure */
typedef struct GrafCon
    {
    Node  gc;
    Color gc_FGPen;
    Color gc_BGPen;
    Coord gc_PenX;
    Coord gc_PenY;
    ulong gc_Flags;
    } GrafCon;

The Rect Data Structure

typedef struct Rect
       {
       Coord rect_XLeft;
       Coord rect_YTop;
       Coord rect_XRight;
       Coord rect_YBottom;
       } Rect;