external font_load : string -> font
= "x11_font_load"
-external font_glyph : string -> glyph
+external font_glyph : font -> int -> glyph
= "x11_font_glyph"
(* Automatically connect and disconnect to the display server *)
static void xftcolor(XftColor* xc, int c);
static void xftdrawrect(int x, int y, int w, int h, int c);
-static void draw_text(void);
static value ev_focus(XEvent*);
static value ev_keypress(XEvent*);
XftColorFree(X.display, X.visual, X.colormap, &clr);
}
-static void draw_text(void) {
-
-}
-
/* Miscellaneous Utilities
******************************************************************************/
static value mkvariant(int tag, int nargs, ...) {