Type Alias: GtkSourceViewProps
GtkSourceViewProps =
Omit<GtkTextViewProps,"onNotify"> &object
Defined in: generated/jsx.ts:11039
Props for the GtkSourceView widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
autoIndent? | boolean | - | generated/jsx.ts:11040 |
backgroundPattern? | GtkSource.BackgroundPatternType | Draw a specific background pattern on the view. | generated/jsx.ts:11042 |
children? | ReactNode | - | generated/jsx.ts:11142 |
enableSnippets? | boolean | The 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 | null | The 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? | number | Width of an indentation step expressed in number of spaces. | generated/jsx.ts:11056 |
insertSpacesInsteadOfTabs? | boolean | - | generated/jsx.ts:11062 |
onChangeCase()? | (self, caseType) => void | null | Keybinding signal to change case of the text at the current cursor position. | generated/jsx.ts:11078 |
onChangeNumber()? | (self, count) => void | null | Keybinding signal to edit a number at the current cursor position. | generated/jsx.ts:11080 |
onJoinLines()? | (self) => void | null | Keybinding signal to join the lines currently selected. | generated/jsx.ts:11082 |
onLineMarkActivated()? | (self, iter, button, state, nPresses) => void | null | Emitted 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 | null | The 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 | null | Keybinding signal to move the cursor to the matching bracket. | generated/jsx.ts:11104 |
onMoveWords()? | (self, count) => void | null | The 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 | null | Called 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 | null | The 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 | null | The signal is a key binding signal which gets emitted when the user requests a completion, by pressing | generated/jsx.ts:11132 |
onSmartHomeEnd()? | (self, iter, count) => void | null | Emitted 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? | number | Position of the right margin. | generated/jsx.ts:11064 |
showLineMarks? | boolean | Whether to display line mark pixbufs | generated/jsx.ts:11066 |
showLineNumbers? | boolean | Whether to display line numbers | generated/jsx.ts:11068 |
showRightMargin? | boolean | Whether to display the right margin. | generated/jsx.ts:11070 |
smartBackspace? | boolean | Whether smart Backspace should be used. | generated/jsx.ts:11072 |
smartHomeEnd? | GtkSource.SmartHomeEndType | Set the behavior of the HOME and END keys. | generated/jsx.ts:11074 |
tabWidth? | number | Width of a tab character expressed in number of spaces. | generated/jsx.ts:11076 |