Mercurial > mplayer.hg
annotate gui/skin/font.h @ 26365:10dfbc523184
Add gui/ prefix to some #include paths so that compilation from the
top-level source directory does not fail.
author | diego |
---|---|
date | Fri, 11 Apr 2008 16:55:27 +0000 |
parents | 4129c8cfa742 |
children | b0a7b35b78d2 |
rev | line source |
---|---|
26029 | 1 #ifndef MPLAYER_GUI_FONT_H |
2 #define MPLAYER_GUI_FONT_H | |
23077 | 3 |
26365
10dfbc523184
Add gui/ prefix to some #include paths so that compilation from the
diego
parents:
26029
diff
changeset
|
4 #include "gui/bitmap.h" |
10dfbc523184
Add gui/ prefix to some #include paths so that compilation from the
diego
parents:
26029
diff
changeset
|
5 #include "gui/app.h" |
23077 | 6 |
7 #define fntAlignLeft 0 | |
8 #define fntAlignCenter 1 | |
9 #define fntAlignRight 2 | |
10 | |
11 typedef struct | |
12 { | |
13 int x,y; // location | |
14 int sx,sy; // size | |
15 } fntChar; | |
16 | |
17 typedef struct | |
18 { | |
19 fntChar Fnt[256]; | |
20 txSample Bitmap; | |
21 char name[128]; | |
22 } bmpFont; | |
23 | |
24 extern txSample Bitmap; | |
25 extern bmpFont * Fonts[26]; | |
26 | |
27 extern int fntAddNewFont( char * name ); | |
28 extern void fntFreeFont( void ); | |
29 extern int fntFindID( char * name ); | |
30 extern int fntTextHeight( int id,char * str ); | |
31 extern int fntTextWidth( int id,char * str ); | |
32 | |
33 extern int fntRead( char * path,char * fname ); | |
34 extern txSample * fntRender( wItem * item,int px,const char * fmt,... ); | |
35 | |
26029 | 36 #endif /* MPLAYER_GUI_FONT_H */ |