G4P (GUI for Processing) 4.3.11
A set of GUI controls for your Processing sketch.
Loading...
Searching...
No Matches
g4p_controls.StyledString.TextLayoutInfo Class Reference
Inheritance diagram for g4p_controls.StyledString.TextLayoutInfo:

Public Member Functions

int compareTo (TextLayoutInfo other)
 
 TextLayoutInfo (int lineNo, TextLayout layout, int startCharIndex, int nbrChars, float yPosInPara)
 

Public Attributes

final TextLayout layout
 
final int lineNo
 
final int nbrChars
 
final int startCharIndex
 
final float yPosInPara
 

Detailed Description

Class to hold information about a text layout. This class helps simplify the algorithms needed for multi-line text.

Author
Peter Lager

Constructor & Destructor Documentation

◆ TextLayoutInfo()

g4p_controls.StyledString.TextLayoutInfo.TextLayoutInfo ( int  lineNo,
TextLayout  layout,
int  startCharIndex,
int  nbrChars,
float  yPosInPara 
)
Parameters
lineNothe line number
layoutthe matching text layout
startCharIndexPosition of the first char in text
nbrCharsNumber of chars in this layout
yPosInParaTop-left corner of bounds