- Main Page
- Classes
- Files

- File List

# C:/Documents and Settings/Administrator/Desktop/woopsi-src-0.40/Woopsi/libwoopsi/include/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
    00009         class MutableBitmapBase;
    00010
    00015         class MonoFont : public FixedWidthFontBase {
    00016
    00017         public:
    00018
    00028                 MonoFont(const u16* bitmap, const u16 bitmapWidth, const u16 bitmapHeight, const u8 width, const u8 height, const u16 drawColour);
    00029
    00033                 inline ~MonoFont() { };
    00034
    00041                 const u16 getPixel(const s16 x, const s16 y) const;
    00042
    00055                 s16 drawChar(MutableBitmapBase* bitmap, char letter, s16 x, s16 y, u16 clipX1, u16 clipY1, u16 clipX2, u16 clipY2);
    00056
    00057         private:
    00058                 const u16* _bitmap;
    00067                 const bool scanGlyph(const u16 x, const u16 y) const;
    00068         };
    00069 }
    00070
    00071 #endif