Qt 4.8
Public Types | Public Functions | Public Variables | List of all members
QStackTextEngine Class Reference

#include <qtextengine_p.h>

Inheritance diagram for QStackTextEngine:
QTextEngine

Public Types

enum  { MemSize = 256*40/sizeof(void *) }
 
- Public Types inherited from QTextEngine
enum  LayoutState { LayoutEmpty, InLayout, LayoutFailed }
 
enum  Mode { WidthOnly = 0x07 }
 
enum  ShaperFlag { RightToLeft = 0x0001, DesignMetrics = 0x0002, GlyphIndicesOnly = 0x0004 }
 

Public Functions

 QStackTextEngine (const QString &string, const QFont &f)
 
- Public Functions inherited from QTextEngine
QFixed alignLine (const QScriptLine &line)
 
bool atSpace (int position) const
 
const HB_CharAttributes * attributes () const
 
bool atWordSeparator (int position) const
 
QGlyphLayout availableGlyphs (const QScriptItem *si) const
 
glyph_metrics_t boundingBox (int from, int len) const
 
QFixed calculateTabWidth (int index, QFixed x) const
 returns the width of tab at index (in the tabs array) with the tab-start at position x More...
 
void clearLineData ()
 
QAbstractTextDocumentLayoutdocLayout () const
 
QString elidedText (Qt::TextElideMode mode, const QFixed &width, int flags=0) const
 
bool ensureSpace (int nGlyphs) const
 
int findItem (int strPos) const
 
QFont font (const QScriptItem &si) const
 
QFont font () const
 
QFontEnginefontEngine (const QScriptItem &si, QFixed *ascent=0, QFixed *descent=0, QFixed *leading=0) const
 
QTextCharFormat format (const QScriptItem *si) const
 
int formatIndex (const QScriptItem *si) const
 
QTextFormatCollectionformats () const
 
void freeMemory ()
 
bool hasFormats () const
 
void indexAdditionalFormats ()
 
void insertionPointsForLine (int lineNum, QVector< int > &insertionPoints)
 
void invalidate ()
 
bool isRightToLeft () const
 
void itemize () const
 
void justify (const QScriptLine &si)
 
QFixed leadingSpaceWidth (const QScriptLine &line)
 
int length (int item) const
 
int length (const QScriptItem *si) const
 
int lineNumberForTextPosition (int pos)
 
unsigned short * logClusters (const QScriptItem *si) const
 
int nextLogicalPosition (int oldPos) const
 
QFixed offsetInLigature (const QScriptItem *si, int pos, int max, int glyph_pos)
 
int positionAfterVisualMovement (int oldPos, QTextCursor::MoveOperation op)
 
int positionInLigature (const QScriptItem *si, int end, QFixed x, QFixed edge, int glyph_pos, bool cursorOnCharacter)
 
int previousLogicalPosition (int oldPos) const
 
 QTextEngine (LayoutData *data)
 
 QTextEngine ()
 
 QTextEngine (const QString &str, const QFont &f)
 
void resetFontEngineCache ()
 
void shape (int item) const
 
QGlyphLayout shapedGlyphs (const QScriptItem *si) const
 
void shapeLine (const QScriptLine &line)
 
glyph_metrics_t tightBoundingBox (int from, int len) const
 
void validate () const
 
bool visualCursorMovement () const
 
QFixed width (int charFrom, int numChars) const
 
 ~QTextEngine ()
 

Public Variables

LayoutData _layoutData
 
void * _memory [MemSize]
 
- Public Variables inherited from QTextEngine
QTextBlock block
 
uint cacheGlyphs: 1
 
FontEngineCache feCache
 
QFont fnt
 
uint forceJustification: 1
 
uint ignoreBidi: 1
 
LayoutDatalayoutData
 
QScriptLineArray lines
 
QFixed maxWidth
 
QFixed minWidth
 
QTextOption option
 
QPointF position
 
SpecialDataspecialData
 
uint stackEngine: 1
 
QString text
 
int * underlinePositions
 
uint visualMovement: 1
 

Additional Inherited Members

- Static Public Functions inherited from QTextEngine
static void bidiReorder (int numRuns, const quint8 *levels, int *visualOrder)
 

Detailed Description

Definition at line 653 of file qtextengine_p.h.

Enumerations

◆ anonymous enum

anonymous enum
Enumerator
MemSize 

Definition at line 655 of file qtextengine_p.h.

655 { MemSize = 256*40/sizeof(void *) };

Constructors and Destructors

◆ QStackTextEngine()

QStackTextEngine::QStackTextEngine ( const QString string,
const QFont f 
)

Definition at line 3078 of file qtextengine.cpp.

3079  : QTextEngine(string, f),
3080  _layoutData(string, _memory, MemSize)
3081 {
3082  stackEngine = true;
3084 }
LayoutData * layoutData
LayoutData _layoutData
void * _memory[MemSize]

Properties

◆ _layoutData

LayoutData QStackTextEngine::_layoutData

Definition at line 657 of file qtextengine_p.h.

Referenced by QStackTextEngine().

◆ _memory

void* QStackTextEngine::_memory[MemSize]

Definition at line 658 of file qtextengine_p.h.


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