OpenTTD Source  20241108-master-g80f628063a
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 ParagraphLayouterGetParagraphLayout (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 397 of file gfx_layout_icu.cpp.


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