|
OpenTTD Source 20260304-master-g1baaa74679
|
Wrapper for doing layouts with Uniscribe. More...
Data Structures | |
| class | UniscribeVisualRun |
| Visual run contains data about the bit of text with the same font. More... | |
| class | UniscribeLine |
| A single line worth of VisualRuns. More... | |
Public Member Functions | |
| UniscribeParagraphLayout (std::vector< UniscribeRun > &&ranges, const UniscribeParagraphLayoutFactory::CharType *buffer) | |
| void | Reflow () override |
| Reset the position to the start of the paragraph. | |
| std::unique_ptr< const Line > | NextLine (int max_width) override |
| Construct a new line with a maximum width. | |
| Public Member Functions inherited from ParagraphLayouter | |
| virtual | ~ParagraphLayouter ()=default |
| Ensure the destructor of the sub classes are called as well. | |
Private Attributes | |
| const UniscribeParagraphLayoutFactory::CharType * | text_buffer |
| std::vector< UniscribeRun > | ranges |
| All runs of the text. | |
| std::vector< UniscribeRun >::iterator | cur_range |
| The next run to be output. | |
| int | cur_range_offset = 0 |
| Offset from the start of the current run from where to output. | |
Wrapper for doing layouts with Uniscribe.
Definition at line 63 of file string_uniscribe.cpp.
|
inline |
Definition at line 114 of file string_uniscribe.cpp.
|
overridevirtual |
Construct a new line with a maximum width.
| max_width | The maximum width of the string. |
nullptr when at the end of the paragraph. Implements ParagraphLayouter.
Definition at line 331 of file string_uniscribe.cpp.
References cur_range, cur_range_offset, ranges, and UniscribeShapeRun().
|
inlineoverridevirtual |
Reset the position to the start of the paragraph.
Implements ParagraphLayouter.
Definition at line 121 of file string_uniscribe.cpp.
|
private |
The next run to be output.
Definition at line 68 of file string_uniscribe.cpp.
Referenced by NextLine().
|
private |
Offset from the start of the current run from where to output.
Definition at line 69 of file string_uniscribe.cpp.
Referenced by NextLine().
|
private |
|
private |
Definition at line 65 of file string_uniscribe.cpp.