2010-05-07 04:47:10 -05:00
|
|
|
#ifndef _TextRender_H_
|
|
|
|
#define _TextRender_H_
|
|
|
|
|
|
|
|
#include <Font.h>
|
|
|
|
|
|
|
|
class TextRender
|
|
|
|
{
|
2010-07-10 08:58:15 -05:00
|
|
|
public:
|
|
|
|
TextRender() {};
|
|
|
|
virtual ~TextRender() {};
|
|
|
|
|
2012-06-09 08:14:33 -05:00
|
|
|
virtual void Render(BView* target, const char*, int num, BPoint pos) = 0;
|
2010-07-10 08:58:15 -05:00
|
|
|
virtual void GetHeight(font_height* height) = 0;
|
|
|
|
virtual void GetEscapements(const char charArray[], int32 numChars, float escapementArray[]) = 0;
|
|
|
|
virtual float Size() = 0;
|
|
|
|
//
|
|
|
|
|
2010-05-07 04:47:10 -05:00
|
|
|
};
|
|
|
|
#endif
|