Logo Search packages:      
Sourcecode: icu version File versions  Download package

ThaiLayoutEngine Class Reference

#include <ThaiLayoutEngine.h>

Inheritance diagram for ThaiLayoutEngine:

LayoutEngine UObject UMemory

List of all members.


Detailed Description

This class implements layout for the Thai script, using the ThaiShapingClass. All existing Thai fonts use an encoding which assigns character codes to all the variant forms needed to display accents and tone marks correctly in context. This class can deal with fonts using the Microsoft, Macintosh, and WorldType encodings.

For internal use only.

Definition at line 29 of file ThaiLayoutEngine.h.


Public Member Functions

void getCharIndices (le_int32 charIndices[], le_int32 indexBase, LEErrorCode &success) const
void getCharIndices (le_int32 charIndices[], LEErrorCode &success) const
virtual UClassID getDynamicClassID () const
le_int32 getGlyphCount () const
void getGlyphPosition (le_int32 glyphIndex, float &x, float &y, LEErrorCode &success) const
void getGlyphPositions (float positions[], LEErrorCode &success) const
virtual void getGlyphs (le_uint32 glyphs[], le_uint32 extraBits, LEErrorCode &success) const
void getGlyphs (LEGlyphID glyphs[], LEErrorCode &success) const
virtual le_int32 layoutChars (const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, float x, float y, LEErrorCode &success)
virtual void reset ()
 ThaiLayoutEngine (const LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode, le_int32 typoFlags, LEErrorCode &success)
virtual ~ThaiLayoutEngine ()

Static Public Member Functions

static UClassID getStaticClassID ()
static LayoutEnginelayoutEngineFactory (const LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode, le_int32 typo_flags, LEErrorCode &success)
static LayoutEnginelayoutEngineFactory (const LEFontInstance *fontInstance, le_int32 scriptCode, le_int32 languageCode, LEErrorCode &success)
static void U_EXPORT2 operator delete (void *, void *) U_NO_THROW
static void U_EXPORT2 operator delete (void *p) U_NO_THROW
static void U_EXPORT2 operator delete[] (void *p) U_NO_THROW
static void *U_EXPORT2 operator new (size_t, void *ptr) U_NO_THROW
static void *U_EXPORT2 operator new (size_t size) U_NO_THROW
static void *U_EXPORT2 operator new[] (size_t size) U_NO_THROW

Protected Member Functions

virtual void adjustGlyphPositions (const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse, LEGlyphStorage &glyphStorage, LEErrorCode &success)
virtual le_int32 characterProcessing (const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, LEUnicode *&outChars, LEGlyphStorage &glyphStorage, LEErrorCode &success)
virtual le_int32 computeGlyphs (const LEUnicode chars[], le_int32 offset, le_int32 count, le_int32 max, le_bool rightToLeft, LEGlyphStorage &glyphStorage, LEErrorCode &success)
virtual const void * getFontTable (LETag tableTag) const
virtual void mapCharsToGlyphs (const LEUnicode chars[], le_int32 offset, le_int32 count, le_bool reverse, le_bool mirror, LEGlyphStorage &glyphStorage, LEErrorCode &success)
virtual void positionGlyphs (LEGlyphStorage &glyphStorage, float x, float y, LEErrorCode &success)

Static Protected Member Functions

static void adjustMarkGlyphs (const LEUnicode chars[], le_int32 charCount, le_bool reverse, LEGlyphStorage &glyphStorage, LEGlyphFilter *markFilter, LEErrorCode &success)
static void adjustMarkGlyphs (LEGlyphStorage &glyphStorage, LEGlyphFilter *markFilter, LEErrorCode &success)

Protected Attributes

LEUnicode fErrorChar
le_bool fFilterZeroWidth
const LEFontInstancefFontInstance
le_uint8 fGlyphSet
LEGlyphStoragefGlyphStorage
le_int32 fLanguageCode
le_int32 fScriptCode
le_int32 fTypoFlags

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

Generated by  Doxygen 1.6.0   Back to index