View

class View : TextView {}

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

Creates a new #GtkSourceView.

Members

Functions

connectChangeCase
gulong connectChangeCase(T callback, Flag!"After" after)

Connect to ChangeCase signal.

connectChangeNumber
gulong connectChangeNumber(T callback, Flag!"After" after)

Connect to ChangeNumber signal.

connectJoinLines
gulong connectJoinLines(T callback, Flag!"After" after)

Connect to JoinLines signal.

connectLineMarkActivated
gulong connectLineMarkActivated(T callback, Flag!"After" after)

Connect to LineMarkActivated signal.

connectMoveLines
gulong connectMoveLines(T callback, Flag!"After" after)

Connect to MoveLines signal.

connectMoveToMatchingBracket
gulong connectMoveToMatchingBracket(T callback, Flag!"After" after)

Connect to MoveToMatchingBracket signal.

connectMoveWords
gulong connectMoveWords(T callback, Flag!"After" after)

Connect to MoveWords signal.

connectRedo
gulong connectRedo(T callback, Flag!"After" after)

Connect to Redo signal.

connectShowCompletion
gulong connectShowCompletion(T callback, Flag!"After" after)

Connect to ShowCompletion signal.

connectSmartHomeEnd
gulong connectSmartHomeEnd(T callback, Flag!"After" after)

Connect to SmartHomeEnd signal.

connectUndo
gulong connectUndo(T callback, Flag!"After" after)

Connect to Undo signal.

getAutoIndent
bool getAutoIndent()

Returns whether auto-indentation of text is enabled.

getBackgroundPattern
gtksource.types.BackgroundPatternType getBackgroundPattern()

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

getCompletion
gtksource.completion.Completion getCompletion()

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.

getGutter
gtksource.gutter.Gutter getGutter(gtk.types.TextWindowType windowType)

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.

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 gtksource.view.View.setIndentWidth for details.

getInsertSpacesInsteadOfTabs
bool getInsertSpacesInsteadOfTabs()

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

getMarkAttributes
gtksource.mark_attributes.MarkAttributes 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
gtksource.types.SmartHomeEndType getSmartHomeEnd()

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

getSpaceDrawer
gtksource.space_drawer.SpaceDrawer getSpaceDrawer()

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.

getTabWidth
uint getTabWidth()

Returns the width of tabulation in characters.

getVisualColumn
uint getVisualColumn(gtk.text_iter.TextIter iter)

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

indentLines
void indentLines(gtk.text_iter.TextIter start, gtk.text_iter.TextIter end)

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

self
View self()

Returns this, for use in with statements.

setAutoIndent
void setAutoIndent(bool enable)

If true auto-indentation of text is enabled.

setBackgroundPattern
void setBackgroundPattern(gtksource.types.BackgroundPatternType backgroundPattern)

Set if and how the background pattern should be displayed.

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 #GtkSourceView: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 #GtkTextBuffer API.

