LineEdit
classin packageklyn.gui.terminal
public class LineEdit extends Widget:
└ Widget
└ LineEdit

Single-line editable text widget.

Attributes inherited from Widget: lastRenderAnsi, lastRenderHeight, lastRenderPlain, lastRenderWidth, layout, visible
Properties
Modifier and Type Member Description
public property bgNormal
bgNormal as String = "\u001b[48;2;44;44;48m"
No summary.
public property cursorPosition
cursorPosition as Int = 0
No summary.
public property fgNormal
fgNormal as String = "\u001b[38;2;245;245;245m"
No summary.
public override readonly property focusable
focusable as Boolean:
No summary.
public override property focused
focused as Boolean:
No summary.
public property placeholder
placeholder as String = ""
No summary.
public property placeholderFg
placeholderFg as String = "\u001b[38;2;120;130;140m"
No summary.
public property text
text as String:
No summary.
Properties inherited from Widget: focusable, focused, lastRenderFrame, position, size
Properties inherited from Object: type
Constructors
Modifier and Type Member Description
public LineEdit
LineEdit(text as String = ""):
No summary.
Methods
Modifier and Type Member Description
public cursorDisplayColumn
cursorDisplayColumn() as Int:
No summary.
public override handleEvent
handleEvent(eventName as String) as Boolean:
No summary.
public override handleMouseEvent
handleMouseEvent(mouse as MouseEvent, localX as Int, localY as Int, viewWidth as Int, viewHeight as Int) as Boolean:
No summary.
public override paintToFrame
paintToFrame(frame as TerminalFrame, row as Int, col as Int, width as Int, height as Int) as Boolean:
No summary.
Methods inherited from Widget: add, baseAnsiStyle, captureRenderFrame, children, clearChildren, configureCursor, focusNext, handleEvent, handleMouseEvent, hasActiveTextInput, idle, paint, paintToFrame, performLayout, refresh, renderAnsiSnapshot, renderPlainSnapshot, scrollbarThumbGlyph, scrollbarTrackGlyph, terminalPromptVisible
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml