SourceView

class SourceView : TextView {}

Constructors

this
this(GtkSourceView* gtkSourceView, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new gsv.SourceView

this
this(SourceBuffer buffer)

Creates a new gsv.SourceView widget displaying the buffer buffer. One buffer can be shared among many widgets.

Members

Functions

addOnChangeCase
gulong addOnChangeCase(void delegate(GtkSourceChangeCaseType, SourceView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

Keybinding signal to change case of the text at the current cursor position.

addOnChangeNumber
gulong addOnChangeNumber(void delegate(int, SourceView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

Keybinding signal to edit a number at the current cursor position.

addOnJoinLines
gulong addOnJoinLines(void delegate(SourceView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

Keybinding signal to join the lines currently selected.

addOnLineMarkActivated
gulong addOnLineMarkActivated(void delegate(TextIter, Event, SourceView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

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.

addOnMoveLines
gulong addOnMoveLines(void delegate(bool, int, SourceView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::move-lines 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 by count. For the moment, only count of -1 or 1 is valid.

addOnMoveToMatchingBracket
gulong addOnMoveToMatchingBracket(void delegate(bool, SourceView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

Keybinding signal to move the cursor to the matching bracket.

addOnMoveWords
gulong addOnMoveWords(void delegate(int, SourceView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::move-words 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.

addOnRedo
gulong addOnRedo(void delegate(SourceView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)
addOnShowCompletion
gulong addOnShowCompletion(void delegate(SourceView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::show-completion signal is a key binding signal which gets emitted when the user requests a completion, by pressing <keycombo><keycap>Control</keycap><keycap>space</keycap></keycombo>.

addOnSmartHomeEnd
gulong addOnSmartHomeEnd(void delegate(TextIter, int, SourceView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

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 GtkTextView::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.

addOnUndo
gulong addOnUndo(void delegate(SourceView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)
getAutoIndent
bool getAutoIndent()

Returns whether auto-indentation of text is enabled.

getBackgroundPattern
GtkSourceBackgroundPatternType getBackgroundPattern()

Returns the GtkSourceBackgroundPatternType specifying if and how the background pattern should be displayed for this view.

getBuffer
SourceBuffer getBuffer()

Returns the GtkSourceBuffer being displayed by this source view. The reference count on the buffer is not incremented; the caller of this function won't own a new reference.

getCompletion
SourceCompletion getCompletion()

Gets the gsv.SourceCompletion associated with view. The returned object is guaranteed to be the same for the lifetime of view. Each gsv.SourceView object has a different gsv.SourceCompletion

getDrawSpaces
GtkSourceDrawSpacesFlags getDrawSpaces()

Returns the GtkSourceDrawSpacesFlags specifying if and how spaces should be displayed for this view.

getGutter
SourceGutter getGutter(GtkTextWindowType windowType)

Returns the gsv.SourceGutter object associated with window_type for view. Only GTK_TEXT_WINDOW_LEFT and GTK_TEXT_WINDOW_RIGHT are supported, respectively corresponding to the left and right gutter. The line numbers and mark category icons are rendered in the left gutter.

getHighlightCurrentLine
bool getHighlightCurrentLine()

Returns whether the current line is highlighted.

getIndentOnTab
bool getIndentOnTab()

Returns whether when the tab key is pressed the current selection should get indented instead of replaced with the \t character.

getIndentWidth
int getIndentWidth()

Returns the number of spaces to use for each step of indent. See Source.viewSetIndentWidth for details.

getInsertSpacesInsteadOfTabs
bool getInsertSpacesInsteadOfTabs()

Returns whether when inserting a tabulator character it should be replaced by a group of space characters.

getMarkAttributes
SourceMarkAttributes getMarkAttributes(string category, int* priority)

Gets attributes and priority for the category.

getRightMarginPosition
uint getRightMarginPosition()

Gets the position of the right margin in the given view.

getShowLineMarks
bool getShowLineMarks()

Returns whether line marks are displayed beside the text.

getShowLineNumbers
bool getShowLineNumbers()

Returns whether line numbers are displayed beside the text.

getShowRightMargin
bool getShowRightMargin()

Returns whether a right margin is displayed.

getSmartBackspace
bool getSmartBackspace()

Returns TRUE if pressing the Backspace key will try to delete spaces up to the previous tab stop.

getSmartHomeEnd
GtkSourceSmartHomeEndType getSmartHomeEnd()

Returns a GtkSourceSmartHomeEndType end value specifying how the cursor will move when HOME and END keys are pressed.

getSourceViewStruct
GtkSourceView* getSourceViewStruct(bool transferOwnership = false)

Get the main Gtk struct

getSpaceDrawer
SpaceDrawer getSpaceDrawer()

Gets the GtkSourceSpaceDrawer associated with view. The returned object is guaranteed to be the same for the lifetime of view. Each gsv.SourceView object has a different GtkSourceSpaceDrawer

getStruct
void* getStruct()

the main Gtk struct as a void*

getTabWidth
uint getTabWidth()

Returns the width of tabulation in characters.

getVisualColumn
uint getVisualColumn(TextIter iter)

Determines the visual column at iter taking into consideration the tab-width of view.

indentLines
void indentLines(TextIter start, TextIter end)

Inserts one indentation level at the beginning of the specified lines. The empty lines are not indented.

setAutoIndent
void setAutoIndent(bool enable)

If TRUE auto-indentation of text is enabled.

setBackgroundPattern
void setBackgroundPattern(GtkSourceBackgroundPatternType backgroundPattern)

Set if and how the background pattern should be displayed.

setDrawSpaces
void setDrawSpaces(GtkSourceDrawSpacesFlags flags)

Set if and how the spaces should be visualized. Specifying flags as 0 will disable display of spaces.

setHighlightCurrentLine
void setHighlightCurrentLine(bool highlight)

If highlight is TRUE the current line will be highlighted.

setIndentOnTab
void setIndentOnTab(bool enable)

If TRUE, when the tab key is pressed when several lines are selected, the selected lines are indented of one level instead of being replaced with a \t character. Shift+Tab unindents the selection.

setIndentWidth
void setIndentWidth(int width)

Sets the number of spaces to use for each step of indent when the tab key is pressed. If width is -1, the value of the tab-width property will be used.

setInsertSpacesInsteadOfTabs
void setInsertSpacesInsteadOfTabs(bool enable)

If TRUE a tab key pressed is replaced by a group of space characters. Of course it is still possible to insert a real \t programmatically with the gtk.TextBuffer API.

setMarkAttributes
void setMarkAttributes(string category, SourceMarkAttributes attributes, int priority)

Sets attributes and priority for the category.

setRightMarginPosition
void setRightMarginPosition(uint pos)

Sets the position of the right margin in the given view.

setShowLineMarks
void setShowLineMarks(bool show)

If TRUE line marks will be displayed beside the text.

setShowLineNumbers
void setShowLineNumbers(bool show)

If TRUE line numbers will be displayed beside the text.

setShowRightMargin
void setShowRightMargin(bool show)

If TRUE a right margin is displayed.

setSmartBackspace
void setSmartBackspace(bool smartBackspace)

When set to TRUE, pressing the Backspace key will try to delete spaces up to the previous tab stop.

setSmartHomeEnd
void setSmartHomeEnd(GtkSourceSmartHomeEndType smartHomeEnd)

Set the desired movement of the cursor when HOME and END keys are pressed.

setTabWidth
void setTabWidth(uint width)

Sets the width of tabulation in characters. The gtk.TextBuffer still contains \t characters, but they can take a different visual width in a gsv.SourceView widget.

unindentLines
void unindentLines(TextIter start, TextIter end)

Removes one indentation level at the beginning of the specified lines.

Static functions

getType
GType getType()

Variables

gtkSourceView
GtkSourceView* gtkSourceView;

the main Gtk struct

Inherited Members

From TextView

gtkTextView
GtkTextView* gtkTextView;

the main Gtk struct

getTextViewStruct
GtkTextView* getTextViewStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getLineTextAt
string getLineTextAt(int y)

Get the text line at the pixel y

insertText
void insertText(string text)

Simply appends some on the cursor position

appendText
void appendText(string text, bool ensureVisible = true)

Simply appends some text to this view

getType
GType getType()
addChildAtAnchor
void addChildAtAnchor(Widget child, TextChildAnchor anchor)

Adds a child widget in the text buffer, at the given anchor.

addChildInWindow
void addChildInWindow(Widget child, GtkTextWindowType whichWindow, int xpos, int ypos)

Adds a child at fixed coordinates in one of the text widget's windows.

backwardDisplayLine
bool backwardDisplayLine(TextIter iter)

Moves the given iter backward by one display (wrapped) line. A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the view’s width; paragraphs are the same in all views, since they depend on the contents of the gtk.TextBuffer

backwardDisplayLineStart
bool backwardDisplayLineStart(TextIter iter)

Moves the given iter backward to the next display line start. A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the view’s width; paragraphs are the same in all views, since they depend on the contents of the gtk.TextBuffer

bufferToWindowCoords
void bufferToWindowCoords(GtkTextWindowType win, int bufferX, int bufferY, out int windowX, out int windowY)

Converts coordinate (buffer_x, buffer_y) to coordinates for the window win, and stores the result in (window_x, window_y).

forwardDisplayLine
bool forwardDisplayLine(TextIter iter)

Moves the given iter forward by one display (wrapped) line. A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the view’s width; paragraphs are the same in all views, since they depend on the contents of the gtk.TextBuffer

forwardDisplayLineEnd
bool forwardDisplayLineEnd(TextIter iter)

Moves the given iter forward to the next display line end. A display line is different from a paragraph. Paragraphs are separated by newlines or other paragraph separator characters. Display lines are created by line-wrapping a paragraph. If wrapping is turned off, display lines and paragraphs will be the same. Display lines are divided differently for each view, since they depend on the view’s width; paragraphs are the same in all views, since they depend on the contents of the gtk.TextBuffer

getAcceptsTab
bool getAcceptsTab()

Returns whether pressing the Tab key inserts a tab characters. TextView.setAcceptsTab.

getBorderWindowSize
int getBorderWindowSize(GtkTextWindowType type)

Gets the width of the specified border window. See TextView.setBorderWindowSize.

getBottomMargin
int getBottomMargin()

Gets the bottom margin for text in the text_view.

getBuffer
TextBuffer getBuffer()

Returns the gtk.TextBuffer being displayed by this text view. The reference count on the buffer is not incremented; the caller of this function won’t own a new reference.

getCursorLocations
void getCursorLocations(TextIter iter, out GdkRectangle strong, out GdkRectangle weak)

Given an iter within a text layout, determine the positions of the strong and weak cursors if the insertion point is at that iterator. The position of each cursor is stored as a zero-width rectangle. The strong cursor location is the location where characters of the directionality equal to the base direction of the paragraph are inserted. The weak cursor location is the location where characters of the directionality opposite to the base direction of the paragraph are inserted.

getCursorVisible
bool getCursorVisible()

Find out whether the cursor should be displayed.

getDefaultAttributes
TextAttributes getDefaultAttributes()

Obtains a copy of the default text attributes. These are the attributes used for text unless a tag overrides them. You’d typically pass the default attributes in to TextIter.getAttributes in order to get the attributes in effect at a given text position.

getEditable
bool getEditable()

Returns the default editability of the gtk.TextView Tags in the buffer may override this setting for some ranges of text.

getIndent
int getIndent()

Gets the default indentation of paragraphs in text_view. Tags in the view’s buffer may override the default. The indentation may be negative.

getInputHints
GtkInputHints getInputHints()

Gets the value of the input-hints property.

getInputPurpose
GtkInputPurpose getInputPurpose()

Gets the value of the input-purpose property.

getIterAtLocation
bool getIterAtLocation(out TextIter iter, int x, int y)

Retrieves the iterator at buffer coordinates x and y. Buffer coordinates are coordinates for the entire buffer, not just the currently-displayed portion. If you have coordinates from an event, you have to convert those to buffer coordinates with TextView.windowToBufferCoords.

getIterAtPosition
bool getIterAtPosition(out TextIter iter, out int trailing, int x, int y)

Retrieves the iterator pointing to the character at buffer coordinates x and y. Buffer coordinates are coordinates for the entire buffer, not just the currently-displayed portion. If you have coordinates from an event, you have to convert those to buffer coordinates with TextView.windowToBufferCoords.

getIterLocation
void getIterLocation(TextIter iter, out GdkRectangle location)

Gets a rectangle which roughly contains the character at iter. The rectangle position is in buffer coordinates; use TextView.bufferToWindowCoords to convert these coordinates to coordinates for one of the windows in the text view.

getJustification
GtkJustification getJustification()

Gets the default justification of paragraphs in text_view. Tags in the buffer may override the default.

getLeftMargin
int getLeftMargin()

Gets the default left margin size of paragraphs in the text_view. Tags in the buffer may override the default.

getLineAtY
void getLineAtY(out TextIter targetIter, int y, out int lineTop)

Gets the gtk.TextIter at the start of the line containing the coordinate y. y is in buffer coordinates, convert from window coordinates with TextView.windowToBufferCoords. If non-NULL, line_top will be filled with the coordinate of the top edge of the line.

getLineYrange
void getLineYrange(TextIter iter, out int y, out int height)

Gets the y coordinate of the top of the line containing iter, and the height of the line. The coordinate is a buffer coordinate; convert to window coordinates with TextView.bufferToWindowCoords.

getMonospace
bool getMonospace()

Gets the value of the monospace property.

getOverwrite
bool getOverwrite()

Returns whether the gtk.TextView is in overwrite mode or not.

getPixelsAboveLines
int getPixelsAboveLines()

Gets the default number of pixels to put above paragraphs. Adding this function with TextView.getPixelsBelowLines is equal to the line space between each paragraph.

getPixelsBelowLines
int getPixelsBelowLines()

Gets the value set by TextView.setPixelsBelowLines.

getPixelsInsideWrap
int getPixelsInsideWrap()

Gets the value set by TextView.setPixelsInsideWrap.

getRightMargin
int getRightMargin()

Gets the default right margin for text in text_view. Tags in the buffer may override the default.

getTabs
PgTabArray getTabs()

Gets the default tabs for text_view. Tags in the buffer may override the defaults. The returned array will be NULL if “standard” (8-space) tabs are used. Free the return value with pango_tab_array_free().

getTopMargin
int getTopMargin()

Gets the top margin for text in the text_view.

getVisibleRect
void getVisibleRect(out GdkRectangle visibleRect)

Fills visible_rect with the currently-visible region of the buffer, in buffer coordinates. Convert to window coordinates with TextView.bufferToWindowCoords.

getWindow
Window getWindow(GtkTextWindowType win)

Retrieves the gdk.Window corresponding to an area of the text view; possible windows include the overall widget window, child windows on the left, right, top, bottom, and the window that displays the text buffer. Windows are NULL and nonexistent if their width or height is 0, and are nonexistent before the widget has been realized.

getWindowType
GtkTextWindowType getWindowType(Window window)

Usually used to find out which window an event corresponds to.

getWrapMode
GtkWrapMode getWrapMode()

Gets the line wrapping for the view.

imContextFilterKeypress
bool imContextFilterKeypress(GdkEventKey* event)

Allow the gtk.TextView input method to internally handle key press and release events. If this function returns TRUE, then no further processing should be done for this key event. See gtk_im_context_filter_keypress().

moveChild
void moveChild(Widget child, int xpos, int ypos)

Updates the position of a child, as for TextView.addChildInWindow.

moveMarkOnscreen
bool moveMarkOnscreen(TextMark mark)

Moves a mark within the buffer so that it's located within the currently-visible text area.

moveVisually
bool moveVisually(TextIter iter, int count)

Move the iterator a given number of characters visually, treating it as the strong cursor position. If count is positive, then the new strong cursor position will be count positions to the right of the old cursor position. If count is negative then the new strong cursor position will be count positions to the left of the old cursor position.

placeCursorOnscreen
bool placeCursorOnscreen()

Moves the cursor to the currently visible region of the buffer, it it isn’t there already.

resetCursorBlink
void resetCursorBlink()

Ensures that the cursor is shown (i.e. not in an 'off' blink interval) and resets the time that it will stay blinking (or visible, in case blinking is disabled).

resetImContext
void resetImContext()

Reset the input method context of the text view if needed.

scrollMarkOnscreen
void scrollMarkOnscreen(TextMark mark)

Scrolls text_view the minimum distance such that mark is contained within the visible area of the widget.

scrollToIter
bool scrollToIter(TextIter iter, double withinMargin, bool useAlign, double xalign, double yalign)

Scrolls text_view so that iter is on the screen in the position indicated by xalign and yalign. An alignment of 0.0 indicates left or top, 1.0 indicates right or bottom, 0.5 means center. If use_align is FALSE, the text scrolls the minimal distance to get the mark onscreen, possibly not scrolling at all. The effective screen for purposes of this function is reduced by a margin of size within_margin.

scrollToMark
void scrollToMark(TextMark mark, double withinMargin, bool useAlign, double xalign, double yalign)

Scrolls text_view so that mark is on the screen in the position indicated by xalign and yalign. An alignment of 0.0 indicates left or top, 1.0 indicates right or bottom, 0.5 means center. If use_align is FALSE, the text scrolls the minimal distance to get the mark onscreen, possibly not scrolling at all. The effective screen for purposes of this function is reduced by a margin of size within_margin.

setAcceptsTab
void setAcceptsTab(bool acceptsTab)

Sets the behavior of the text widget when the Tab key is pressed. If accepts_tab is TRUE, a tab character is inserted. If accepts_tab is FALSE the keyboard focus is moved to the next widget in the focus chain.

setBorderWindowSize
void setBorderWindowSize(GtkTextWindowType type, int size)

Sets the width of GTK_TEXT_WINDOW_LEFT or GTK_TEXT_WINDOW_RIGHT, or the height of GTK_TEXT_WINDOW_TOP or GTK_TEXT_WINDOW_BOTTOM. Automatically destroys the corresponding window if the size is set to 0, and creates the window if the size is set to non-zero. This function can only be used for the “border windows”, and it won’t work with GTK_TEXT_WINDOW_WIDGET, GTK_TEXT_WINDOW_TEXT, or GTK_TEXT_WINDOW_PRIVATE.

setBottomMargin
void setBottomMargin(int bottomMargin)

Sets the bottom margin for text in text_view.

setBuffer
void setBuffer(TextBuffer buffer)

Sets buffer as the buffer being displayed by text_view. The previous buffer displayed by the text view is unreferenced, and a reference is added to buffer. If you owned a reference to buffer before passing it to this function, you must remove that reference yourself; gtk.TextView will not “adopt” it.

setCursorVisible
void setCursorVisible(bool setting)

Toggles whether the insertion point should be displayed. A buffer with no editable text probably shouldn’t have a visible cursor, so you may want to turn the cursor off.

setEditable
void setEditable(bool setting)

Sets the default editability of the gtk.TextView You can override this default setting with tags in the buffer, using the “editable” attribute of tags.

setIndent
void setIndent(int indent)

Sets the default indentation for paragraphs in text_view. Tags in the buffer may override the default.

setInputHints
void setInputHints(GtkInputHints hints)

Sets the input-hints property, which allows input methods to fine-tune their behaviour.

setInputPurpose
void setInputPurpose(GtkInputPurpose purpose)

Sets the input-purpose property which can be used by on-screen keyboards and other input methods to adjust their behaviour.

setJustification
void setJustification(GtkJustification justification)

Sets the default justification of text in text_view. Tags in the view’s buffer may override the default.

setLeftMargin
void setLeftMargin(int leftMargin)

Sets the default left margin for text in text_view. Tags in the buffer may override the default.

setMonospace
void setMonospace(bool monospace)

Sets the monospace property, which indicates that the text view should use monospace fonts.

setOverwrite
void setOverwrite(bool overwrite)

Changes the gtk.TextView overwrite mode.

setPixelsAboveLines
void setPixelsAboveLines(int pixelsAboveLines)

Sets the default number of blank pixels above paragraphs in text_view. Tags in the buffer for text_view may override the defaults.

setPixelsBelowLines
void setPixelsBelowLines(int pixelsBelowLines)

Sets the default number of pixels of blank space to put below paragraphs in text_view. May be overridden by tags applied to text_view’s buffer.

setPixelsInsideWrap
void setPixelsInsideWrap(int pixelsInsideWrap)

Sets the default number of pixels of blank space to leave between display/wrapped lines within a paragraph. May be overridden by tags in text_view’s buffer.

setRightMargin
void setRightMargin(int rightMargin)

Sets the default right margin for text in the text view. Tags in the buffer may override the default.

setTabs
void setTabs(PgTabArray tabs)

Sets the default tab stops for paragraphs in text_view. Tags in the buffer may override the default.

setTopMargin
void setTopMargin(int topMargin)

Sets the top margin for text in text_view.

setWrapMode
void setWrapMode(GtkWrapMode wrapMode)

Sets the line wrapping for the view.

startsDisplayLine
bool startsDisplayLine(TextIter iter)

Determines whether iter is at the start of a display line. See TextView.forwardDisplayLine for an explanation of display lines vs. paragraphs.

windowToBufferCoords
void windowToBufferCoords(GtkTextWindowType win, int windowX, int windowY, out int bufferX, out int bufferY)

Converts coordinates on the window identified by win to buffer coordinates, storing the result in (buffer_x,buffer_y).

addOnBackspace
gulong addOnBackspace(void delegate(TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::backspace signal is a [keybinding signal]GtkBindingSignal which gets emitted when the user asks for it.

addOnCopyClipboard
gulong addOnCopyClipboard(void delegate(TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::copy-clipboard signal is a [keybinding signal]GtkBindingSignal which gets emitted to copy the selection to the clipboard.

addOnCutClipboard
gulong addOnCutClipboard(void delegate(TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::cut-clipboard signal is a [keybinding signal]GtkBindingSignal which gets emitted to cut the selection to the clipboard.

addOnDeleteFromCursor
gulong addOnDeleteFromCursor(void delegate(GtkDeleteType, int, TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::delete-from-cursor signal is a [keybinding signal]GtkBindingSignal which gets emitted when the user initiates a text deletion.

addOnExtendSelection
gulong addOnExtendSelection(bool delegate(GtkTextExtendSelection, TextIter, TextIter, TextIter, TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::extend-selection signal is emitted when the selection needs to be extended at location.

addOnInsertAtCursor
gulong addOnInsertAtCursor(void delegate(string, TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::insert-at-cursor signal is a [keybinding signal]GtkBindingSignal which gets emitted when the user initiates the insertion of a fixed string at the cursor.

addOnInsertEmoji
gulong addOnInsertEmoji(void delegate(TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::insert-emoji signal is a [keybinding signal]GtkBindingSignal which gets emitted to present the Emoji chooser for the text_view.

addOnMoveCursor
gulong addOnMoveCursor(void delegate(GtkMovementStep, int, bool, TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::move-cursor signal is a [keybinding signal]GtkBindingSignal which gets emitted when the user initiates a cursor movement. If the cursor is not visible in text_view, this signal causes the viewport to be moved instead.

addOnMoveViewport
gulong addOnMoveViewport(void delegate(GtkScrollStep, int, TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::move-viewport signal is a [keybinding signal]GtkBindingSignal which can be bound to key combinations to allow the user to move the viewport, i.e. change what part of the text view is visible in a containing scrolled window.

addOnPasteClipboard
gulong addOnPasteClipboard(void delegate(TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::paste-clipboard signal is a [keybinding signal]GtkBindingSignal which gets emitted to paste the contents of the clipboard into the text view.

addOnPopulatePopup
gulong addOnPopulatePopup(void delegate(Widget, TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::populate-popup signal gets emitted before showing the context menu of the text view.

addOnPreeditChanged
gulong addOnPreeditChanged(void delegate(string, TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

If an input method is used, the typed text will not immediately be committed to the buffer. So if you are interested in the text, connect to this signal.

addOnSelectAll
gulong addOnSelectAll(void delegate(bool, TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::select-all signal is a [keybinding signal]GtkBindingSignal which gets emitted to select or unselect the complete contents of the text view.

addOnSetAnchor
gulong addOnSetAnchor(void delegate(TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::set-anchor signal is a [keybinding signal]GtkBindingSignal which gets emitted when the user initiates setting the "anchor" mark. The "anchor" mark gets placed at the same position as the "insert" mark.

addOnToggleCursorVisible
gulong addOnToggleCursorVisible(void delegate(TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::toggle-cursor-visible signal is a [keybinding signal]GtkBindingSignal which gets emitted to toggle the cursor-visible property.

addOnToggleOverwrite
gulong addOnToggleOverwrite(void delegate(TextView) dlg, ConnectFlags connectFlags = cast(ConnectFlags)0)

The ::toggle-overwrite signal is a [keybinding signal]GtkBindingSignal which gets emitted to toggle the overwrite mode of the text view.

Meta