GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
/****************************************************************************1**2*W gapgraph.h XGAP source Frank Celler3**4**5*Y Copyright 1995-1997, Lehrstuhl D fuer Mathematik, RWTH Aachen, Germany6*Y Copyright 1997, Frank Celler, Huerth, Germany7*/8#ifndef _gapgraph_h9#define _gapgraph_h101112/****************************************************************************13**1415*D T_XXX . . . . . . . . . . . . . . . . . . . . . . . . the graphic object16*/17#define T_LINE 118#define T_CIRCLE 219#define T_DISC 320#define T_TEXT 421#define T_RECT 522#define T_BOX 6232425/****************************************************************************26**27*D C_XXX . . . . . . . . . . . . . . . . . . . . . . . . . . the color XXXX28*/29#define C_BLACK 030#define C_WHITE 131#define C_LIGHT_GRAY 232#define C_DARK_GRAY 333#define C_LAST_GRAY 334#define C_RED 435#define C_BLUE 536#define C_GREEN 637#define C_LAST 6383940/****************************************************************************41**42*D CM_BW . . . . . . . . . . . . . . . . . . . . . color model: black/white43*D CM_GRAY . . . . . . . . . . . . . . . . . . . . . . color model: 2 grays44*D CM_COLOR3 . . . . . . . . . . . . . . . . . . . . . color model: 3 colors45*D CM_COLOR5 . . . . . . . . . . . . . . . . color model: 3 colors, 2 grays46*/47#define CM_BW 148#define CM_GRAY 249#define CM_COLOR3 350#define CM_COLOR5 4515253/****************************************************************************54**5556*T TypeGapGraphicObject . . . . . . . . . . . . . graphic object of widget57*/58typedef struct _gap_graphic_obj59{60Short type;61Short color;62Int x, y, w, h;63union64{65struct { Int x1, x2, y1, y2, w; } line;66struct { Int x, y, r, w; } circle;67struct { Int x, y, r; } disc;68struct { Int x, y, len; String str; Font font; } text;69struct { Int x1, x2, y1, y2, w; } rect;70struct { Int x1, x2, y1, y2; } box;71} desc;72}73TypeGapGraphicObject;747576/****************************************************************************77**78*T GapGrahpicClassRec . . . . . . . . . . . . . . gap graphic class record79*/80typedef struct {81int empty;82}83GapGraphicClassPart;8485typedef struct _GapGraphicClassRec86{87CoreClassPart core_class;88GapGraphicClassPart gap_graphic_class;89}90GapGraphicClassRec;9192extern GapGraphicClassRec gapGraphicClassRec;939495/****************************************************************************96**97*T GapGarphicRec . . . . . . . . . . . . . . . . . gap graphic widget record98*/99typedef struct {100101/* dimension of window */102UInt width;103UInt height;104105/* reference number */106Int number;107108/* list of graphic objects */109TypeList objs;110111/* display information */112Display * display;113Pixel black;114Pixel white;115GC gc;116117/* bounding box to update */118Boolean update;119Boolean fast_update;120Int lx, hx;121Int ly, hy;122}123GapGraphicPart;124125typedef struct _GapGraphicRec126{127CorePart core;128GapGraphicPart gap_graphic;129}130GapGraphicRec;131132133/****************************************************************************134**135*T GapGraphicWidgetClass . . . . . . . . . . . . . . . . . . class datatype136*/137typedef struct _GapGraphicClassRec * GapGraphicWidgetClass;138139140/****************************************************************************141**142*T GapGraphicWidget . . . . . . . . . . . . . . . . . . . instance datatype143*/144typedef struct _GapGraphicRec * GapGraphicWidget;145146147/****************************************************************************148**149*V gapGraphicWidgetClass . . . . . . . . . . . . . . . . . class definition150*/151extern WidgetClass gapGraphicWidgetClass;152153154/****************************************************************************155**156157*P Prototypes . . . . . . . . . . . prototypes of public gap text functions158*/159extern Int GCColorModel( Display* );160extern void GCSetColorModel( Display*, Int, String );161extern Int GGAddObject( Widget, TypeGapGraphicObject* );162extern void GGFreeAllObjects( Widget );163extern void GGFreeGapGraphicObjects( Widget );164extern void GGFreeObject( TypeGapGraphicObject* );165extern Boolean GGRemoveObject( Widget, Int );166extern void GGResize( Widget, Int, Int );167extern void GGStartRemove( Widget );168extern void GGStopRemove( Widget );169extern void GGDrawObject( Widget, TypeGapGraphicObject*, Boolean );170extern void GGFastUpdate( Widget, Boolean );171172#endif173174175/****************************************************************************176**177178*E gapgraph.h . . . . . . . . . . . . . . . . . . . . . . . . . . ends here179*/180181182