original 1.0.1 release
[xwelltris.git] / src / include / wellimagefont.h
blob144dd92de06f0f14d90c254839de26426d7e82fc
1 #ifndef WELLIMAGEFONT_H
2 #define WELLIMAGEFONT_H
4 #include "globals.h"
5 #include "welltris.h"
6 #include "wellsimpledraw.h"
8 enum Justify { RightJust, CenterJust, LeftJust };
10 class WellImageFont: public WellSimpleDraw
12 protected:
13 Images font_id;
14 unsigned int font_l, font_h;
15 int dx,dy;
16 char text[L_MAXPATH];
17 int text_l;
18 int screen_x,screen_y,screen_l,screen_h;
20 virtual void draw_symbol(int ix, int iy,
21 unsigned int il,
22 unsigned int ih,
23 char symb)=0;
24 public:
25 WellImageFont(Images id, unsigned int ifl, unsigned int ifh, int idx, int idy);
26 virtual void set_text(char* itext);
27 virtual void set_font(unsigned int ifl, unsigned int ifh,
28 int idx, int idy);
29 virtual void set_screen_region(int ix, int iy, int il, int ih);
30 virtual void draw_text(Justify just=LeftJust);
31 virtual void draw_text(char* text, int text_l, Justify just=LeftJust);
32 virtual void draw_text(char* text, int text_l, Colors idx, Justify just=LeftJust);
33 virtual void clear_region()=0;
34 virtual void clear_region(Colors idx)=0;
37 #endif