Mercurial > mplayer.hg
annotate gui/skin/font.h @ 23818:9e0142e0c121
(finally) synced with r23272
author | ptt |
---|---|
date | Sat, 21 Jul 2007 11:12:52 +0000 |
parents | 3f0d00abc073 |
children | 3baf6a2283da |
rev | line source |
---|---|
23077 | 1 |
23689
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
23685
diff
changeset
|
2 #ifndef GUI_FONT_H |
3f0d00abc073
Do not use leading underscores in multiple inclusion guards, they are reserved.
diego
parents:
23685
diff
changeset
|
3 #define GUI_FONT_H |
23077 | 4 |
5 #include "bitmap.h" | |
6 #include "app.h" | |
7 | |
8 #define fntAlignLeft 0 | |
9 #define fntAlignCenter 1 | |
10 #define fntAlignRight 2 | |
11 | |
12 typedef struct | |
13 { | |
14 int x,y; // location | |
15 int sx,sy; // size | |
16 } fntChar; | |
17 | |
18 typedef struct | |
19 { | |
20 fntChar Fnt[256]; | |
21 txSample Bitmap; | |
22 char name[128]; | |
23 } bmpFont; | |
24 | |
25 extern txSample Bitmap; | |
26 extern bmpFont * Fonts[26]; | |
27 | |
28 extern int fntAddNewFont( char * name ); | |
29 extern void fntFreeFont( void ); | |
30 extern int fntFindID( char * name ); | |
31 extern int fntTextHeight( int id,char * str ); | |
32 extern int fntTextWidth( int id,char * str ); | |
33 | |
34 extern int fntRead( char * path,char * fname ); | |
35 extern txSample * fntRender( wItem * item,int px,const char * fmt,... ); | |
36 | |
37 #endif | |
38 |