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

Public Member Functions

void cancelInfo ()
 
int compareTo (TextLayoutHitInfo other)
 
void copyFrom (TextLayoutHitInfo other)
 
void setInfo (TextLayoutInfo tli, TextHitInfo thi)
 
 TextLayoutHitInfo ()
 
 TextLayoutHitInfo (TextLayoutHitInfo tlhi)
 
 TextLayoutHitInfo (TextLayoutInfo tli)
 
 TextLayoutHitInfo (TextLayoutInfo tli, TextHitInfo thi)
 
String toString ()
 

Public Attributes

TextHitInfo thi
 
TextLayoutInfo tli
 

Detailed Description

For multi-line text, the TextHitInfo class is not enough. We also need information about the layout so that the caret(s) can be drawn.

Author
Peter Lager

Constructor & Destructor Documentation

◆ TextLayoutHitInfo() [1/4]

g4p_controls.StyledString.TextLayoutHitInfo.TextLayoutHitInfo ( )

Create an empty TextLayoutHitInfo object

◆ TextLayoutHitInfo() [2/4]

g4p_controls.StyledString.TextLayoutHitInfo.TextLayoutHitInfo ( TextLayoutInfo  tli)

Create a TextLayoutHitInfo object

Parameters
tlithe text layout info

◆ TextLayoutHitInfo() [3/4]

g4p_controls.StyledString.TextLayoutHitInfo.TextLayoutHitInfo ( TextLayoutInfo  tli,
TextHitInfo  thi 
)

Create a TextLayoutHitInfo object

Parameters
tlithe text layout info
thithe text hit information

◆ TextLayoutHitInfo() [4/4]

g4p_controls.StyledString.TextLayoutHitInfo.TextLayoutHitInfo ( TextLayoutHitInfo  tlhi)

Copy constructor

Parameters
tlhithe text layout hit info to copy.

Member Function Documentation

◆ cancelInfo()

void g4p_controls.StyledString.TextLayoutHitInfo.cancelInfo ( )

Empty this TextLayoutInfo instance

◆ compareTo()

int g4p_controls.StyledString.TextLayoutHitInfo.compareTo ( TextLayoutHitInfo  other)

Compare with another TextLayoutHitInfo instance

Returns
0 if the same

◆ copyFrom()

void g4p_controls.StyledString.TextLayoutHitInfo.copyFrom ( TextLayoutHitInfo  other)

Make this the same as another TextLayoutHitInfo object

Parameters
otherthe TextLayoutHitInfo object to copy

◆ setInfo()

void g4p_controls.StyledString.TextLayoutHitInfo.setInfo ( TextLayoutInfo  tli,
TextHitInfo  thi 
)

Set this TextLayoutHitInfo object to a known state

Parameters
tlithe text layout inof
thithe text hit information