LMMS
Loading...
Searching...
No Matches
juce::TextEditor::Iterator Struct Reference

Public Member Functions

 Iterator (const TextEditor &ed)
 Iterator (const Iterator &)=default
Iteratoroperator= (const Iterator &)=delete
bool next ()
void beginNewLine ()
float getJustificationOffsetX (float lineWidth) const
void draw (Graphics &g, const UniformTextSection *&lastSection, AffineTransform transform) const
void drawUnderline (Graphics &g, Range< int > underline, Colour colour, AffineTransform transform) const
void drawSelectedText (Graphics &g, Range< int > selected, Colour selectedTextColour, AffineTransform transform) const
float indexToX (int indexToFind) const
int xToIndex (float xToFind) const
bool getCharPosition (int index, Point< float > &anchor, float &lineHeightFound)
float getYOffset ()
int getTotalTextHeight ()
int getTextRight ()
Rectangle< intgetTextBounds (Range< int > range) const

Public Attributes

int indexInText = 0
float lineY = 0
float lineHeight = 0
float maxDescent = 0
float atomX = 0
float atomRight = 0
const TextAtomatom = nullptr

Private Member Functions

bool chunkLongAtom (bool shouldStartNewLine)
void moveToEndOfLastAtom ()
bool shouldWrap (const float x) const noexcept

Private Attributes

const OwnedArray< UniformTextSection > & sections
const UniformTextSectioncurrentSection = nullptr
int sectionIndex = 0
int atomIndex = 0
Justification justification
const Point< float > bottomRight
const float wordWrapWidth
const juce_wchar passwordCharacter
const float lineSpacing
const bool underlineWhitespace
TextAtom longAtom

Constructor & Destructor Documentation

◆ Iterator() [1/2]

juce::TextEditor::Iterator::Iterator ( const TextEditor & ed)
inline

◆ Iterator() [2/2]

juce::TextEditor::Iterator::Iterator ( const Iterator & )
default

Member Function Documentation

◆ beginNewLine()

void juce::TextEditor::Iterator::beginNewLine ( )
inline

◆ chunkLongAtom()

bool juce::TextEditor::Iterator::chunkLongAtom ( bool shouldStartNewLine)
inlineprivate

◆ draw()

void juce::TextEditor::Iterator::draw ( Graphics & g,
const UniformTextSection *& lastSection,
AffineTransform transform ) const
inline

◆ drawSelectedText()

void juce::TextEditor::Iterator::drawSelectedText ( Graphics & g,
Range< int > selected,
Colour selectedTextColour,
AffineTransform transform ) const
inline

◆ drawUnderline()

void juce::TextEditor::Iterator::drawUnderline ( Graphics & g,
Range< int > underline,
Colour colour,
AffineTransform transform ) const
inline

◆ getCharPosition()

bool juce::TextEditor::Iterator::getCharPosition ( int index,
Point< float > & anchor,
float & lineHeightFound )
inline

◆ getJustificationOffsetX()

float juce::TextEditor::Iterator::getJustificationOffsetX ( float lineWidth) const
inline

◆ getTextBounds()

Rectangle< int > juce::TextEditor::Iterator::getTextBounds ( Range< int > range) const
inline

◆ getTextRight()

int juce::TextEditor::Iterator::getTextRight ( )
inline

◆ getTotalTextHeight()

int juce::TextEditor::Iterator::getTotalTextHeight ( )
inline

◆ getYOffset()

float juce::TextEditor::Iterator::getYOffset ( )
inline

◆ indexToX()

float juce::TextEditor::Iterator::indexToX ( int indexToFind) const
inline

◆ moveToEndOfLastAtom()

void juce::TextEditor::Iterator::moveToEndOfLastAtom ( )
inlineprivate

◆ next()

bool juce::TextEditor::Iterator::next ( )
inline

◆ operator=()

Iterator & juce::TextEditor::Iterator::operator= ( const Iterator & )
delete

◆ shouldWrap()

bool juce::TextEditor::Iterator::shouldWrap ( const float x) const
inlineprivatenoexcept

◆ xToIndex()

int juce::TextEditor::Iterator::xToIndex ( float xToFind) const
inline

Member Data Documentation

◆ atom

const TextAtom* juce::TextEditor::Iterator::atom = nullptr

◆ atomIndex

int juce::TextEditor::Iterator::atomIndex = 0
private

◆ atomRight

float juce::TextEditor::Iterator::atomRight = 0

◆ atomX

float juce::TextEditor::Iterator::atomX = 0

◆ bottomRight

const Point<float> juce::TextEditor::Iterator::bottomRight
private

◆ currentSection

const UniformTextSection* juce::TextEditor::Iterator::currentSection = nullptr
private

◆ indexInText

int juce::TextEditor::Iterator::indexInText = 0

◆ justification

Justification juce::TextEditor::Iterator::justification
private

◆ lineHeight

float juce::TextEditor::Iterator::lineHeight = 0

◆ lineSpacing

const float juce::TextEditor::Iterator::lineSpacing
private

◆ lineY

float juce::TextEditor::Iterator::lineY = 0

◆ longAtom

TextAtom juce::TextEditor::Iterator::longAtom
private

◆ maxDescent

float juce::TextEditor::Iterator::maxDescent = 0

◆ passwordCharacter

const juce_wchar juce::TextEditor::Iterator::passwordCharacter
private

◆ sectionIndex

int juce::TextEditor::Iterator::sectionIndex = 0
private

◆ sections

const OwnedArray<UniformTextSection>& juce::TextEditor::Iterator::sections
private

◆ underlineWhitespace

const bool juce::TextEditor::Iterator::underlineWhitespace
private

◆ wordWrapWidth

const float juce::TextEditor::Iterator::wordWrapWidth
private

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