Woopsi 1.3
Nintendo DS Gui Framework
Public Member Functions
WoopsiUI::PackedFont1 Class Reference

#include <libwoopsi/include/packedfont1.h>

Inheritance diagram for WoopsiUI::PackedFont1:
WoopsiUI::PackedFontBase WoopsiUI::FontBase WoopsiUI::Arial9 WoopsiUI::BankGothic12 WoopsiUI::Batang12 WoopsiUI::Batang14 WoopsiUI::Batang15 WoopsiUI::Courier WoopsiUI::Courier12 WoopsiUI::Courier12b WoopsiUI::CourierNew10 WoopsiUI::CourierNew12 WoopsiUI::Dotum13 WoopsiUI::FixedSys12 WoopsiUI::Garamond10 WoopsiUI::GillSans11 WoopsiUI::GillSans11b WoopsiUI::Gloucester10 WoopsiUI::Goudy9 WoopsiUI::Gulimche12 WoopsiUI::Gulimche12b WoopsiUI::Gungsuh12 WoopsiUI::Gungsuh15 WoopsiUI::Gungsuhche11 WoopsiUI::Gungsuhche15 WoopsiUI::Kartika10 WoopsiUI::Kartika9 WoopsiUI::Latha10 WoopsiUI::Latha15 WoopsiUI::Latha9 WoopsiUI::LucidaCalligraphy14 WoopsiUI::Mangal9 WoopsiUI::Modern9 WoopsiUI::Modern9b WoopsiUI::MSGothic8 WoopsiUI::MSGothic9 WoopsiUI::MSSans9 WoopsiUI::MSSans9b WoopsiUI::MSSerif11 WoopsiUI::MSSerif11b WoopsiUI::NewTopaz WoopsiUI::OCRFont8 WoopsiUI::PoorRichard12 WoopsiUI::PoorRichard9 WoopsiUI::Roman11i WoopsiUI::Roman13 WoopsiUI::Roman13i WoopsiUI::Roman9b WoopsiUI::Script9b WoopsiUI::TimesNewRoman9 WoopsiUI::TinyFont WoopsiUI::Topaz WoopsiUI::Tunga8

List of all members.

Public Member Functions

 PackedFont1 (u8 first, u8 last, const u16 *glyphData, const u16 *glyphOffset, const u8 *glyphWidth, const u8 height, const u8 spWidth, const u8 charTop, const u8 fixedWidth=0)
void renderChar (const u16 *pixelData, u16 pixelsPerRow, MutableBitmapBase *bitmap, u16 colour, s16 x, s16 y, u16 clipX1, u16 clipY1, u16 clipX2, u16 clipY2)

Detailed Description

PackedFont1 is a class for managing 1-bit packed fonts.

Constructor & Destructor Documentation

WoopsiUI::PackedFont1::PackedFont1 ( u8  first,
u8  last,
const u16 *  glyphData,
const u16 *  glyphOffset,
const u8 *  glyphWidth,
const u8  height,
const u8  spWidth,
const u8  charTop,
const u8  fixedWidth = 0 
) [inline]


firstAscii index of first character in glphyDdata.
lastAscii index of last character in glyphData.
glyphDataPacked array representing font.
glyphOffsetOffset into glyphData[] of character[i].
glyphWidthPixel width of character[i].
spWidthThe height of a space
heightThe height of the font.
charTopThe height of the font minus the blank spaces below 'a'.
fixedWidthCharacter width (fixed), or 0 for proportional.

Member Function Documentation

void WoopsiUI::PackedFont1::renderChar ( const u16 *  pixelData,
u16  pixelsPerRow,
MutableBitmapBase bitmap,
u16  colour,
s16  x,
s16  y,
u16  clipX1,
u16  clipY1,
u16  clipX2,
u16  clipY2 
) [virtual]

Render an individual character of the font to the specified bitmap.

pixelDataThe font-specific pixel data.
pixelsPerRowThe number of pixels to render per row (for this character).
bitmapBitmap to draw to.
colourThe colour to draw with. If this is 0 the font's default colour will be used.
xThe x co-ordinate of the text.
yThe y co-ordinate of the text.
clipX1The left edge of the clipping rectangle.
clipY1The top edge of the clipping rectangle.
clipX2The right edge of the clipping rectangle.
clipY2The bottom edge of the clipping rectangle.

Implements WoopsiUI::PackedFontBase.

The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Enumerator