Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CharBitmap Class Reference

This defines a single character read from the PK file. More...

#include <charBitmap.h>

List of all members.

Public Types

typedef pvector< char > Row
typedef pvector< RowBlock

Public Member Functions

 CharBitmap (int character, int width, int height, int hoff, int voff, double dx, double dy)
bool paint (bool black, int num_pixels, int &repeat)
 Paints a string of same-color pixels into the bitmap.

int get_width () const
 Returns the width of the character in pixels.

int get_height () const
 Returns the height of the character in pixels.


Public Attributes

int _character
int _hoff
int _voff
double _dx
double _dy
Block _block
unsigned int _x
unsigned int _y


Detailed Description

This defines a single character read from the PK file.

It stores the kerning information as well as the character's decoded bitmap.

Definition at line 41 of file charBitmap.h.


Member Typedef Documentation

typedef pvector<Row> CharBitmap::Block
 

Definition at line 44 of file charBitmap.h.

typedef pvector<char> CharBitmap::Row
 

Definition at line 43 of file charBitmap.h.


Constructor & Destructor Documentation

CharBitmap::CharBitmap int  character,
int  width,
int  height,
int  hoff,
int  voff,
double  dx,
double  dy
 

Definition at line 35 of file charBitmap.cxx.

References height, width, and y.


Member Function Documentation

int CharBitmap::get_height  )  const [inline]
 

Returns the height of the character in pixels.

Definition at line 45 of file charBitmap.I.

int CharBitmap::get_width void   )  const [inline]
 

Returns the width of the character in pixels.

Definition at line 32 of file charBitmap.I.

References _block, and INLINE.

bool CharBitmap::paint bool  black,
int  num_pixels,
int repeat
 

Paints a string of same-color pixels into the bitmap.

This is called repeatedly by the rle decoder. Returns true when the last pixel has been painted, false if there is more to go.

Definition at line 66 of file charBitmap.cxx.

References _y.


Member Data Documentation

Block CharBitmap::_block
 

Definition at line 58 of file charBitmap.h.

Referenced by get_width().

int CharBitmap::_character
 

Definition at line 54 of file charBitmap.h.

double CharBitmap::_dx
 

Definition at line 56 of file charBitmap.h.

double CharBitmap::_dy
 

Definition at line 56 of file charBitmap.h.

int CharBitmap::_hoff
 

Definition at line 55 of file charBitmap.h.

int CharBitmap::_voff
 

Definition at line 55 of file charBitmap.h.

unsigned int CharBitmap::_x
 

Definition at line 59 of file charBitmap.h.

unsigned int CharBitmap::_y
 

Definition at line 59 of file charBitmap.h.

Referenced by paint().


The documentation for this class was generated from the following files:
Generated on Fri May 2 03:25:57 2003 for Panda-Tool by doxygen1.3