xlib_playground

Xlib playground for experiments.
Log | Files | Refs

draw.h (516B)


      1 /*
      2  * x.c
      3  */
      4 enum event_type {
      5 	XKEYPRESS,
      6 	XKEYRELEASE,
      7 	XEXPOSE,
      8 	XWINDEL,
      9 	NOEVENT,
     10 };
     11 
     12 int  x_setup_window(int, int, unsigned int, unsigned int, unsigned long, char *);
     13 void x_clear_area(void);
     14 void x_draw_string(unsigned long color, int x, int y, const char *str, int length);
     15 void x_draw_rectangle(unsigned long color, int x, int y,
     16                  unsigned int w, unsigned int h);
     17 void x_flush(void);
     18 void x_clean_up(void);
     19 int  x_next_event(char *c);
     20 int  x_pending(void);
     21 void x_get_win_wh(int *, int *);