- Main Page
- Classes
- Files

- File List

# font.h

    00001 #ifndef _FONT_H_
    00002 #define _FONT_H_
    00003
    00004 #include <nds.h>
    00005 #include "fixedwidthfontbase.h"
    00006
    00007 namespace WoopsiUI {
    00008
    00009         class MutableBitmapBase;
    00010         class BitmapBase;
    00011
    00016         class Font : public FixedWidthFontBase {
    00017
    00018         public:
    00019
    00027                 Font(const BitmapBase* bitmap, const u8 width, const u8 height, const u16 transparentColour);
    00028
    00032                 inline ~Font() { };
    00033
    00041                 const u16 getPixel(const s16 x, const s16 y) const;
    00042
    00055                 s16 drawChar(MutableBitmapBase* bitmap, u32 letter, s16 x, s16 y, u16 clipX1, u16 clipY1, u16 clipX2, u16 clipY2);
    00056
    00057         private:
    00058                 const BitmapBase* _bitmap;
    00067                 const bool scanGlyph(const u16 x, const u16 y) const;
    00068         };
    00069 }
    00070
    00071 #endif