/* these define event masks  */
#define eExpose (1L<<0)
#define eKeyPress (1L<<1)
#define eKeyRelease (1L<<2)
#define eButtonPress (1L<<3)
#define eButtonRelease (1L<<4)
#define eMotion (1L<<5)


void StartGraphics(int Width, int Height, int use_shadow);
void EndGraphics(void);
void DrawLine(int x1,int y1,int x2,int y2);
void DrawRectangle(int x,int y,int width,int height);
void DrawEllipse(int x,int y,int width,int height);
void FillEllipse(int x,int y,int width,int height);
void FillRectangle(int x,int y,int width,int height);
void WaitForButtonPress();
void DrawPoint(int x,int y);
void ClearWindow(void);
void FlushGraphics(void);
void DrawArc(int x,int y,int width,int height,int angle1,int angle2);
void FillArc(int x,int y,int width,int height,int angle1,int angle2);
void MousePosition(int *x,int *y);
void EventPosition(int *x,int *y);
int EventKeyCode(void);
void DrawString(int x,int y,char *str);
void WaitForEvent(int event_mask);
int LastEvent(void);
int ScreenWidth(void);
int ScreenHeight(void);
int WindowWidth(void);
int WindowHeight(void);
int AvailableColors(void);
int StringHeight(char *s);
int StringWidth(char *s);
void LoadFont(char *font_name);
void SetLineStyle(int style);
void SetLineWidth(int width);
void AlwaysFlush(int setting);
void SetDrawingFunction(int fn);
void SaveSettings(void);
void RestoreSettings(void);
unsigned int RandomCard(void);
void SetTitle(char *title);
int GetColor(char *name);
int GetColorRGB(int red,int green,int blue);
void SetForeground(int color);
void SetBackground(int color);
void DrawCircle(int x,int y,int radius);
void FillCircle(int x,int y,int radius);
void ClearArea(int x,int y,int width,int height);
int LoadImage(char *fname);
int ImageWidth(int i);
int ImageHeight(int i);
void PlaceImage(int i, int x, int y);
void Flush(void);
void RestoreImage(int i);
void FreeImage(int i);
void Sleep(double sec);
void Wait(double sec);
