OpenTTD
|
Helper class to construct a new CoreTextParagraphLayout. More...
#include <string_osx.h>
Public Types | |
typedef UniChar | CharType |
Helper for GetLayouter, to get the right type. More... | |
Static Public Member Functions | |
static ParagraphLayouter * | GetParagraphLayout (CharType *buff, CharType *buff_end, FontMap &fontMapping) |
Get the actual ParagraphLayout for the given buffer. More... | |
static size_t | AppendToBuffer (CharType *buff, const CharType *buffer_last, WChar c) |
Append a wide character to the internal buffer. More... | |
Static Public Attributes | |
static const bool | SUPPORTS_RTL = true |
Helper for GetLayouter, to get whether the layouter supports RTL. More... | |
Helper class to construct a new CoreTextParagraphLayout.
Definition at line 44 of file string_osx.h.
typedef UniChar CoreTextParagraphLayoutFactory::CharType |
Helper for GetLayouter, to get the right type.
Definition at line 47 of file string_osx.h.
|
inlinestatic |
Append a wide character to the internal buffer.
buff | The buffer to append to. |
buffer_last | The end of the buffer. |
c | The character to add. |
Definition at line 67 of file string_osx.h.
References MacOSResetScriptCache(), MacOSSetCurrentLocaleName(), and MacOSStringCompare().
|
static |
Get the actual ParagraphLayout for the given buffer.
buff | The begin of the buffer. |
buff_end | The location after the last element in the buffer. |
fontMapping | THe mapping of the fonts. |
Definition at line 131 of file string_osx.cpp.
References _font_cache, SmallVector< T, S >::Begin(), SmallVector< T, S >::End(), and MacOSVersionIsAtLeast().
|
static |
Helper for GetLayouter, to get whether the layouter supports RTL.
Definition at line 49 of file string_osx.h.