Woopsi 1.3
Nintendo DS Gui Framework
libwoopsi/include/fontbase.h
00001 #ifndef _FONT_BASE_H_
00002 #define _FONT_BASE_H_
00003 
00004 #include <nds.h>
00005 
00006 namespace WoopsiUI {
00007 
00008     class MutableBitmapBase;
00009     class WoopsiString;
00010 
00016     class FontBase {
00017 
00018     public:
00019 
00023         virtual inline ~FontBase() { };
00024 
00031         virtual const bool isCharBlank(const u32 letter) const = 0;
00032 
00046         virtual s16 drawChar(MutableBitmapBase* bitmap, u32 letter, u16 colour, s16 x, s16 y, u16 clipX1, u16 clipY1, u16 clipX2, u16 clipY2) = 0;
00047 
00061         virtual s16 drawBaselineChar(MutableBitmapBase* bitmap, u32 letter, u16 colour, s16 x, s16 y, u16 clipX1, u16 clipY1, u16 clipX2, u16 clipY2) = 0;
00062         
00068         virtual u16 getStringWidth(const WoopsiString& text) const = 0;
00069 
00078         virtual u16 getStringWidth(const WoopsiString& text, s32 startIndex, s32 length) const = 0;
00079 
00085         virtual u8 getCharWidth(u32 letter) const = 0;
00086 
00092         virtual u8 getCharHeight(u32 letter) const = 0;
00093         
00099         virtual s8 getCharTop(u32 letter) const = 0;        
00100 
00105         virtual const u8 getHeight() const = 0;
00106     };
00107 }
00108 
00109 #endif
 All Classes Functions Variables Enumerations Enumerator