33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
|
|
/*************
|
||
|
|
* Header file for x11.c
|
||
|
|
* 1999 E. Rouat
|
||
|
|
************/
|
||
|
|
|
||
|
|
#ifndef X11_H_INCLUDED
|
||
|
|
#define X11_H_INCLUDED
|
||
|
|
|
||
|
|
int X11_Init(void);
|
||
|
|
int X11_NewViewport(GRAPH *graph);
|
||
|
|
void X11_Close(void);
|
||
|
|
void X11_DrawLine(int x1, int y1, int x2, int y2);
|
||
|
|
void X11_Arc(int x0, int y0, int radius, double theta1, double theta2);
|
||
|
|
void X11_Text(char *text, int x, int y);
|
||
|
|
int X11_DefineColor(int colorid, double red, double green, double blue);
|
||
|
|
void X11_DefineLinestyle(int linestyleid, int mask);
|
||
|
|
void X11_SetLinestyle(int linestyleid);
|
||
|
|
void X11_SetColor(int colorid);
|
||
|
|
void X11_Update(void);
|
||
|
|
void X11_Clear(void);
|
||
|
|
void handlekeypressed(Widget w, caddr_t clientdata, caddr_t calldata);
|
||
|
|
void handlebuttonev(Widget w, caddr_t clientdata, caddr_t calldata);
|
||
|
|
void slopelocation(GRAPH *graph, int x0, int y0);
|
||
|
|
void zoomin(GRAPH *graph);
|
||
|
|
void hardcopy(Widget w, caddr_t client_data, caddr_t call_data);
|
||
|
|
void killwin(Widget w, caddr_t client_data, caddr_t call_data);
|
||
|
|
void redraw(Widget w, caddr_t client_data, caddr_t call_data);
|
||
|
|
void resize(Widget w, caddr_t client_data, caddr_t call_data);
|
||
|
|
void X11_Input(REQUEST *request, RESPONSE *response);
|
||
|
|
|
||
|
|
|
||
|
|
#endif
|