G4P (GUI for Processing) 4.3.11
A set of GUI controls for your Processing sketch.
|
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 |
Class to hold information about a text layout. This class helps simplify the algorithms needed for multi-line text.
g4p_controls.StyledString.TextLayoutInfo.TextLayoutInfo | ( | int | lineNo, |
TextLayout | layout, | ||
int | startCharIndex, | ||
int | nbrChars, | ||
float | yPosInPara | ||
) |
lineNo | the line number |
layout | the matching text layout |
startCharIndex | Position of the first char in text |
nbrChars | Number of chars in this layout |
yPosInPara | Top-left corner of bounds |