openshot-audio  0.1.2
Public Member Functions | Public Attributes | List of all members
TextEditor::Iterator Class Reference

Public Member Functions

 Iterator (const OwnedArray< UniformTextSection > &sectionList, const float wrapWidth, const juce_wchar passwordChar)
 
 Iterator (const Iterator &other)
 
bool next ()
 
void beginNewLine ()
 
void draw (Graphics &g, const UniformTextSection *&lastSection) const
 
void addSelection (RectangleList< float > &area, const Range< int > selected) const
 
void drawUnderline (Graphics &g, const Range< int > underline, const Colour colour) const
 
void drawSelectedText (Graphics &g, const Range< int > selected, const Colour selectedTextColour) const
 
float indexToX (const int indexToFind) const
 
int xToIndex (const float xToFind) const
 
bool getCharPosition (const int index, float &cx, float &cy, float &lineHeightFound)
 

Public Attributes

int indexInText
 
float lineY
 
float lineHeight
 
float maxDescent
 
float atomX
 
float atomRight
 
const TextAtomatom
 
const UniformTextSectioncurrentSection
 

Constructor & Destructor Documentation

◆ Iterator() [1/2]

TextEditor::Iterator::Iterator ( const OwnedArray< UniformTextSection > &  sectionList,
const float  wrapWidth,
const juce_wchar  passwordChar 
)
inline

◆ Iterator() [2/2]

TextEditor::Iterator::Iterator ( const Iterator other)
inline

Member Function Documentation

◆ addSelection()

void TextEditor::Iterator::addSelection ( RectangleList< float > &  area,
const Range< int >  selected 
) const
inline

◆ beginNewLine()

void TextEditor::Iterator::beginNewLine ( )
inline

◆ draw()

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

◆ drawSelectedText()

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

◆ drawUnderline()

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

◆ getCharPosition()

bool TextEditor::Iterator::getCharPosition ( const int  index,
float &  cx,
float &  cy,
float &  lineHeightFound 
)
inline

◆ indexToX()

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

◆ next()

bool TextEditor::Iterator::next ( )
inline

◆ xToIndex()

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

Member Data Documentation

◆ atom

const TextAtom* TextEditor::Iterator::atom

◆ atomRight

float TextEditor::Iterator::atomRight

◆ atomX

float TextEditor::Iterator::atomX

◆ currentSection

const UniformTextSection* TextEditor::Iterator::currentSection

◆ indexInText

int TextEditor::Iterator::indexInText

◆ lineHeight

float TextEditor::Iterator::lineHeight

◆ lineY

float TextEditor::Iterator::lineY

◆ maxDescent

float TextEditor::Iterator::maxDescent

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