Skip to main content

Type Alias: GtkSourceViewProps

GtkSourceViewProps = Omit<GtkTextViewProps, "onNotify"> & object

Defined in: generated/jsx.ts:11039

Props for the GtkSourceView widget.

Type Declaration

NameTypeDescriptionDefined in
autoIndent?boolean-generated/jsx.ts:11040
backgroundPattern?GtkSource.BackgroundPatternTypeDraw a specific background pattern on the view.generated/jsx.ts:11042
children?ReactNode-generated/jsx.ts:11142
enableSnippets?booleanThe property denotes if snippets should be expanded when the user presses Tab after having typed a word matching the snippets found in GtkSourceSnippetManager. The user may tab through focus-positions of the snippet if any are available by pressing Tab repeatedly until the desired focus position is selected.generated/jsx.ts:11052
highlightCurrentLine?boolean-generated/jsx.ts:11053
indenter?GtkSource.Indenter | nullThe property is a GtkSourceIndenter to use to indent as the user types into the GtkSourceView.generated/jsx.ts:11061
indentOnTab?boolean-generated/jsx.ts:11054
indentWidth?numberWidth of an indentation step expressed in number of spaces.generated/jsx.ts:11056
insertSpacesInsteadOfTabs?boolean-generated/jsx.ts:11062
onChangeCase()?(self, caseType) => void | nullKeybinding signal to change case of the text at the current cursor position.generated/jsx.ts:11078
onChangeNumber()?(self, count) => void | nullKeybinding signal to edit a number at the current cursor position.generated/jsx.ts:11080
onJoinLines()?(self) => void | nullKeybinding signal to join the lines currently selected.generated/jsx.ts:11082
onLineMarkActivated()?(self, iter, button, state, nPresses) => void | nullEmitted when a line mark has been activated (for instance when there was a button press in the line marks gutter). You can use iter to determine on which line the activation took place.generated/jsx.ts:11089
onMoveLines()?(self, down) => void | nullThe signal is a keybinding which gets emitted when the user initiates moving a line. The default binding key is Alt+Up/Down arrow. And moves the currently selected lines, or the current line up or down by one line.generated/jsx.ts:11102
onMoveToMatchingBracket()?(self, extendSelection) => void | nullKeybinding signal to move the cursor to the matching bracket.generated/jsx.ts:11104
onMoveWords()?(self, count) => void | nullThe signal is a keybinding which gets emitted when the user initiates moving a word. The default binding key is Alt+Left/Right Arrow and moves the current selection, or the current word by one word.generated/jsx.ts:11111
onNotify?(self, propName) => void | nullCalled when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case)generated/jsx.ts:11148
onPushSnippet()?(self, snippet, location) => void | nullThe signal is emitted to insert a new snippet into the view. If another snippet was active, it will be paused until all focus positions of snippet have been exhausted. location will be updated to point at the end of the snippet.generated/jsx.ts:11119
onShowCompletion()?(self) => void | nullThe signal is a key binding signal which gets emitted when the user requests a completion, by pressing Controlspace. This will create a GtkSourceCompletionContext with the activation type as %GTK_SOURCE_COMPLETION_ACTIVATION_USER_REQUESTED. Applications should not connect to it, but may emit it with GObjectsignal_emit_by_name if they need to activate the completion by another means, for example with another key binding or a menu entry.generated/jsx.ts:11132
onSmartHomeEnd()?(self, iter, count) => void | nullEmitted when a the cursor was moved according to the smart home end setting. The signal is emitted after the cursor is moved, but during the TextView.:move-cursor action. This can be used to find out whether the cursor was moved by a normal home/end or by a smart home/end.generated/jsx.ts:11141
ref?Ref<GtkSource.View>-generated/jsx.ts:11169
rightMarginPosition?numberPosition of the right margin.generated/jsx.ts:11064
showLineMarks?booleanWhether to display line mark pixbufsgenerated/jsx.ts:11066
showLineNumbers?booleanWhether to display line numbersgenerated/jsx.ts:11068
showRightMargin?booleanWhether to display the right margin.generated/jsx.ts:11070
smartBackspace?booleanWhether smart Backspace should be used.generated/jsx.ts:11072
smartHomeEnd?GtkSource.SmartHomeEndTypeSet the behavior of the HOME and END keys.generated/jsx.ts:11074
tabWidth?numberWidth of a tab character expressed in number of spaces.generated/jsx.ts:11076