1 #ifndef WELLIMAGEFONT_H
2 #define WELLIMAGEFONT_H
6 #include "wellsimpledraw.h"
8 enum Justify
{ RightJust
, CenterJust
, LeftJust
};
10 class WellImageFont
: public WellSimpleDraw
14 unsigned int font_l
, font_h
;
18 int screen_x
,screen_y
,screen_l
,screen_h
;
20 virtual void draw_symbol(int ix
, int iy
,
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
,
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;