webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Attributes | List of all members
WebCore::GlyphBuffer Class Reference

#include <GlyphBuffer.h>

Public Member Functions

bool isEmpty () const
 
unsigned size () const
 
void clear ()
 
GlyphBufferGlyphglyphs (unsigned from)
 
GlyphBufferAdvanceadvances (unsigned from)
 
const GlyphBufferGlyphglyphs (unsigned from) const
 
const GlyphBufferAdvanceadvances (unsigned from) const
 
size_t advancesCount () const
 
const FontfontAt (unsigned index) const
 
void setInitialAdvance (GlyphBufferAdvance initialAdvance)
 
const GlyphBufferAdvanceinitialAdvance () const
 
Glyph glyphAt (unsigned index) const
 
GlyphBufferAdvance advanceAt (unsigned index) const
 
FloatSize offsetAt (unsigned index) const
 
void add (Glyph glyph, const Font *font, float width, unsigned offsetInString=noOffset, const FloatSize *offset=0)
 
void add (Glyph glyph, const Font *font, GlyphBufferAdvance advance, unsigned offsetInString=noOffset)
 
void reverse (unsigned from, unsigned length)
 
void expandLastAdvance (float width)
 
void saveOffsetsInString ()
 
int offsetInString (unsigned index) const
 
void shrink (unsigned truncationPoint)
 
bool isEmpty () const
 
unsigned size () const
 
void clear ()
 
GlyphBufferGlyphglyphs (unsigned from)
 
GlyphBufferAdvanceadvances (unsigned from)
 
const GlyphBufferGlyphglyphs (unsigned from) const
 
const GlyphBufferAdvanceadvances (unsigned from) const
 
size_t advancesCount () const
 
const FontfontAt (unsigned index) const
 
void setInitialAdvance (GlyphBufferAdvance initialAdvance)
 
const GlyphBufferAdvanceinitialAdvance () const
 
Glyph glyphAt (unsigned index) const
 
GlyphBufferAdvance advanceAt (unsigned index) const
 
FloatSize offsetAt (unsigned index) const
 
void add (Glyph glyph, const Font *font, float width, unsigned offsetInString=noOffset, const FloatSize *offset=0)
 
void add (Glyph glyph, const Font *font, GlyphBufferAdvance advance, unsigned offsetInString=noOffset)
 
void reverse (unsigned from, unsigned length)
 
void expandLastAdvance (float width)
 
void saveOffsetsInString ()
 
int offsetInString (unsigned index) const
 
void shrink (unsigned truncationPoint)
 

Static Public Attributes

static const unsigned noOffset = UINT_MAX
 

Member Function Documentation

◆ add() [1/4]

void WebCore::GlyphBuffer::add ( Glyph  glyph,
const Font font,
float  width,
unsigned  offsetInString = noOffset,
const FloatSize offset = 0 
)
inline

◆ add() [2/4]

void WebCore::GlyphBuffer::add ( Glyph  glyph,
const Font font,
float  width,
unsigned  offsetInString = noOffset,
const FloatSize offset = 0 
)
inline

◆ add() [3/4]

void WebCore::GlyphBuffer::add ( Glyph  glyph,
const Font font,
GlyphBufferAdvance  advance,
unsigned  offsetInString = noOffset 
)
inline

◆ add() [4/4]

void WebCore::GlyphBuffer::add ( Glyph  glyph,
const Font font,
GlyphBufferAdvance  advance,
unsigned  offsetInString = noOffset 
)
inline

◆ advanceAt() [1/2]

GlyphBufferAdvance WebCore::GlyphBuffer::advanceAt ( unsigned  index) const
inline

◆ advanceAt() [2/2]

GlyphBufferAdvance WebCore::GlyphBuffer::advanceAt ( unsigned  index) const
inline

◆ advances() [1/4]

GlyphBufferAdvance* WebCore::GlyphBuffer::advances ( unsigned  from)
inline

◆ advances() [2/4]

GlyphBufferAdvance* WebCore::GlyphBuffer::advances ( unsigned  from)
inline

◆ advances() [3/4]

const GlyphBufferAdvance* WebCore::GlyphBuffer::advances ( unsigned  from) const
inline

◆ advances() [4/4]

const GlyphBufferAdvance* WebCore::GlyphBuffer::advances ( unsigned  from) const
inline

