OpenTTD Source: ICUParagraphLayoutFactory Class Reference

OpenTTD Source 14.0-RC3

Public Types | Static Public Member Functions | Static Public Attributes | Static Private Attributes
ICUParagraphLayoutFactory Class Reference

Helper class to construct a new ICUParagraphLayout. More...

`#include <gfx_layout_icu.h>`

## Public Types
typedef UChar | CharType
| Helper for GetLayouter, to get the right type.

## Static Public Member Functions
static ParagraphLayouter * | GetParagraphLayout (UChar *buff, UChar *buff_end, FontMap &fontMapping)
static size_t | AppendToBuffer (UChar *buff, const UChar *buffer_last, char32_t c)
static void | InitializeLayouter ()
| Initialize data needed for the ICU layouter.
static std::unique_ptr< icu::BreakIterator > | GetBreakIterator ()
| Get a thread-safe line break iterator. More...

## Static Public Attributes
static const bool | SUPPORTS_RTL = true
| Helper for GetLayouter, to get whether the layouter supports RTL.

## Static Private Attributes
static std::unique_ptr< icu::BreakIterator > | break_iterator

## Detailed Description

Helper class to construct a new ICUParagraphLayout.

Definition at line 21 of file gfx_layout_icu.h.

## Member Function Documentation

## ◆ GetBreakIterator()

std::unique_ptr< icu::BreakIterator > ICUParagraphLayoutFactory::GetBreakIterator | ( |  | ) |
| static

Get a thread-safe line break iterator.

Returns
  unique_ptr managed BreakIterator instance.

Definition at line 401 of file gfx_layout_icu.cpp.

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

- src/gfx_layout_icu.h
- src/gfx_layout_icu.cpp