Crazy Eddies GUI System  0.7.2
Public Member Functions | List of all members
CEGUI::FribidiVisualMapping Class Reference

fribidi based implementation of BiDiVisualMapping. More...

+ Inheritance diagram for CEGUI::FribidiVisualMapping:
+ Collaboration diagram for CEGUI::FribidiVisualMapping:

Public Member Functions

BidiCharType getBidiCharType (const utf32 char_to_check) const
 Gets the BiDi char type of a char. More...
 
bool reorderFromLogicalToVisual (const String &logical, String &visual, StrIndexList &l2v, StrIndexList &v2l) const
 Reorder a string from a logical (type order) bidi string to a visual (the way it displayed) string. More...
 
- Public Member Functions inherited from CEGUI::BiDiVisualMapping
virtual ~BiDiVisualMapping ()
 Destructor.
 
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 StringgetTextVisual () const
 

Additional Inherited Members

- Public Types inherited from CEGUI::BiDiVisualMapping
typedef std::vector< int > StrIndexList
 type definition for collection used to hold mapping index lists.
 
- Protected Attributes inherited from CEGUI::BiDiVisualMapping
StrIndexList d_l2vMapping
 
StrIndexList d_v2lMapping
 
String d_textVisual
 

Detailed Description

fribidi based implementation of BiDiVisualMapping.

Member Function Documentation

BidiCharType CEGUI::FribidiVisualMapping::getBidiCharType ( const utf32  char_to_check) const
virtual

Gets the BiDi char type of a char.

Parameters
charToCheckThe utf32 character code that will be checked.
Returns
One of the BidiCharType enumerated values indicating the BiDi char type.

Implements CEGUI::BiDiVisualMapping.

bool CEGUI::FribidiVisualMapping::reorderFromLogicalToVisual ( const String logical,
String visual,
StrIndexList l2v,
StrIndexList v2l 
) const
virtual

Reorder a string from a logical (type order) bidi string to a visual (the way it displayed) string.

Parameters
logicalString object to be reordered.
visualString object containing the result reordered string.
l2vMappingList of integers that map the pos of each char from logical string in the visual string.
v2lMappingList of integers that map the pos of each char from visual string in the logical string.
Returns
  • true if successful.
  • false if the operation failed.

Implements CEGUI::BiDiVisualMapping.