aboutsummaryrefslogtreecommitdiffstats
path: root/fb-gui.h
diff options
context:
space:
mode:
authorkraxel <kraxel>2004-06-07 19:19:20 +0000
committerkraxel <kraxel>2004-06-07 19:19:20 +0000
commit7c0a76f027d5820af7f2bbbe6abb3234383a5d9b (patch)
tree8221d4c482d5518c0de163350fc7fe59ea76d033 /fb-gui.h
parentec23de55331d3597e625ab42f7b50394ae34be1f (diff)
downloadfbida-7c0a76f027d5820af7f2bbbe6abb3234383a5d9b.tar.gz
- fbi: switch over text rendering to freetype2 + fontconfig.
Diffstat (limited to 'fb-gui.h')
-rw-r--r--fb-gui.h32
1 files changed, 25 insertions, 7 deletions
diff --git a/fb-gui.h b/fb-gui.h
index 1e7d7b8..4085346 100644
--- a/fb-gui.h
+++ b/fb-gui.h
@@ -1,11 +1,29 @@
+#include <ft2build.h>
+#include FT_FREETYPE_H
+#include FT_GLYPH_H
+
extern int visible;
+void shadow_render(void);
+void shadow_clear_lines(int first, int last);
+void shadow_clear(void);
+void shadow_set_palette(int fd);
+void shadow_init(void);
+void shadow_fini(void);
+
+void shadow_draw_line(int x1, int x2, int y1,int y2);
+void shadow_draw_rect(int x1, int x2, int y1,int y2);
+void shadow_draw_rgbdata(int x, int y, int pixels, unsigned char *rgb);
+void shadow_darkify(int x1, int x2, int y1,int y2, int percent);
+void shadow_reverse(int x1, int x2, int y1,int y2);
+
+int shadow_draw_string(FT_Face face, int x, int y, wchar_t *str, int align);
+void shadow_draw_string_cursor(FT_Face face, int x, int y, wchar_t *str, int pos);
+void shadow_draw_text_box(FT_Face face, int x, int y, int percent,
+ wchar_t *lines[], unsigned int count);
+
+void font_init(void);
+FT_Face font_open(char *fcname);
+
void fb_clear_mem(void);
void fb_clear_screen(void);
-
-void fb_text_init1(char *font);
-void fb_text_init2(void);
-int fb_font_width(void);
-void fb_status_line(unsigned char *msg);
-void fb_edit_line(unsigned char *str, int pos);
-void fb_text_box(int x, int y, char *lines[], unsigned int count);