class TextLineRenderer
package moonshine.editor.text.lines
extends FeathersControl
extended by LspTextLineRenderer
Displays the text for a specific line within a TextEditor
.
Constructor
Variables
backgroundSkin:DisplayObject
The default background skin to display behind the text line renderer's content.
breakpointGutterBackgroundSkin:DisplayObject
The optional background skin to display behind the gutter when a breakpoint has been added to this line.
breakpointSkin:DisplayObject
breakpointVerified:Bool
Determines if the current line's breakpoint is considered to be verified. If unverified, it may be displayed in a less prominent visual style.
See also:
caretIndex:Int
The character index of the caret on this line, or -1
, if the caret is
currently on a different line.
debuggerStoppedBackgroundSkin:DisplayObject
The background skin to display behind the text line renderer's content when the debugger is stopped at this line.
embedFonts:Bool
Determines if an embedded font is used for the text displayed by the text line renderer.
focusedBackgroundSkin:DisplayObject
The background skin to display behind the text line renderer's content when the line has focus.
gutterGap:Float
The space, measured in pixels, between items added to the renderer's gutter.
See also:
gutterPaddingLeft:Float
The space, measured in pixels, that appears on the left side of the gutter.
See also:
gutterPaddingRight:Float
The space, measured in pixels, that appears on the right side of the gutter.
See also:
linkEndChar:Int
The end character index of a link on this line, or -1
if
there is no link on this line.
See also:
linkStartChar:Int
The start character index of a link on this line, or -1
if
there is no link on this line.
See also:
selectedTextBackgroundSkin:DisplayObject
The background skin to display behind selected text.
selectedTextUnfocusedBackgroundSkin:DisplayObject
The background skin to display behind selected text when the text line renderer is not focused.
selectionEndIndex:Int
The end character index of this line's current selection, or -1
if
there is no selection on this line.
See also:
selectionStartIndex:Int
The start character index of this line's current selection, or -1
if
there is no selection on this line.
See also:
styleRanges:Array<Int>
Alternating text index values and identifiers from the textStyles
that
indicate ranges for syntax highlighting.
See also:
textStyles:Map<Int, TextFormat>
Maps identifiers for syntax highlighting styles to TextFormat
values.
See also:
unverifiedBreakpointSkin:DisplayObject
The skin to display an unverified breakpoint in the renderer's gutter.
See also:
selectedTextBackgroundSkinFactory:() ‑> DisplayObject
Creates background skins to display behind selected text.
selectedTextUnfocusedBackgroundSkinFactory:() ‑> DisplayObject
Creates background skins to display behind selected text.
Methods
getCharBoundaries(charIndex:Int):Rectangle
Returns the boundaries of the specified character index. If the index is out of the text length, returns null.
getCharIndexAtPoint(localX:Float, localY:Float):Int
Returns the character index of the specified local x/y point. If the
local point is out of bounds, returns -1
.
Similar to TextField.getCharIndexAtPoint()
getSelectionCharIndexAtPoint(localX:Float, localY:Float, returnNextAfterCenter:Bool = true):Int
Similar to getCharIndexAtPoint()
, but avoids returning -1
. When
out of bounds, returns either the first or last index.