LMMS
Loading...
Searching...
No Matches
juce::TextLayoutHelpers::TokenList Struct Reference

Public Member Functions

 TokenList () noexcept
void createLayout (const AttributedString &text, TextLayout &layout)

Private Member Functions

void appendText (const String &stringText, const Font &font, Colour colour)
void layoutRuns (float maxWidth, float extraLineSpacing, AttributedString::WordWrap wordWrap)
void setLastLineHeight (int i, float height) noexcept
void addTextRuns (const AttributedString &text)

Static Private Member Functions

static void addRun (TextLayout::Line &glyphLine, TextLayout::Run *glyphRun, const Token &t, int start, int end)
static int getCharacterType (juce_wchar c) noexcept
static String getTrimmedEndIfNotAllWhitespace (const String &s)

Private Attributes

OwnedArray< Tokentokens
int totalLines = 0

Constructor & Destructor Documentation

◆ TokenList()

juce::TextLayoutHelpers::TokenList::TokenList ( )
inlinenoexcept

Member Function Documentation

◆ addRun()

void juce::TextLayoutHelpers::TokenList::addRun ( TextLayout::Line & glyphLine,
TextLayout::Run * glyphRun,
const Token & t,
int start,
int end )
inlinestaticprivate

◆ addTextRuns()

void juce::TextLayoutHelpers::TokenList::addTextRuns ( const AttributedString & text)
inlineprivate

◆ appendText()

void juce::TextLayoutHelpers::TokenList::appendText ( const String & stringText,
const Font & font,
Colour colour )
inlineprivate

◆ createLayout()

void juce::TextLayoutHelpers::TokenList::createLayout ( const AttributedString & text,
TextLayout & layout )
inline

◆ getCharacterType()

int juce::TextLayoutHelpers::TokenList::getCharacterType ( juce_wchar c)
inlinestaticprivatenoexcept

◆ getTrimmedEndIfNotAllWhitespace()

String juce::TextLayoutHelpers::TokenList::getTrimmedEndIfNotAllWhitespace ( const String & s)
inlinestaticprivate

◆ layoutRuns()

void juce::TextLayoutHelpers::TokenList::layoutRuns ( float maxWidth,
float extraLineSpacing,
AttributedString::WordWrap wordWrap )
inlineprivate

◆ setLastLineHeight()

void juce::TextLayoutHelpers::TokenList::setLastLineHeight ( int i,
float height )
inlineprivatenoexcept

Member Data Documentation

◆ tokens

OwnedArray<Token> juce::TextLayoutHelpers::TokenList::tokens
private

◆ totalLines

int juce::TextLayoutHelpers::TokenList::totalLines = 0
private

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