xlib_playground

Xlib playground for experiments.
Log | Files | Refs

x.h (469B)


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