Crazy Eddie's GUI System
0.8.1
|
Abstract class to wrap a Bidi visual mapping of a text string. More...
Public Types | |
typedef std::vector< int CEGUI_VECTOR_ALLOC(int)> | StrIndexList |
type definition for collection used to hold mapping index lists. | |
Public Member Functions | |
virtual | ~BidiVisualMapping () |
Destructor. | |
virtual BidiCharType | getBidiCharType (const String::value_type char_to_check) const =0 |
Gets the Bidi char type of a char. More... | |
virtual bool | reorderFromLogicalToVisual (const String &logical, String &visual, StrIndexList &l2v, StrIndexList &v2l) const =0 |
Reorder a string from a logical (type order) bidi string to a visual (the way it displayed) string. More... | |
bool | updateVisual (const String &logical) |
Use reorderFromLogicalToVisual to update the internal visual mapping data and visual string representation based upon the logical string logical. More... | |
const StrIndexList | getL2vMapping () const |
const StrIndexList | getV2lMapping () const |
const String & | getTextVisual () const |
Protected Attributes | |
StrIndexList | d_l2vMapping |
StrIndexList | d_v2lMapping |
String | d_textVisual |
Abstract class to wrap a Bidi visual mapping of a text string.
|
pure virtual |
Gets the Bidi char type of a char.
charToCheck | The utf32 character code that will be checked. |
Implemented in CEGUI::FribidiVisualMapping, and CEGUI::MinibidiVisualMapping.
|
pure virtual |
Reorder a string from a logical (type order) bidi string to a visual (the way it displayed) string.
logical | String object to be reordered. |
visual | String object containing the result reordered string. |
l2vMapping | List of integers that map the pos of each char from logical string in the visual string. |
v2lMapping | List of integers that map the pos of each char from visual string in the logical string. |
Implemented in CEGUI::FribidiVisualMapping, and CEGUI::MinibidiVisualMapping.
bool CEGUI::BidiVisualMapping::updateVisual | ( | const String & | logical | ) |
Use reorderFromLogicalToVisual to update the internal visual mapping data and visual string representation based upon the logical string logical.
logical | String object representing the logical text order. |