1 #ifndef _VBI_X11_H
2 #define _VBI_X11_H 1
3
4 #ifdef HAVE_ZVBI
5
6 #ifdef HAVE_XFT
7 # define _XFT_NO_COMPAT_ 1
8 # include <X11/Xft/Xft.h>
9 #endif
10
11 #include "list.h"
12
13 struct vbi_font {
14 char *label;
15 char *xlfd1;
16 char *xlfd2;
17 };
18
19 struct vbi_window {
20 Widget shell,tt,subbtn,submenu;
21 Widget savebox;
22 Colormap cmap;
23 GC gc;
24 XFontStruct *font1,*font2;
25 int w,a,d,h;
26 unsigned long colors[8];
27
28 #ifdef HAVE_XFT
29 XftFont *xft_font;
30 XftColor xft_color[8];
31 #else
32 void *xft_font;
33 #endif
34
35 struct vbi_state *vbi;
36 struct vbi_page pg;
37 int pgno,subno;
38 char *charset;
39
40 int newpage;
41 Time down;
42 struct vbi_rect s;
43
44 struct list_head selections;
45 };
46
47 extern struct vbi_font vbi_fonts[];
48
49 struct vbi_window* vbi_render_init(Widget shell, Widget tt,
50 struct vbi_state *vbi);
51 void vbi_render_free_font(Widget shell, struct vbi_window *vw);
52 void vbi_render_set_font(Widget shell, struct vbi_window *vw, char *label);
53 void vbi_render_line(struct vbi_window *vw, Drawable d, struct vbi_char *ch,
54 int y, int top, int left, int right);
55 Pixmap vbi_export_pixmap(struct vbi_window *vw,
56 struct vbi_page *pg, struct vbi_rect *rect);
57
58 #endif /* HAVE_ZVBI */
59 #endif /* _VBI_X11_H */
60
|
This page was automatically generated by the
LXR engine.
|