OpenTTD Source  20240919-master-gdf0233f4c2
CoreTextParagraphLayout Class Reference

Wrapper for doing layouts with CoreText. More...

Inheritance diagram for CoreTextParagraphLayout:
ParagraphLayouter

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 &fontMapping)
 
void Reflow () override
 
std::unique_ptr< const LineNextLine (int max_width) override
 

Private Attributes

const CoreTextParagraphLayoutFactory::CharTypetext_buffer
 
ptrdiff_t length
 
const FontMapfont_map
 
CFAutoRelease< CTTypesetterRef > typesetter
 
CFIndex cur_offset = 0
 Offset from the start of the current run from where to output.
 

Detailed Description

Wrapper for doing layouts with CoreText.

Definition at line 59 of file string_osx.cpp.


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