pleyo.com

BAL::BIGlyphBuffer Class Reference

The GlyphBuffer associates Glyphs with their widths and FontData. More...

#include <BIGlyphBuffer.h>

Inheritance diagram for BAL::BIGlyphBuffer:

BAL::BCGlyphBufferEmbedded BAL::BCGlyphBufferFreeType

List of all members.

Public Member Functions

virtual bool isEmpty () const =0
 Tell if the glyph buffer is empty.
virtual int size () const =0
 Return the glyph buffer size.
virtual void clear ()=0
 Clear all the glyph buffer.
virtual
GlyphBufferGlyph
glyphs (int from)=0
virtual const
GlyphBufferGlyph
glyphs (int from) const =0
virtual
GlyphBufferAdvance
advances (int from)=0
virtual const
GlyphBufferAdvance
advances (int from) const =0
virtual const
BTFontData * 
fontDataAt (int index) const =0
 Return the FontData at the given index.
virtual FloatSize offsetAt (int index) const =0
virtual void swap (int index1, int index2)=0
 Swaps two indexes of the GlyphBuffer This move the glyph, width and FontData altogether.
virtual Glyph glyphAt (int index) const =0
 Returns the glyph at the given index.
virtual float advanceAt (int index) const =0
 Returns the width of the glyph stored at the given index.
virtual void add (Glyph glyph, const BTFontData *font, float width, const FloatSize *offset=0)=0
 Stores the glyph with the given width and the given font.
virtual ~BIGlyphBuffer ()


Detailed Description

The GlyphBuffer associates Glyphs with their widths and FontData.

Glyphs, glyphs' widths, and FontData are each one stored in a vector. Thus glyphs, widths, and FontData can be accessed by index with glyphAt() advanceAt() and fonDataAt(). Width are used to know the advance for each glyphs when walking through a string of characters.

See also:
Font, FontData

Constructor & Destructor Documentation

virtual BAL::BIGlyphBuffer::~BIGlyphBuffer (  )  [inline, virtual]


Member Function Documentation

virtual bool BAL::BIGlyphBuffer::isEmpty (  )  const [pure virtual]

Tell if the glyph buffer is empty.

Returns:
bool true if empty, false otherwise

Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.

virtual int BAL::BIGlyphBuffer::size (  )  const [pure virtual]

Return the glyph buffer size.

Returns:
size of glyph buffer

Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.

virtual void BAL::BIGlyphBuffer::clear (  )  [pure virtual]

Clear all the glyph buffer.

Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.

virtual GlyphBufferGlyph* BAL::BIGlyphBuffer::glyphs ( int  from  )  [pure virtual]

Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.

virtual const GlyphBufferGlyph* BAL::BIGlyphBuffer::glyphs ( int  from  )  const [pure virtual]

Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.

virtual GlyphBufferAdvance* BAL::BIGlyphBuffer::advances ( int  from  )  [pure virtual]

Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.

virtual const GlyphBufferAdvance* BAL::BIGlyphBuffer::advances ( int  from  )  const [pure virtual]

Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.

virtual const BTFontData* BAL::BIGlyphBuffer::fontDataAt ( int  index  )  const [pure virtual]

Return the FontData at the given index.

Parameters:
[in] index of the glyph

Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.

virtual FloatSize BAL::BIGlyphBuffer::offsetAt ( int  index  )  const [pure virtual]

Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.

virtual void BAL::BIGlyphBuffer::swap ( int  index1,
int  index2 
) [pure virtual]

Swaps two indexes of the GlyphBuffer This move the glyph, width and FontData altogether.

Parameters:
[in] index1 of the first glyph to be swapped
[in] index2 of the second glyph

Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.

virtual Glyph BAL::BIGlyphBuffer::glyphAt ( int  index  )  const [pure virtual]

Returns the glyph at the given index.

Parameters:
[in] index of the glyph
Returns:
glyph the glyph found

Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.

virtual float BAL::BIGlyphBuffer::advanceAt ( int  index  )  const [pure virtual]

Returns the width of the glyph stored at the given index.

Parameters:
[in] index of the glyph
Returns:
float the width

Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.

virtual void BAL::BIGlyphBuffer::add ( Glyph  glyph,
const BTFontData *  font,
float  width,
const FloatSize offset = 0 
) [pure virtual]

Stores the glyph with the given width and the given font.

Parameters:
[in] glyph 
[in] font 
[in] width 


The documentation for this class was generated from the following file:
Generated on Wed Nov 21 20:04:19 2007 for Origyn Web Browser by Doxygen 1.5.3

pleyo.com
pleyo.com