|
OpenTTD Source 20260218-master-g2123fca5ea
|
A single line worth of VisualRuns. More...
Public Member Functions | |
| CoreTextLine (CFAutoRelease< CTLineRef > line, const FontMap &font_mapping, const CoreTextParagraphLayoutFactory::CharType *buff) | |
| int | GetLeading () const override |
| Get the height of the line. | |
| int | GetWidth () const override |
| Get the width of this line. | |
| size_t | CountRuns () const override |
| Get the number of runs in this line. | |
| const VisualRun & | GetVisualRun (size_t run) const override |
| Get a reference to the given run. | |
| int | GetInternalCharLength (char32_t c) const override |
| Get the number of elements the given character occupies in the underlying text buffer of the Layouter. | |
A single line worth of VisualRuns.
Definition at line 69 of file string_osx.cpp.
|
inline |
Definition at line 71 of file string_osx.cpp.
|
inlineoverridevirtual |
Get the number of runs in this line.
Implements ParagraphLayouter::Line.
Definition at line 87 of file string_osx.cpp.
|
inlineoverridevirtual |
Get the number of elements the given character occupies in the underlying text buffer of the Layouter.
Many use UTF-16 internally, meaning a character larger than MAX_UINT16 occupies two places in its buffer.
| c | The character to get the length for. |
Implements ParagraphLayouter::Line.
Definition at line 90 of file string_osx.cpp.
|
overridevirtual |
Get the height of the line.
Implements ParagraphLayouter::Line.
Definition at line 241 of file string_osx.cpp.
|
inlineoverridevirtual |
Get a reference to the given run.
| run | The index into the runs. |
Implements ParagraphLayouter::Line.
Definition at line 88 of file string_osx.cpp.
|
overridevirtual |
Get the width of this line.
Implements ParagraphLayouter::Line.
Definition at line 255 of file string_osx.cpp.