4 * (c) 2013 Martin Mares <mj@ucw.cz>
12 #define OSD_MAX_LINE_LEN 256
21 enum osd_line_type type;
25 union { // Data dependent on type
26 char text[OSD_MAX_LINE_LEN]; // in UTF-8
35 struct osd_state *osd_new(Display *dpy);
36 void osd_free(struct osd_state *osd);
37 void osd_set_font(struct osd_state *osd, char *font_name);
38 struct osd_line *osd_add_line(struct osd_state *osd, enum osd_line_type type);
39 void osd_show(struct osd_state *osd);
40 void osd_hide(struct osd_state *osd);
41 bool osd_handle_event(struct osd_state *osd, XEvent *ev);