|
CartoType API
|
#include <cartotype_bidi.h>
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 () |
An engine for doing bidirectional reordering and contextual shaping, and storing state when reordering and shaping a series of lines.
| 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.
1.7.5.1