◆ advancesCount() [1/2]

size_t WebCore::GlyphBuffer::advancesCount ( ) const
inline

◆ advancesCount() [2/2]

size_t WebCore::GlyphBuffer::advancesCount ( ) const
inline

◆ clear() [1/2]

void WebCore::GlyphBuffer::clear ( )
inline

◆ clear() [2/2]

void WebCore::GlyphBuffer::clear ( )
inline

◆ expandLastAdvance() [1/2]

void WebCore::GlyphBuffer::expandLastAdvance ( float  width)
inline

◆ expandLastAdvance() [2/2]

void WebCore::GlyphBuffer::expandLastAdvance ( float  width)
inline

◆ fontAt() [1/2]

const Font* WebCore::GlyphBuffer::fontAt ( unsigned  index) const
inline

◆ fontAt() [2/2]

const Font* WebCore::GlyphBuffer::fontAt ( unsigned  index) const
inline

◆ glyphAt() [1/2]

Glyph WebCore::GlyphBuffer::glyphAt ( unsigned  index) const
inline

◆ glyphAt() [2/2]

Glyph WebCore::GlyphBuffer::glyphAt ( unsigned  index) const
inline

◆ glyphs() [1/4]

GlyphBufferGlyph* WebCore::GlyphBuffer::glyphs ( unsigned  from)
inline

◆ glyphs() [2/4]

GlyphBufferGlyph* WebCore::GlyphBuffer::glyphs ( unsigned  from)
inline

◆ glyphs() [3/4]

const GlyphBufferGlyph* WebCore::GlyphBuffer::glyphs ( unsigned  from) const
inline

◆ glyphs() [4/4]

const GlyphBufferGlyph* WebCore::GlyphBuffer::glyphs ( unsigned  from) const
inline

◆ initialAdvance() [1/2]

const GlyphBufferAdvance& WebCore::GlyphBuffer::initialAdvance ( ) const
inline

◆ initialAdvance() [2/2]

const GlyphBufferAdvance& WebCore::GlyphBuffer::initialAdvance ( ) const
inline

◆ isEmpty() [1/2]

bool WebCore::GlyphBuffer::isEmpty ( void  ) const
inline

◆ isEmpty() [2/2]

bool WebCore::GlyphBuffer::isEmpty ( ) const
inline

◆ offsetAt() [1/2]

FloatSize WebCore::GlyphBuffer::offsetAt ( unsigned  index) const
inline

◆ offsetAt() [2/2]

FloatSize WebCore::GlyphBuffer::offsetAt ( unsigned  index) const
inline

◆ offsetInString() [1/2]

int WebCore::GlyphBuffer::offsetInString ( unsigned  index) const
inline

◆ offsetInString() [2/2]

int WebCore::GlyphBuffer::offsetInString ( unsigned  index) const
inline

◆ reverse() [1/2]

void WebCore::GlyphBuffer::reverse ( unsigned  from,
unsigned  length 
)
inline

◆ reverse() [2/2]

void WebCore::GlyphBuffer::reverse ( unsigned  from,
unsigned  length 
)
inline

◆ saveOffsetsInString() [1/2]

void WebCore::GlyphBuffer::saveOffsetsInString ( )
inline

◆ saveOffsetsInString() [2/2]

void WebCore::GlyphBuffer::saveOffsetsInString ( )
inline

◆ setInitialAdvance() [1/2]

void WebCore::GlyphBuffer::setInitialAdvance ( GlyphBufferAdvance  initialAdvance)
inline

◆ setInitialAdvance() [2/2]

void WebCore::GlyphBuffer::setInitialAdvance ( GlyphBufferAdvance  initialAdvance)
inline

◆ shrink() [1/2]

void WebCore::GlyphBuffer::shrink ( unsigned  truncationPoint)
inline

◆ shrink() [2/2]

void WebCore::GlyphBuffer::shrink ( unsigned  truncationPoint)
inline

◆ size() [1/2]

unsigned WebCore::GlyphBuffer::size ( ) const
inline

◆ size() [2/2]

unsigned WebCore::GlyphBuffer::size ( ) const
inline

Member Data Documentation

◆ noOffset

static const unsigned WebCore::GlyphBuffer::noOffset = UINT_MAX
static

The documentation for this class was generated from the following file: