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

CharPlacement Class Reference

This specifies where a particular character will be placed on the working bitmap. More...

#include <charPlacement.h>

List of all members.

Public Member Functions

 CharPlacement (const CharBitmap *bm, int x, int y, int width, int height)
bool intersects (int x, int y, int x_size, int y_size) const
 Returns true if the particular position this char has been assigned to overlaps the rectangle whose top left corner is at x, y and whose size is given by x_size, y_size, or false otherwise.


Public Attributes

const CharBitmap_bm
int _x
int _y
int _width
int _height


Detailed Description

This specifies where a particular character will be placed on the working bitmap.

An array of these is built up to lay out all the characters in the bitmap, and then when the layout is suitable, the bitmap is generated.

Definition at line 44 of file charPlacement.h.


Constructor & Destructor Documentation

CharPlacement::CharPlacement const CharBitmap bm,
int  x,
int  y,
int  width,
int  height
[inline]
 

Definition at line 31 of file charPlacement.I.

References height, and width.


Member Function Documentation

bool CharPlacement::intersects int  x,
int  y,
int  x_size,
int  y_size
const
 

Returns true if the particular position this char has been assigned to overlaps the rectangle whose top left corner is at x, y and whose size is given by x_size, y_size, or false otherwise.

Definition at line 41 of file charPlacement.cxx.


Member Data Documentation

const CharBitmap* CharPlacement::_bm
 

Definition at line 51 of file charPlacement.h.

int CharPlacement::_height
 

Definition at line 53 of file charPlacement.h.

Referenced by CharLayout::place_character().

int CharPlacement::_width
 

Definition at line 53 of file charPlacement.h.

Referenced by CharLayout::place_character().

int CharPlacement::_x
 

Definition at line 52 of file charPlacement.h.

Referenced by CharLayout::place_character().

int CharPlacement::_y
 

Definition at line 52 of file charPlacement.h.

Referenced by CharLayout::place_character().


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