Connect to ChangeCase signal.
Connect to ChangeNumber signal.
Connect to JoinLines signal.
Connect to LineMarkActivated signal.
Connect to MoveLines signal.
Connect to MoveToMatchingBracket signal.
Connect to MoveWords signal.
Connect to Redo signal.
Connect to ShowCompletion signal.
Connect to SmartHomeEnd signal.
Connect to Undo signal.
Returns whether auto-indentation of text is enabled.
Returns the #GtkSourceBackgroundPatternType specifying if and how the background pattern should be displayed for this view.
Gets the #GtkSourceCompletion associated with view. The returned object is guaranteed to be the same for the lifetime of view. Each #GtkSourceView object has a different #GtkSourceCompletion.
Returns the #GtkSourceGutter 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.
Returns whether the current line is highlighted.
Returns whether when the tab key is pressed the current selection should get indented instead of replaced with the \t character.
Returns the number of spaces to use for each step of indent. See gtksource.view.View.setIndentWidth for details.
Returns whether when inserting a tabulator character it should be replaced by a group of space characters.
Gets attributes and priority for the category.
Gets the position of the right margin in the given view.
Returns whether line marks are displayed beside the text.
Returns whether line numbers are displayed beside the text.
Returns whether a right margin is displayed.
Returns true if pressing the Backspace key will try to delete spaces up to the previous tab stop.
Returns a #GtkSourceSmartHomeEndType end value specifying how the cursor will move when HOME and END keys are pressed.
Gets the #GtkSourceSpaceDrawer associated with view. The returned object is guaranteed to be the same for the lifetime of view. Each #GtkSourceView object has a different #GtkSourceSpaceDrawer.
Returns the width of tabulation in characters.
Determines the visual column at iter taking into consideration the #GtkSourceView:tab-width of view.
Inserts one indentation level at the beginning of the specified lines. The empty lines are not indented.
Returns this, for use in with statements.
If true auto-indentation of text is enabled.
Set if and how the background pattern should be displayed.
If highlight is true the current line will be highlighted.
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.
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 #GtkSourceView:tab-width property will be used.
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 #GtkTextBuffer API.
Sets attributes and priority for the category.
Sets the position of the right margin in the given view.
If true line marks will be displayed beside the text.
If true line numbers will be displayed beside the text.
If true a right margin is displayed.
When set to true, pressing the Backspace key will try to delete spaces up to the previous tab stop.
Set the desired movement of the cursor when HOME and END keys are pressed.
Sets the width of tabulation in characters. The #GtkTextBuffer still contains \t characters, but they can take a different visual width in a #GtkSourceView widget.
Removes one indentation level at the beginning of the specified lines.
Get backgroundPattern property.
Set backgroundPattern property.
Get completion property.
Get indentWidth property.
Set indentWidth property.
Get rightMarginPosition property.
Set rightMarginPosition property.
Get showLineMarks property.
Set showLineMarks property.
Get showLineNumbers property.
Set showLineNumbers property.
Get showRightMargin property.
Set showRightMargin property.
Get smartBackspace property.
Set smartBackspace property.
Get smartHomeEnd property.
Set smartHomeEnd property.
Get spaceDrawer property.
Get tabWidth property.
Set tabWidth property.
Get builder for gtksource.view.View
Creates a new #GtkSourceView widget displaying the buffer buffer. One buffer can be shared among many widgets.
Returns this, for use in with statements.
Get builder for gtk.text_view.TextView
Get bottomMargin property.
Set bottomMargin property.
Get imModule property.
Set imModule property.
Get inputHints property.
Set inputHints property.
Get inputPurpose property.
Set inputPurpose property.
Get leftMargin property.
Set leftMargin property.
Get populateAll property.
Set populateAll property.
Get rightMargin property.
Set rightMargin property.
Get topMargin property.
Set topMargin property.
Creates a new #GtkTextView widget displaying the buffer buffer. One buffer can be shared among many widgets. buffer may be null to create a default buffer, in which case this function is equivalent to gtk.text_view.TextView.new_. The text view adds its own reference count to the buffer; it does not take over an existing reference.
Adds a child widget in the text buffer, at the given anchor.
Adds a child at fixed coordinates in one of the text widget's windows.
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 #GtkTextBuffer.
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 #GtkTextBuffer.
Converts coordinate (buffer_x, buffer_y) to coordinates for the window win, and stores the result in (window_x, window_y).
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 #GtkTextBuffer.
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 #GtkTextBuffer.
Returns whether pressing the Tab key inserts a tab characters. gtk.text_view.TextView.setAcceptsTab.
Gets the width of the specified border window. See gtk.text_view.TextView.setBorderWindowSize.
Gets the bottom margin for text in the text_view.
Returns the #GtkTextBuffer 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.
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.
Find out whether the cursor should be displayed.
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 gtk.text_iter.TextIter.getAttributes in order to get the attributes in effect at a given text position.
Returns the default editability of the #GtkTextView. Tags in the buffer may override this setting for some ranges of text.
Gets the horizontal-scrolling #GtkAdjustment.
Gets the default indentation of paragraphs in text_view. Tags in the view’s buffer may override the default. The indentation may be negative.
Gets the value of the #GtkTextView:input-hints property.
Gets the value of the #GtkTextView:input-purpose property.
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 gtk.text_view.TextView.windowToBufferCoords.
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 gtk.text_view.TextView.windowToBufferCoords.
Gets a rectangle which roughly contains the character at iter. The rectangle position is in buffer coordinates; use gtk.text_view.TextView.bufferToWindowCoords to convert these coordinates to coordinates for one of the windows in the text view.
Gets the default justification of paragraphs in text_view. Tags in the buffer may override the default.
Gets the default left margin size of paragraphs in the text_view. Tags in the buffer may override the default.
Gets the #GtkTextIter at the start of the line containing the coordinate y. y is in buffer coordinates, convert from window coordinates with gtk.text_view.TextView.windowToBufferCoords. If non-null, line_top will be filled with the coordinate of the top edge of the line.
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 gtk.text_view.TextView.bufferToWindowCoords.
Gets the value of the #GtkTextView:monospace property.
Returns whether the #GtkTextView is in overwrite mode or not.
Gets the default number of pixels to put above paragraphs. Adding this function with gtk.text_view.TextView.getPixelsBelowLines is equal to the line space between each paragraph.
Gets the value set by gtk.text_view.TextView.setPixelsBelowLines.
Gets the value set by gtk.text_view.TextView.setPixelsInsideWrap.
Gets the default right margin for text in text_view. Tags in the buffer may override the default.
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.TabArray.free.
Gets the top margin for text in the text_view.
Gets the vertical-scrolling #GtkAdjustment.
Fills visible_rect with the currently-visible region of the buffer, in buffer coordinates. Convert to window coordinates with gtk.text_view.TextView.bufferToWindowCoords.
Retrieves the #GdkWindow 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.
Usually used to find out which window an event corresponds to.
Gets the line wrapping for the view.
Allow the #GtkTextView 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.imcontext.IMContext.filterKeypress.
Updates the position of a child, as for gtk.text_view.TextView.addChildInWindow.
Moves a mark within the buffer so that it's located within the currently-visible text area.
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.
Moves the cursor to the currently visible region of the buffer, it it isn’t there already.
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).
Reset the input method context of the text view if needed.
Scrolls text_view the minimum distance such that mark is contained within the visible area of the widget.
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.
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.
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.
Sets the width of gtk.types.TextWindowType.Left or gtk.types.TextWindowType.Right, or the height of gtk.types.TextWindowType.Top or gtk.types.TextWindowType.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.types.TextWindowType.Widget, gtk.types.TextWindowType.Text, or gtk.types.TextWindowType.Private.
Sets the bottom margin for text in text_view.
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; #GtkTextView will not “adopt” it.
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.
Sets the default editability of the #GtkTextView. You can override this default setting with tags in the buffer, using the “editable” attribute of tags.
Sets the default indentation for paragraphs in text_view. Tags in the buffer may override the default.
Sets the #GtkTextView:input-hints property, which allows input methods to fine-tune their behaviour.
Sets the #GtkTextView:input-purpose property which can be used by on-screen keyboards and other input methods to adjust their behaviour.
Sets the default justification of text in text_view. Tags in the view’s buffer may override the default.
Sets the default left margin for text in text_view. Tags in the buffer may override the default.
Sets the #GtkTextView:monospace property, which indicates that the text view should use monospace fonts.
Changes the #GtkTextView overwrite mode.
Sets the default number of blank pixels above paragraphs in text_view. Tags in the buffer for text_view may override the defaults.
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.
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.
Sets the default right margin for text in the text view. Tags in the buffer may override the default.
Sets the default tab stops for paragraphs in text_view. Tags in the buffer may override the default.
Sets the top margin for text in text_view.
Sets the line wrapping for the view.
Determines whether iter is at the start of a display line. See gtk.text_view.TextView.forwardDisplayLine for an explanation of display lines vs. paragraphs.
Converts coordinates on the window identified by win to buffer coordinates, storing the result in (buffer_x,buffer_y).
Connect to Backspace signal.
Connect to CopyClipboard signal.
Connect to CutClipboard signal.
Connect to DeleteFromCursor signal.
Connect to ExtendSelection signal.
Connect to InsertAtCursor signal.
Connect to InsertEmoji signal.
Connect to MoveCursor signal.
Connect to MoveViewport signal.
Connect to PasteClipboard signal.
Connect to PopulatePopup signal.
Connect to PreeditChanged signal.
Connect to SelectAll signal.
Connect to SetAnchor signal.
Connect to ToggleCursorVisible signal.
Connect to ToggleOverwrite signal.