|
OpenTTD Source 20251116-master-g21329071df
|
Wrapper for doing layouts with CoreText. More...
Data Structures | |
| class | CoreTextLine |
| A single line worth of VisualRuns. More... | |
| class | CoreTextVisualRun |
| Visual run contains data about the bit of text with the same font. More... | |
Public Member Functions | |
| CoreTextParagraphLayout (CFAutoRelease< CTTypesetterRef > typesetter, const CoreTextParagraphLayoutFactory::CharType *buffer, ptrdiff_t len, const FontMap &font_mapping) | |
| void | Reflow () override |
| std::unique_ptr< const Line > | NextLine (int max_width) override |
Private Attributes | |
| const CoreTextParagraphLayoutFactory::CharType * | text_buffer |
| ptrdiff_t | length |
| const FontMap & | font_map |
| CFAutoRelease< CTTypesetterRef > | typesetter |
| CFIndex | cur_offset = 0 |
| Offset from the start of the current run from where to output. | |
Wrapper for doing layouts with CoreText.
Definition at line 61 of file string_osx.cpp.
|
inline |
Definition at line 125 of file string_osx.cpp.
|
overridevirtual |
Implements ParagraphLayouter.
Definition at line 217 of file string_osx.cpp.
|
inlineoverridevirtual |
Implements ParagraphLayouter.
Definition at line 130 of file string_osx.cpp.
|
private |
Offset from the start of the current run from where to output.
Definition at line 69 of file string_osx.cpp.
|
private |
Definition at line 65 of file string_osx.cpp.
|
private |
Definition at line 64 of file string_osx.cpp.
|
private |
Definition at line 63 of file string_osx.cpp.
|
private |
Definition at line 67 of file string_osx.cpp.