- Main Page
- Classes
- Files

- File List

# C:/Documents and Settings/Administrator/Desktop/woopsi-src-0.40/Woopsi/libwoopsi/include/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
    00015         class Font : public FixedWidthFontBase {
    00016
    00017         public:
    00018
    00026                 Font(const BitmapBase* bitmap, const u8 width, const u8 height, const u16 transparentColour);
    00027
    00031                 inline ~Font() { };
    00032
    00039                 const u16 getPixel(const s16 x, const s16 y) const;
    00040
    00053                 s16 drawChar(MutableBitmapBase* bitmap, char letter, s16 x, s16 y, u16 clipX1, u16 clipY1, u16 clipX2, u16 clipY2);
    00054
    00055         private:
    00056                 const BitmapBase* _bitmap;
    00065                 const bool scanGlyph(const u16 x, const u16 y) const;
    00066         };
    00067 }
    00068
    00069 #endif