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

CharLayout Class Reference

#include <charLayout.h>

List of all members.

Public Types

typedef pvector< CharPlacementPlacements

Public Member Functions

void reset (int working_xsize, int working_ysize, int working_buffer_pixels)
bool place_character (const CharBitmap *bm)

Public Attributes

Placements _placements
int _working_xsize
int _working_ysize
int _working_buffer_pixels
int _cx
int _cy
int _nexty

Private Member Functions

bool find_hole (int &x, int &y, int x_size, int y_size) const
const CharPlacementfind_overlap (int x, int y, int x_size, int y_size) const


Member Typedef Documentation

typedef pvector<CharPlacement> CharLayout::Placements
 

Definition at line 43 of file charLayout.h.


Member Function Documentation

bool CharLayout::find_hole int x,
int y,
int  x_size,
int  y_size
const [private]
 

Definition at line 74 of file charLayout.cxx.

References CharPlacement::_height, CharPlacement::_width, _working_buffer_pixels, _working_xsize, _working_ysize, CharPlacement::_x, CharPlacement::_y, find_overlap(), nassertr, NULL, x, and y.

Referenced by place_character().

const CharPlacement * CharLayout::find_overlap int  x,
int  y,
int  x_size,
int  y_size
const [private]
 

Definition at line 117 of file charLayout.cxx.

References _placements, CharPlacement::intersects(), NULL, x, and y.

Referenced by find_hole().

bool CharLayout::place_character const CharBitmap bm  ) 
 

Definition at line 52 of file charLayout.cxx.

References _placements, _working_buffer_pixels, find_hole(), CharBitmap::get_height(), CharBitmap::get_width(), height, width, x, and y.

Referenced by EggMakeFont::consider_scale_factor().

void CharLayout::reset int  working_xsize,
int  working_ysize,
int  working_buffer_pixels
 

Definition at line 31 of file charLayout.cxx.

References _cx, _cy, _nexty, _placements, _working_buffer_pixels, _working_xsize, and _working_ysize.

Referenced by EggMakeFont::consider_scale_factor().


Member Data Documentation

int CharLayout::_cx
 

Definition at line 48 of file charLayout.h.

Referenced by reset().

int CharLayout::_cy
 

Definition at line 48 of file charLayout.h.

Referenced by reset().

int CharLayout::_nexty
 

Definition at line 48 of file charLayout.h.

Referenced by reset().

Placements CharLayout::_placements
 

Definition at line 44 of file charLayout.h.

Referenced by find_overlap(), place_character(), reset(), and EggMakeFont::run().

int CharLayout::_working_buffer_pixels
 

Definition at line 47 of file charLayout.h.

Referenced by find_hole(), place_character(), and reset().

int CharLayout::_working_xsize
 

Definition at line 46 of file charLayout.h.

Referenced by find_hole(), and reset().

int CharLayout::_working_ysize
 

Definition at line 46 of file charLayout.h.

Referenced by find_hole(), and reset().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:00:45 2003 for Panda-Tool by doxygen1.3