- Main Page
- Classes
- Files

- File List

# C:/Documents and Settings/Administrator/Desktop/woopsi-src-0.39/Woopsi/woopsi/monofont.h

    00001 #ifndef _MONO_FONT_H_
    00002 #define _MONO_FONT_H_
    00003
    00004 #include <nds.h>
    00005 #include "fixedwidthfontbase.h"
    00006
    00007 namespace WoopsiUI {
    00008
    00013         class MonoFont : public FixedWidthFontBase {
    00014
    00015         public:
    00016
    00026                 MonoFont(const u16* bitmap, const u16 bitmapWidth, const u16 bitmapHeight, const u8 width, const u8 height, const u16 drawColour);
    00027
    00031                 inline ~MonoFont() { };
    00032
    00038                 const u16 getPixel(const u32 position) const;
    00039
    00054                 s16 drawChar(u16* bitmap, u16 bitmapWidth, u16 bitmapHeight, char letter, s16 x, s16 y, u16 clipX1, u16 clipY1, u16 clipX2, u16 clipY2);
    00055
    00056         private:
    00057                 const u16* _bitmap;
    00066                 const bool scanGlyph(const u16 x, const u16 y) const;
    00067         };
    00068 }
    00069
    00070 #endif

All Classes Functions Variables Enumerations Enumerator