setMarkAttributes
void setMarkAttributes(string category, gtksource.mark_attributes.MarkAttributes 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(gtksource.types.SmartHomeEndType 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 #GtkTextBuffer still contains \t characters, but they can take a different visual width in a #GtkSourceView widget.

unindentLines
void unindentLines(gtk.text_iter.TextIter start, gtk.text_iter.TextIter end)

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

Properties

_gType
GType _gType [@property getter]
autoIndent
bool autoIndent [@property getter]
autoIndent
bool autoIndent [@property setter]
backgroundPattern
gtksource.types.BackgroundPatternType backgroundPattern [@property getter]

Get backgroundPattern property.

backgroundPattern
gtksource.types.BackgroundPatternType backgroundPattern [@property setter]

Set backgroundPattern property.

completion
gtksource.completion.Completion completion [@property getter]

Get completion property.

highlightCurrentLine
bool highlightCurrentLine [@property getter]
highlightCurrentLine
bool highlightCurrentLine [@property setter]
indentOnTab
bool indentOnTab [@property getter]
indentOnTab
bool indentOnTab [@property setter]
indentWidth
int indentWidth [@property getter]

Get indentWidth property.

indentWidth
int indentWidth [@property setter]

Set indentWidth property.

insertSpacesInsteadOfTabs
bool insertSpacesInsteadOfTabs [@property getter]
insertSpacesInsteadOfTabs
bool insertSpacesInsteadOfTabs [@property setter]
rightMarginPosition
uint rightMarginPosition [@property getter]

Get rightMarginPosition property.

rightMarginPosition
uint rightMarginPosition [@property setter]

Set rightMarginPosition property.

showLineMarks
bool showLineMarks [@property getter]

Get showLineMarks property.

showLineMarks
bool showLineMarks [@property setter]

Set showLineMarks property.

showLineNumbers
bool showLineNumbers [@property getter]

Get showLineNumbers property.

showLineNumbers
bool showLineNumbers [@property setter]

Set showLineNumbers property.

showRightMargin
bool showRightMargin [@property getter]

Get showRightMargin property.

showRightMargin
bool showRightMargin [@property setter]

Set showRightMargin property.

smartBackspace
bool smartBackspace [@property getter]

Get smartBackspace property.

smartBackspace
bool smartBackspace [@property setter]

Set smartBackspace property.

smartHomeEnd
gtksource.types.SmartHomeEndType smartHomeEnd [@property getter]

Get smartHomeEnd property.

smartHomeEnd
gtksource.types.SmartHomeEndType smartHomeEnd [@property setter]

Set smartHomeEnd property.

spaceDrawer
gtksource.space_drawer.SpaceDrawer spaceDrawer [@property getter]

Get spaceDrawer property.

tabWidth
uint tabWidth [@property getter]

Get tabWidth property.

tabWidth
uint tabWidth [@property setter]

Set tabWidth property.

Static functions

_getGType
GType _getGType()
builder
ViewGidBuilder builder()

Get builder for gtksource.view.View

newWithBuffer
gtksource.view.View newWithBuffer(gtksource.buffer.Buffer buffer)

Creates a new #GtkSourceView widget displaying the buffer buffer. One buffer can be shared among many widgets.

Inherited Members

From TextView

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
TextView self()

Returns this, for use in with statements.

builder
TextViewGidBuilder builder()

Get builder for gtk.text_view.TextView

acceptsTab
bool acceptsTab [@property getter]
acceptsTab
bool acceptsTab [@property setter]
bottomMargin
int bottomMargin [@property getter]

Get bottomMargin property.

bottomMargin
int bottomMargin [@property setter]

Set bottomMargin property.

buffer
gtk.text_buffer.TextBuffer buffer [@property getter]
buffer
gtk.text_buffer.TextBuffer buffer [@property setter]
cursorVisible
bool cursorVisible [@property getter]
cursorVisible
bool cursorVisible [@property setter]
editable
bool editable [@property getter]
editable
bool editable [@property setter]
imModule
string imModule [@property getter]

Get imModule property.

imModule
string imModule [@property setter]

Set imModule property.

indent
int indent [@property getter]
indent
int indent [@property setter]
inputHints
gtk.types.InputHints inputHints [@property getter]

Get inputHints property.

inputHints
gtk.types.InputHints inputHints [@property setter]

Set inputHints property.

inputPurpose
gtk.types.InputPurpose inputPurpose [@property getter]

Get inputPurpose property.

inputPurpose
gtk.types.InputPurpose inputPurpose [@property setter]

Set inputPurpose property.

justification
gtk.types.Justification justification [@property getter]
justification
gtk.types.Justification justification [@property setter]
leftMargin
int leftMargin [@property getter]

Get leftMargin property.

leftMargin
int leftMargin [@property setter]

Set leftMargin property.

monospace
bool monospace [@property getter]
monospace
bool monospace [@property setter]
overwrite
bool overwrite [@property getter]
overwrite
bool overwrite [@property setter]
pixelsAboveLines
int pixelsAboveLines [@property getter]
pixelsAboveLines
int pixelsAboveLines [@property setter]
pixelsBelowLines
int pixelsBelowLines [@property getter]
pixelsBelowLines
int pixelsBelowLines [@property setter]
pixelsInsideWrap
int pixelsInsideWrap [@property getter]
pixelsInsideWrap
int pixelsInsideWrap [@property setter]
populateAll
bool populateAll [@property getter]

Get populateAll property.

populateAll
bool populateAll [@property setter]

Set populateAll property.

rightMargin
int rightMargin [@property getter]

Get rightMargin property.

rightMargin
int rightMargin [@property setter]

Set rightMargin property.

tabs
pango.tab_array.TabArray tabs [@property getter]
tabs
pango.tab_array.TabArray tabs [@property setter]
topMargin
int topMargin [@property getter]

Get topMargin property.

topMargin
int topMargin [@property setter]

Set topMargin property.

wrapMode
gtk.types.WrapMode wrapMode [@property getter]
wrapMode
gtk.types.WrapMode wrapMode [@property setter]
newWithBuffer
gtk.text_view.TextView newWithBuffer(gtk.text_buffer.TextBuffer buffer)

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.

addChildAtAnchor
void addChildAtAnchor(gtk.widget.Widget child, gtk.text_child_anchor.TextChildAnchor anchor)

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

addChildInWindow
void addChildInWindow(gtk.widget.Widget child, gtk.types.TextWindowType whichWindow, int xpos, int ypos)

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

backwardDisplayLine
bool backwardDisplayLine(gtk.text_iter.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 #GtkTextBuffer.

backwardDisplayLineStart
bool backwardDisplayLineStart(gtk.text_iter.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 #GtkTextBuffer.

bufferToWindowCoords
void bufferToWindowCoords(gtk.types.TextWindowType win, int bufferX, int bufferY, int windowX, 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(gtk.text_iter.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 #GtkTextBuffer.

forwardDisplayLineEnd
bool forwardDisplayLineEnd(gtk.text_iter.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 #GtkTextBuffer.

getAcceptsTab
bool getAcceptsTab()

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

getBorderWindowSize
int getBorderWindowSize(gtk.types.TextWindowType type)

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

getBottomMargin
int getBottomMargin()

Gets the bottom margin for text in the text_view.

getBuffer
gtk.text_buffer.TextBuffer getBuffer()

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.

getCursorLocations
void getCursorLocations(gtk.text_iter.TextIter iter, gdk.rectangle.Rectangle strong, gdk.rectangle.Rectangle 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
gtk.text_attributes.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 gtk.text_iter.TextIter.getAttributes in order to get the attributes in effect at a given text position.

getEditable
bool getEditable()

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

getHadjustment
gtk.adjustment.Adjustment getHadjustment()

Gets the horizontal-scrolling #GtkAdjustment.

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
gtk.types.InputHints getInputHints()

Gets the value of the #GtkTextView:input-hints property.

getInputPurpose
gtk.types.InputPurpose getInputPurpose()

Gets the value of the #GtkTextView:input-purpose property.

getIterAtLocation
bool getIterAtLocation(gtk.text_iter.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 gtk.text_view.TextView.windowToBufferCoords.

getIterAtPosition
bool getIterAtPosition(gtk.text_iter.TextIter iter, 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 gtk.text_view.TextView.windowToBufferCoords.

getIterLocation
void getIterLocation(gtk.text_iter.TextIter iter, gdk.rectangle.Rectangle location)

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.

getJustification
gtk.types.Justification 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(gtk.text_iter.TextIter targetIter, int y, int lineTop)

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.

getLineYrange
void getLineYrange(gtk.text_iter.TextIter iter, int y, 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 gtk.text_view.TextView.bufferToWindowCoords.

getMonospace
bool getMonospace()

Gets the value of the #GtkTextView:monospace property.

getOverwrite
bool getOverwrite()

Returns whether the #GtkTextView is in overwrite mode or not.

getPixelsAboveLines
int getPixelsAboveLines()

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.

getPixelsBelowLines
int getPixelsBelowLines()

Gets the value set by gtk.text_view.TextView.setPixelsBelowLines.

getPixelsInsideWrap
int getPixelsInsideWrap()

Gets the value set by gtk.text_view.TextView.setPixelsInsideWrap.

getRightMargin
int getRightMargin()

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

getTabs
pango.tab_array.TabArray 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.TabArray.free.

getTopMargin
int getTopMargin()

Gets the top margin for text in the text_view.

getVadjustment
gtk.adjustment.Adjustment getVadjustment()

Gets the vertical-scrolling #GtkAdjustment.

getVisibleRect
void getVisibleRect(gdk.rectangle.Rectangle visibleRect)

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

getWindow
gdk.window.Window getWindow(gtk.types.TextWindowType win)

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.

getWindowType
gtk.types.TextWindowType getWindowType(gdk.window.Window window)

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

getWrapMode
gtk.types.WrapMode getWrapMode()

Gets the line wrapping for the view.

imContextFilterKeypress
bool imContextFilterKeypress(gdk.event_key.EventKey event)

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.

moveChild
void moveChild(gtk.widget.Widget child, int xpos, int ypos)

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

moveMarkOnscreen
bool moveMarkOnscreen(gtk.text_mark.TextMark mark)

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

moveVisually
bool moveVisually(gtk.text_iter.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(gtk.text_mark.TextMark mark)

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

scrollToIter
bool scrollToIter(gtk.text_iter.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(gtk.text_mark.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(gtk.types.TextWindowType type, int size)

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.

setBottomMargin
void setBottomMargin(int bottomMargin)

Sets the bottom margin for text in text_view.

setBuffer
void setBuffer(gtk.text_buffer.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; #GtkTextView 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 #GtkTextView. 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(gtk.types.InputHints hints)

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

setInputPurpose
void setInputPurpose(gtk.types.InputPurpose purpose)

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

setJustification
void setJustification(gtk.types.Justification 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 #GtkTextView:monospace property, which indicates that the text view should use monospace fonts.

setOverwrite
void setOverwrite(bool overwrite)

Changes the #GtkTextView 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(pango.tab_array.TabArray 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(gtk.types.WrapMode wrapMode)

Sets the line wrapping for the view.

startsDisplayLine
bool startsDisplayLine(gtk.text_iter.TextIter iter)

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.

windowToBufferCoords
void windowToBufferCoords(gtk.types.TextWindowType win, int windowX, int windowY, int bufferX, int bufferY)

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

connectBackspace
gulong connectBackspace(T callback, Flag!"After" after)

Connect to Backspace signal.

connectCopyClipboard
gulong connectCopyClipboard(T callback, Flag!"After" after)

Connect to CopyClipboard signal.

connectCutClipboard
gulong connectCutClipboard(T callback, Flag!"After" after)

Connect to CutClipboard signal.

connectDeleteFromCursor
gulong connectDeleteFromCursor(T callback, Flag!"After" after)

Connect to DeleteFromCursor signal.

connectExtendSelection
gulong connectExtendSelection(T callback, Flag!"After" after)

Connect to ExtendSelection signal.

connectInsertAtCursor
gulong connectInsertAtCursor(T callback, Flag!"After" after)

Connect to InsertAtCursor signal.

connectInsertEmoji
gulong connectInsertEmoji(T callback, Flag!"After" after)

Connect to InsertEmoji signal.

connectMoveCursor
gulong connectMoveCursor(T callback, Flag!"After" after)

Connect to MoveCursor signal.

connectMoveViewport
gulong connectMoveViewport(T callback, Flag!"After" after)

Connect to MoveViewport signal.

connectPasteClipboard
gulong connectPasteClipboard(T callback, Flag!"After" after)

Connect to PasteClipboard signal.

connectPopulatePopup
gulong connectPopulatePopup(T callback, Flag!"After" after)

Connect to PopulatePopup signal.

connectPreeditChanged
gulong connectPreeditChanged(T callback, Flag!"After" after)

Connect to PreeditChanged signal.

connectSelectAll
gulong connectSelectAll(T callback, Flag!"After" after)

Connect to SelectAll signal.

connectSetAnchor
gulong connectSetAnchor(T callback, Flag!"After" after)

Connect to SetAnchor signal.

connectToggleCursorVisible
gulong connectToggleCursorVisible(T callback, Flag!"After" after)

Connect to ToggleCursorVisible signal.

connectToggleOverwrite
gulong connectToggleOverwrite(T callback, Flag!"After" after)

Connect to ToggleOverwrite signal.