Qt 4.8
Public Functions | Private Types | List of all members
QVarLengthGlyphLayoutArray Class Reference

#include <qtextengine_p.h>

Inheritance diagram for QVarLengthGlyphLayoutArray:
QVarLengthArray< void *> QGlyphLayout

Public Functions

 QVarLengthGlyphLayoutArray (int totalGlyphs)
 
void resize (int totalGlyphs)
 
- Public Functions inherited from QGlyphLayout
void clear (int first=0, int last=-1)
 
char * data ()
 
QFixed effectiveAdvance (int item) const
 
void grow (char *address, int totalGlyphs)
 
QGlyphLayoutInstance instance (int position) const
 
QGlyphLayout mid (int position, int n=-1) const
 
 QGlyphLayout ()
 
 QGlyphLayout (char *address, int totalGlyphs)
 
void setInstance (int position, const QGlyphLayoutInstance &g)
 

Private Types

typedef QVarLengthArray< void * > Array
 

Additional Inherited Members

- Static Public Functions inherited from QGlyphLayout
static int spaceNeededForGlyphLayout (int totalGlyphs)
 
- Public Variables inherited from QGlyphLayout
QFixedadvances_x
 
QFixedadvances_y
 
HB_GlyphAttributes * attributes
 
HB_Glyph * glyphs
 
QGlyphJustificationjustifications
 
int numGlyphs
 
QFixedPointoffsets
 

Detailed Description

Definition at line 268 of file qtextengine_p.h.

Typedefs

◆ Array

Definition at line 271 of file qtextengine_p.h.

Constructors and Destructors

◆ QVarLengthGlyphLayoutArray()

QVarLengthGlyphLayoutArray::QVarLengthGlyphLayoutArray ( int  totalGlyphs)
inline

Definition at line 273 of file qtextengine_p.h.

274  : Array(spaceNeededForGlyphLayout(totalGlyphs) / sizeof(void *) + 1)
275  , QGlyphLayout(reinterpret_cast<char *>(Array::data()), totalGlyphs)
276  {
277  memset(Array::data(), 0, Array::size() * sizeof(void *));
278  }
QVarLengthArray< void * > Array
static int spaceNeededForGlyphLayout(int totalGlyphs)

Functions

◆ resize()

void QVarLengthGlyphLayoutArray::resize ( int  totalGlyphs)
inline

Definition at line 280 of file qtextengine_p.h.

Referenced by QFontEngineXLFD::canRender(), QFontEngineMulti::canRender(), and QRawFont::glyphIndexesForString().

281  {
282  Array::resize(spaceNeededForGlyphLayout(totalGlyphs) / sizeof(void *) + 1);
283 
284  *((QGlyphLayout *)this) = QGlyphLayout(reinterpret_cast<char *>(Array::data()), totalGlyphs);
285  memset(Array::data(), 0, Array::size() * sizeof(void *));
286  }
static int spaceNeededForGlyphLayout(int totalGlyphs)

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