annotate gui/skin/font.h @ 23198:1009d14500d1

Simplify bgr2rgb
author reimar
date Wed, 02 May 2007 16:38:22 +0000
parents 17bf4f4b0715
children f15bce7943b9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23077
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
2 #ifndef _FONT_H
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
3 #define _FONT_H
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
4
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
5 #include "bitmap.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
6 #include "app.h"
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
7
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
8 #define fntAlignLeft 0
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
9 #define fntAlignCenter 1
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
10 #define fntAlignRight 2
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
11
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
12 typedef struct
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
13 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
14 int x,y; // location
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
15 int sx,sy; // size
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
16 } fntChar;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
17
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
18 typedef struct
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
19 {
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
20 fntChar Fnt[256];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
21 txSample Bitmap;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
22 char name[128];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
23 } bmpFont;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
24
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
25 extern txSample Bitmap;
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
26 extern bmpFont * Fonts[26];
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
27
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
28 extern int fntAddNewFont( char * name );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
29 extern void fntFreeFont( void );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
30 extern int fntFindID( char * name );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
31 extern int fntTextHeight( int id,char * str );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
32 extern int fntTextWidth( int id,char * str );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
33
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
34 extern int fntRead( char * path,char * fname );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
35 extern txSample * fntRender( wItem * item,int px,const char * fmt,... );
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
36
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
37 #endif
17bf4f4b0715 Gui --> gui
diego
parents:
diff changeset
38