1 #ifndef TEXT_RENDERER_A_H
2 #define TEXT_RENDERER_A_H
4 #include "envBilatDisplayable.h"
7 /*----------------------------------------------------------------------*\
9 \*---------------------------------------------------------------------*/
11 /*--------------------------------------*\
13 \*-------------------------------------*/
15 class CBI_DISPLAYABLE TextRenderer_A
17 // enum VertialAlignement {TOP,CENTER,BOTTOM};
18 // enum HorizontalAlignement {LEFT,CENTER,RIGHT};
20 virtual ~TextRenderer_A()
24 virtual int charWidth(int character
,const Font_A
&font
)=0;
26 virtual int textWidth(const char* text
,const Font_A
&font
) =0;
28 virtual int textHeight(const char* text
,const Font_A
&font
) =0;
31 * If font is NULL use the default font!
33 virtual void renderText(float x
, float y
, const char* text
, const Font_A
&font
)=0;
38 /*----------------------------------------------------------------------*\
40 \*---------------------------------------------------------------------*/