CartoType API
Classes | Public Member Functions
CartoType::CBidiEngine Class Reference

#include <cartotype_bidi.h>

List of all members.

Classes

class  TStackItem

Public Member Functions

CT_IMPORT TResult Order (uint16 *aText, int32 aLength, int32 &aNewLength, TBidiParDir aParDir, bool aParStart, int32 *aUserData=NULL)
bool RightToLeft ()

Detailed Description

An engine for doing bidirectional reordering and contextual shaping, and storing state when reordering and shaping a series of lines.


Member Function Documentation

CT_EXPORT TResult CBidiEngine::Order ( uint16 *  aText,
int32  aLength,
int32 &  aNewLength,
TBidiParDir  aParDir,
bool  aParStart,
int32 *  aUserData = NULL 
)

Perform bidirectional reordering, removing any bidirectional control characters. The text is reordered in place and either stays the same length or gets shorter. If aParStart is true, the state is initialised and the paragraph direction is resolved using aParDir, otherwise the existing state is used. If aUserData is non-null it contains user data that is reordered in the same way as the text.

bool CartoType::CBidiEngine::RightToLeft ( ) [inline]

Return the resolved direction; meaningful only after Order has been called at least once.


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