#include <BIGlyphBuffer.h>

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 () |
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.
| virtual BAL::BIGlyphBuffer::~BIGlyphBuffer | ( | ) | [inline, virtual] |
| virtual bool BAL::BIGlyphBuffer::isEmpty | ( | ) | const [pure virtual] |
Tell if the glyph buffer is empty.
Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.
| virtual int BAL::BIGlyphBuffer::size | ( | ) | const [pure virtual] |
Return the glyph buffer size.
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.
| [in] | index | of the glyph |
Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.
Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.
Swaps two indexes of the GlyphBuffer This move the glyph, width and FontData altogether.
| [in] | index1 | of the first glyph to be swapped |
| [in] | index2 | of the second glyph |
Implemented in BAL::BCGlyphBufferEmbedded, and BAL::BCGlyphBufferFreeType.
Returns the glyph at the given index.
| [in] | index | of the glyph |
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.
| [in] | index | of the glyph |
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.
| [in] | glyph | |
| [in] | font | |
| [in] | width |