Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

CBitmappedFontChar Class Reference

List of all members.

Public Member Functions

 CBitmappedFontChar (void)
 ~CBitmappedFontChar (void)
void SetBit (int x, int y)
void Draw (SSurface *surface, int x, int y, unsigned int colour)
int GetWidth (void)
int GetHeight (void)

Public Attributes

unsigned char ascii
 ASCII code for this character.
int start
int end
 Start/end column in RAW image data.
int w
int h
 Character width/height in pixels.
vector< SFontCharBit * > bits
 Vector of set bits in the character.

Detailed Description

Definition at line 40 of file Fonts.cpp.


Constructor & Destructor Documentation

CBitmappedFontChar::CBitmappedFontChar void   ) 
 

Definition at line 57 of file Fonts.cpp.

References ascii, end, h, start, and w.

CBitmappedFontChar::~CBitmappedFontChar void   ) 
 

Definition at line 64 of file Fonts.cpp.

References bits.


Member Function Documentation

void CBitmappedFontChar::Draw SSurface surface,
int  x,
int  y,
unsigned int  colour
 

Definition at line 81 of file Fonts.cpp.

References bits, DrawDot(), SFontCharBit::x, and SFontCharBit::y.

Referenced by DrawChar(), and DrawText().

int CBitmappedFontChar::GetHeight void   )  [inline]
 

Definition at line 91 of file Fonts.cpp.

References h.

int CBitmappedFontChar::GetWidth void   )  [inline]
 

Definition at line 90 of file Fonts.cpp.

References w.

Referenced by DrawText().

void CBitmappedFontChar::SetBit int  x,
int  y
 

Definition at line 73 of file Fonts.cpp.

References bits, SFontCharBit::x, and SFontCharBit::y.

Referenced by CBitmappedFont::LoadRaw().


Member Data Documentation

unsigned char CBitmappedFontChar::ascii
 

Definition at line 51 of file Fonts.cpp.

Referenced by CBitmappedFontChar(), and CBitmappedFont::LoadRaw().

vector<SFontCharBit*> CBitmappedFontChar::bits
 

Definition at line 54 of file Fonts.cpp.

Referenced by Draw(), SetBit(), and ~CBitmappedFontChar().

int CBitmappedFontChar::end
 

Definition at line 52 of file Fonts.cpp.

Referenced by CBitmappedFontChar(), and CBitmappedFont::LoadRaw().

int CBitmappedFontChar::h
 

Definition at line 53 of file Fonts.cpp.

Referenced by CBitmappedFontChar(), CBitmappedFont::CharHeight(), GetHeight(), and CBitmappedFont::LoadRaw().

int CBitmappedFontChar::start
 

Definition at line 52 of file Fonts.cpp.

Referenced by CBitmappedFontChar(), and CBitmappedFont::LoadRaw().

int CBitmappedFontChar::w
 

Definition at line 53 of file Fonts.cpp.

Referenced by CBitmappedFontChar(), CBitmappedFont::CharWidth(), GetWidth(), and CBitmappedFont::LoadRaw().


The documentation for this class was generated from the following file:
SourceForge.net Logo Documentation generated by doxygen