BurgerLib
Classes | Typedefs | Functions
fnfontmanager.cpp File Reference
#include "fnfont.h"
#include "brendian.h"
#include "brmisc.h"
#include "mmmemory.h"
#include "clstdlib.h"
#include "grgraphics.h"
#include "pfprefs.h"
#include "ststring.h"
#include "rzrez.h"
#include "plpalette.h"
#include "lrrect.h"
#include "lklinklist.h"
Include dependency graph for fnfontmanager.cpp:

Classes

struct  BurgerlibFont_t
struct  Triplett
struct  RGBColorList

Typedefs

typedef struct BurgerlibFont_t BurgerlibFont_t

Functions

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 *Input, BurgerFontState_t *StatePtr)
void BURGER_API BurgerFontRestoreState (BurgerFont_t *Input, const BurgerFontState_t *StatePtr)
void BURGER_API BurgerFontDrawChar (BurgerFont_t *Input, Word Char)
void BURGER_API BurgerFontDrawText (BurgerFont_t *Input, const char *TextPtr, Word TextLen)
Word BURGER_API BurgerFontWidthText (BurgerFont_t *Input, const char *TextPtr, Word TextLen)
void BURGER_API BurgerFontSetColor (BurgerFont_t *Input, Word ColorNum, Word Color)
void BURGER_API BurgerFontUseZero (BurgerFont_t *Input)
void BURGER_API BurgerFontUseMask (BurgerFont_t *Input)
void BURGER_API BurgerFontInstallToPalette (BurgerFont_t *Input, RezHeader_t *RezFile, Word FontNum, const Word8 *PalPtr)
void BURGER_API BurgerFontRelease (BurgerFont_t *Input)
void BURGER_API BurgerFontSetColorRGBListToPalette (BurgerFont_t *Input, const void *RGBList, const Word8 *PalPtr)
void BURGER_API BurgerFontSetToPalette (BurgerFont_t *RefPtr, const Word8 *PalPtr)
void BURGER_API FontSetXY (FontRef_t *Input, int x, int y)
Word BURGER_API FontWidthChar (FontRef_t *Input, Word Letter)
Word BURGER_API FontWidthLong (FontRef_t *Input, long Val)
Word BURGER_API FontWidthLongWord (FontRef_t *Input, Word32 Val)
Word BURGER_API FontWidthString (FontRef_t *Input, const char *TextPtr)
Word BURGER_API FontWidthListWidest (FontRef_t *FontPtr, LinkedList_t *ListPtr)
void BURGER_API FontDrawChar (FontRef_t *Input, Word Letter)
void BURGER_API FontDrawLong (FontRef_t *Input, long Val)
void BURGER_API FontDrawLongWord (FontRef_t *Input, Word32 Val)
void BURGER_API FontDrawString (FontRef_t *Input, const char *TextPtr)
void BURGER_API FontDrawStringCenterX (FontRef_t *Input, int x, int y, const char *TextPtr)
void BURGER_API FontDrawStringAtXY (FontRef_t *Input, 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)

Typedef Documentation


Function Documentation

void BURGER_API BurgerFontDrawText ( BurgerFont_t Input,
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 Input,
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 Input,
Word  ColorNum,
Word  Color 
)
void BURGER_API BurgerFontSetColorRGBListToPalette ( BurgerFont_t Input,
const void RGBList,
const Word8 PalPtr 
)
void BURGER_API BurgerFontSetToPalette ( BurgerFont_t RefPtr,
const Word8 PalPtr 
)
Word BURGER_API BurgerFontWidthText ( BurgerFont_t Input,
const char *  TextPtr,
Word  TextLen 
)
Word BURGER_API FontCharsForPixelWidth ( FontRef_t RefPtr,
const char *  TextPtr,
Word  Width 
)
void BURGER_API FontDrawChar ( FontRef_t Input,
Word  Letter 
)
void BURGER_API FontDrawLong ( FontRef_t Input,
long  Val 
)
void BURGER_API FontDrawString ( FontRef_t Input,
const char *  TextPtr 
)
void BURGER_API FontDrawStringAtXY ( FontRef_t Input,
int  x,
int  y,
const char *  TextPtr 
)
void BURGER_API FontDrawStringCenterX ( FontRef_t Input,
int  x,
int  y,
const char *  TextPtr 
)
void BURGER_API FontSetXY ( FontRef_t Input,
int  x,
int  y 
)
Word BURGER_API FontWidthChar ( FontRef_t Input,
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,
LinkedList_t ListPtr 
)
Word BURGER_API FontWidthLong ( FontRef_t Input,
long  Val 
)
Word BURGER_API FontWidthString ( FontRef_t Input,
const char *  TextPtr 
)