BurgerLib
Classes | Namespaces | Defines | Typedefs | Functions
fnfont.h File Reference
#include "brtypes.h"
Include dependency graph for fnfont.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  FontRef_t
struct  BurgerFontState_t
struct  BurgerFont_t
struct  FontWidthEntry_t
struct  FontWidthLists_t

Namespaces

namespace  Burger

Defines

#define BurgerFontDestroy(x)   BurgerFontRelease(x)
#define FontWidthListDelete(x)   DeallocAPointer(x)

Typedefs

typedef const char Word
typedef Word(BURGER_APIFontWidthProc )(struct FontRef_t *, const char *, Word)
typedef struct FontRef_t FontRef_t
typedef struct BurgerFontState_t BurgerFontState_t
typedef struct BurgerFont_t BurgerFont_t
typedef struct FontWidthEntry_t FontWidthEntry_t
typedef struct FontWidthLists_t FontWidthLists_t

Functions

typedef void (BURGER_API *FontDrawProc)(struct FontRef_t *
void BURGER_API BurgerFontInit (BurgerFont_t *Input, struct RezHeader_t *RezFile, Word RezNum, const Word8 *PalPtr)
BurgerFont_t *BURGER_API BurgerFontNew (struct RezHeader_t *RezFile, Word RezNum, const Word8 *PalPtr)
void BURGER_API BurgerFontDelete (BurgerFont_t *Input)
void BURGER_API BurgerFontSaveState (BurgerFont_t *RefPtr, BurgerFontState_t *StatePtr)
void BURGER_API BurgerFontRestoreState (BurgerFont_t *RefPtr, const BurgerFontState_t *StatePtr)
void BURGER_API BurgerFontDrawChar (BurgerFont_t *RefPtr, Word Letter)
void BURGER_API BurgerFontDrawText (BurgerFont_t *RefPtr, const char *TextPtr, Word TextLen)
Word BURGER_API BurgerFontWidthText (BurgerFont_t *RefPtr, const char *TextPtr, Word TextLen)
void BURGER_API BurgerFontSetColor (BurgerFont_t *RefPtr, Word ColorNum, Word Color)
void BURGER_API BurgerFontUseZero (BurgerFont_t *RefPtr)
void BURGER_API BurgerFontUseMask (BurgerFont_t *RefPtr)
void BURGER_API BurgerFontInstallToPalette (BurgerFont_t *RefPtr, struct RezHeader_t *RezFile, Word FontNum, const Word8 *PalPtr)
void BURGER_API BurgerFontRelease (BurgerFont_t *RefPtr)
void BURGER_API BurgerFontSetColorRGBListToPalette (BurgerFont_t *RefPtr, const void *RGBList, const Word8 *PalPtr)
void BURGER_API BurgerFontSetToPalette (BurgerFont_t *RefPtr, const Word8 *PalPtr)
void BURGER_API FontSetXY (FontRef_t *RefPtr, int x, int y)
Word BURGER_API FontWidthChar (FontRef_t *RefPtr, Word Letter)
Word BURGER_API FontWidthLong (FontRef_t *Input, long Val)
Word BURGER_API FontWidthLongWord (FontRef_t *RefPtr, Word32 Val)
Word BURGER_API FontWidthString (FontRef_t *RefPtr, const char *TextPtr)
Word BURGER_API FontWidthListWidest (FontRef_t *FontPtr, struct LinkedList_t *ListPtr)
void BURGER_API FontDrawChar (FontRef_t *RefPtr, Word Letter)
void BURGER_API FontDrawLong (FontRef_t *Input, long Val)
void BURGER_API FontDrawLongWord (FontRef_t *RefPtr, Word32 Val)
void BURGER_API FontDrawString (FontRef_t *RefPtr, const char *TextPtr)
void BURGER_API FontDrawStringCenterX (FontRef_t *RefPtr, int x, int y, const char *TextPtr)
void BURGER_API FontDrawStringAtXY (FontRef_t *RefPtr, int x, int y, const char *TextPtr)
Word BURGER_API FontCharsForPixelWidth (FontRef_t *RefPtr, const char *TextPtr, Word Width)
FontWidthLists_t *BURGER_API FontWidthListNew (FontRef_t *FontRef, const char *TextPtr, Word PixelWidth)
void BURGER_API FontWidthListDraw (FontWidthLists_t *Input, const Burger::Rect_t *BoundsPtr, Word YTop, const char *TextPtr)

Define Documentation

#define BurgerFontDestroy (   x)    BurgerFontRelease(x)
#define FontWidthListDelete (   x)    DeallocAPointer(x)

Typedef Documentation

typedef struct BurgerFont_t BurgerFont_t
typedef struct FontRef_t FontRef_t
typedef Word(BURGER_API * FontWidthProc)(struct FontRef_t *, const char *, Word)
typedef const char Word

Function Documentation

void BURGER_API BurgerFontDrawChar ( BurgerFont_t RefPtr,
Word  Letter 
)
void BURGER_API BurgerFontDrawText ( BurgerFont_t RefPtr,
const char *  TextPtr,
Word  TextLen 
)
void BURGER_API BurgerFontInit ( BurgerFont_t Input,
struct RezHeader_t RezFile,
Word  RezNum,
const Word8 PalPtr 
)
void BURGER_API BurgerFontInstallToPalette ( BurgerFont_t RefPtr,
struct RezHeader_t RezFile,
Word  FontNum,
const Word8 PalPtr 
)
BurgerFont_t* BURGER_API BurgerFontNew ( struct RezHeader_t RezFile,
Word  RezNum,
const Word8 PalPtr 
)
void BURGER_API BurgerFontSetColor ( BurgerFont_t RefPtr,
Word  ColorNum,
Word  Color 
)
void BURGER_API BurgerFontSetColorRGBListToPalette ( BurgerFont_t RefPtr,
const void RGBList,
const Word8 PalPtr 
)
void BURGER_API BurgerFontSetToPalette ( BurgerFont_t RefPtr,
const Word8 PalPtr 
)
Word BURGER_API BurgerFontWidthText ( BurgerFont_t RefPtr,
const char *  TextPtr,
Word  TextLen 
)
Word BURGER_API FontCharsForPixelWidth ( FontRef_t RefPtr,
const char *  TextPtr,
Word  Width 
)
void BURGER_API FontDrawChar ( FontRef_t RefPtr,
Word  Letter 
)
void BURGER_API FontDrawLong ( FontRef_t Input,
long  Val 
)
void BURGER_API FontDrawLongWord ( FontRef_t RefPtr,
Word32  Val 
)
void BURGER_API FontDrawString ( FontRef_t RefPtr,
const char *  TextPtr 
)
void BURGER_API FontDrawStringAtXY ( FontRef_t RefPtr,
int  x,
int  y,
const char *  TextPtr 
)
void BURGER_API FontDrawStringCenterX ( FontRef_t RefPtr,
int  x,
int  y,
const char *  TextPtr 
)
void BURGER_API FontSetXY ( FontRef_t RefPtr,
int  x,
int  y 
)
Word BURGER_API FontWidthChar ( FontRef_t RefPtr,
Word  Letter 
)
void BURGER_API FontWidthListDraw ( FontWidthLists_t Input,
const Burger::Rect_t BoundsPtr,
Word  YTop,
const char *  TextPtr 
)
FontWidthLists_t* BURGER_API FontWidthListNew ( FontRef_t FontRef,
const char *  TextPtr,
Word  PixelWidth 
)
Word BURGER_API FontWidthListWidest ( FontRef_t FontPtr,
struct LinkedList_t ListPtr 
)
Word BURGER_API FontWidthLong ( FontRef_t Input,
long  Val 
)
Word BURGER_API FontWidthString ( FontRef_t RefPtr,
const char *  TextPtr 
)
typedef void ( BURGER_API FontDrawProc)