OpenTTD Source  1.11.2
FallbackParagraphLayoutFactory Class Reference

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

Public Types

typedef WChar CharType
 Helper for GetLayouter, to get the right type.
 

Static Public Member Functions

static ParagraphLayouterGetParagraphLayout (WChar *buff, WChar *buff_end, FontMap &fontMapping)
 Get the actual ParagraphLayout for the given buffer. More...
 
static size_t AppendToBuffer (WChar *buff, const WChar *buffer_last, WChar c)
 Append a wide character to the internal buffer. More...
 

Static Public Attributes

static const bool SUPPORTS_RTL = false
 Helper for GetLayouter, to get whether the layouter supports RTL.
 

Detailed Description

Helper class to construct a new FallbackParagraphLayout.

Definition at line 293 of file gfx_layout.cpp.

Member Function Documentation

◆ AppendToBuffer()

static size_t FallbackParagraphLayoutFactory::AppendToBuffer ( WChar buff,
const WChar buffer_last,
WChar  c 
)
inlinestatic

Append a wide character to the internal buffer.

Parameters
buffThe buffer to append to.
buffer_lastThe end of the buffer.
cThe character to add.
Returns
The number of buffer spaces that were used.

Definition at line 319 of file gfx_layout.cpp.

◆ GetParagraphLayout()

static ParagraphLayouter* FallbackParagraphLayoutFactory::GetParagraphLayout ( WChar buff,
WChar buff_end,
FontMap fontMapping 
)
inlinestatic

Get the actual ParagraphLayout for the given buffer.

Parameters
buffThe begin of the buffer.
buff_endThe location after the last element in the buffer.
fontMappingTHe mapping of the fonts.
Returns
The ParagraphLayout instance.

Definition at line 307 of file gfx_layout.cpp.


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