gtk.text_view

Module for [TextView] class

Types 3

You may wish to begin by reading the text widget conceptual overview which gives an overview of all the objects and data types related to the text widget and how they work together.

CSS nodes

textview.view
├── border.top
├── border.left
├── text
│   ╰── [selection]
├── border.right
├── border.bottom
╰── [window.popup]

GtkTextView has a main css node with name textview and style class .view, and subnodes for each of the border windows, and the main text area, with names border and text, respectively. The border nodes each get one of the style classes .left, .right, .top or .bottom.

A node representing the selection will appear below the text node.

If a context menu is opened, the window node will appear as a subnode of the main node.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
TextView self() nothrowReturns `this`, for use in `with` statements.
TextViewGidBuilder builder() static nothrowGet builder for [gtk.text_view.TextView] Returns: New builder object
bool acceptsTab() @property nothrow
void acceptsTab(bool propval) @property nothrow
int bottomMargin() @property nothrowGet `bottomMargin` property. Returns: The bottom margin for text in the text view.
void bottomMargin(int propval) @property nothrowSet `bottomMargin` property. Params: propval = The bottom margin for text in the text view.
void buffer(gtk.text_buffer.TextBuffer propval) @property nothrow
bool cursorVisible() @property nothrow
void cursorVisible(bool propval) @property nothrow
bool editable() @property nothrow
void editable(bool propval) @property nothrow
string imModule() @property nothrowGet `imModule` property. Returns: Which IM (input method) module should be used for this text_view. See #GtkIMContext.
void imModule(string propval) @property nothrowSet `imModule` property. Params: propval = Which IM (input method) module should be used for this text_view. See #GtkIMContext.
int indent() @property nothrow
void indent(int propval) @property nothrow
gtk.types.InputHints inputHints() @property nothrowGet `inputHints` property. Returns: Additional hints (beyond #GtkTextView:input-purpose) that allow input methods to fine-tune their behaviour.
void inputHints(gtk.types.InputHints propval) @property nothrowSet `inputHints` property. Params: propval = Additional hints (beyond #GtkTextView:input-purpose) that allow input methods to fine-tune their behaviour.
gtk.types.InputPurpose inputPurpose() @property nothrowGet `inputPurpose` property. Returns: The purpose of this text field.
void inputPurpose(gtk.types.InputPurpose propval) @property nothrowSet `inputPurpose` property. Params: propval = The purpose of this text field.
void justification(gtk.types.Justification propval) @property nothrow
int leftMargin() @property nothrowGet `leftMargin` property. Returns: The default left margin for text in the text view. Tags in the buffer may override the default.
void leftMargin(int propval) @property nothrowSet `leftMargin` property. Params: propval = The default left margin for text in the text view. Tags in the buffer may override the default.
bool monospace() @property nothrow
void monospace(bool propval) @property nothrow
bool overwrite() @property nothrow
void overwrite(bool propval) @property nothrow
int pixelsAboveLines() @property nothrow
void pixelsAboveLines(int propval) @property nothrow
int pixelsBelowLines() @property nothrow
void pixelsBelowLines(int propval) @property nothrow
int pixelsInsideWrap() @property nothrow
void pixelsInsideWrap(int propval) @property nothrow
bool populateAll() @property nothrowGet `populateAll` property. Returns: If :populate-all is true, the #GtkTextView::populate-popup signal is also emitted for touch popups.
void populateAll(bool propval) @property nothrowSet `populateAll` property. Params: propval = If :populate-all is true, the #GtkTextView::populate-popup signal is also emitted for touch popups.
int rightMargin() @property nothrowGet `rightMargin` property. Returns: The default right margin for text in the text view. Tags in the buffer may override the default.
void rightMargin(int propval) @property nothrowSet `rightMargin` property. Params: propval = The default right margin for text in the text view. Tags in the buffer may override the default.
pango.tab_array.TabArray tabs() @property nothrow
void tabs(pango.tab_array.TabArray propval) @property nothrow
int topMargin() @property nothrowGet `topMargin` property. Returns: The top margin for text in the text view.
void topMargin(int propval) @property nothrowSet `topMargin` property. Params: propval = The top margin for text in the text view.
gtk.types.WrapMode wrapMode() @property nothrow
void wrapMode(gtk.types.WrapMode propval) @property nothrow
gtk.text_view.TextView newWithBuffer(gtk.text_buffer.TextBuffer buffer) static nothrowCreates 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...
void addChildAtAnchor(gtk.widget.Widget child, gtk.text_child_anchor.TextChildAnchor anchor) nothrowAdds a child widget in the text buffer, at the given anchor.
void addChildInWindow(gtk.widget.Widget child, gtk.types.TextWindowType whichWindow, int xpos, int ypos) nothrowAdds a child at fixed coordinates in one of the text widget's windows.
bool backwardDisplayLine(gtk.text_iter.TextIter iter) nothrowMoves 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 line...
bool backwardDisplayLineStart(gtk.text_iter.TextIter iter) nothrowMoves 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 lin...
void bufferToWindowCoords(gtk.types.TextWindowType win, int bufferX, int bufferY, out int windowX, out int windowY) nothrowConverts coordinate (buffer_x, buffer_y) to coordinates for the window win, and stores the result in (window_x, window_y).
bool forwardDisplayLine(gtk.text_iter.TextIter iter) nothrowMoves 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...
bool forwardDisplayLineEnd(gtk.text_iter.TextIter iter) nothrowMoves 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 ...
bool getAcceptsTab() nothrowReturns whether pressing the Tab key inserts a tab characters. [gtk.text_view.TextView.setAcceptsTab]. Returns: true if pressing the Tab key inserts a tab character, false if pressing the Tab key m...
int getBorderWindowSize(gtk.types.TextWindowType type) nothrowGets the width of the specified border window. See [gtk.text_view.TextView.setBorderWindowSize].
int getBottomMargin() nothrowGets the bottom margin for text in the text_view. Returns: bottom margin in pixels
gtk.text_buffer.TextBuffer getBuffer() nothrowReturns 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. Returns: a #GtkTextBuffer
void getCursorLocations(gtk.text_iter.TextIter iter, out gdk.rectangle.Rectangle strong, out gdk.rectangle.Rectangle weak) nothrowGiven 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 rectangl...
bool getCursorVisible() nothrowFind out whether the cursor should be displayed. Returns: whether the insertion mark is visible
gtk.text_attributes.TextAttributes getDefaultAttributes() nothrowObtains 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.getAtt...
bool getEditable() nothrowReturns the default editability of the #GtkTextView. Tags in the buffer may override this setting for some ranges of text. Returns: whether text is editable by default
gtk.adjustment.Adjustment getHadjustment() nothrowGets the horizontal-scrolling #GtkAdjustment. Returns: pointer to the horizontal #GtkAdjustment
int getIndent() nothrowGets the default indentation of paragraphs in text_view. Tags in the view’s buffer may override the default. The indentation may be negative. Returns: number of pixels of indentation
gtk.types.InputHints getInputHints() nothrowGets the value of the #GtkTextView:input-hints property. Returns:
gtk.types.InputPurpose getInputPurpose() nothrowGets the value of the #GtkTextView:input-purpose property. Returns:
bool getIterAtLocation(out gtk.text_iter.TextIter iter, int x, int y) nothrowRetrieves 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,...
bool getIterAtPosition(out gtk.text_iter.TextIter iter, out int trailing, int x, int y) nothrowRetrieves 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 c...
void getIterLocation(gtk.text_iter.TextIter iter, out gdk.rectangle.Rectangle location) nothrowGets 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 coo...
gtk.types.Justification getJustification() nothrowGets the default justification of paragraphs in text_view. Tags in the buffer may override the default. Returns: default justification
int getLeftMargin() nothrowGets the default left margin size of paragraphs in the text_view. Tags in the buffer may override the default. Returns: left margin in pixels
void getLineAtY(out gtk.text_iter.TextIter targetIter, int y, out int lineTop) nothrowGets 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 no...
void getLineYrange(gtk.text_iter.TextIter iter, out int y, out int height) nothrowGets 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.bufferToW...
bool getMonospace() nothrowGets the value of the #GtkTextView:monospace property. Returns: true if monospace fonts are desired
bool getOverwrite() nothrowReturns whether the #GtkTextView is in overwrite mode or not. Returns: whether text_view is in overwrite mode or not.
int getPixelsAboveLines() nothrowGets 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. Returns: default...
int getPixelsBelowLines() nothrowGets the value set by [gtk.text_view.TextView.setPixelsBelowLines].
int getPixelsInsideWrap() nothrowGets the value set by [gtk.text_view.TextView.setPixelsInsideWrap]. Returns: default number of pixels of blank space between wrapped lines
int getRightMargin() nothrowGets the default right margin for text in text_view. Tags in the buffer may override the default. Returns: right margin in pixels
pango.tab_array.TabArray getTabs() nothrowGets 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_a...
int getTopMargin() nothrowGets the top margin for text in the text_view. Returns: top margin in pixels
gtk.adjustment.Adjustment getVadjustment() nothrowGets the vertical-scrolling #GtkAdjustment. Returns: pointer to the vertical #GtkAdjustment
void getVisibleRect(out gdk.rectangle.Rectangle visibleRect) nothrowFills visible_rect with the currently-visible region of the buffer, in buffer coordinates. Convert to window coordinates with [gtk.text_view.TextView.bufferToWindowCoords].
gdk.window.Window getWindow(gtk.types.TextWindowType win) nothrowRetrieves 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 t...
gtk.types.TextWindowType getWindowType(gdk.window.Window window) nothrowUsually used to find out which window an event corresponds to.
gtk.types.WrapMode getWrapMode() nothrowGets the line wrapping for the view. Returns: the line wrap setting
bool imContextFilterKeypress(gdk.event_key.EventKey event) nothrowAllow 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.imcontex...
void moveChild(gtk.widget.Widget child, int xpos, int ypos) nothrowUpdates the position of a child, as for [gtk.text_view.TextView.addChildInWindow].
bool moveMarkOnscreen(gtk.text_mark.TextMark mark) nothrowMoves a mark within the buffer so that it's located within the currently-visible text area.
bool moveVisually(gtk.text_iter.TextIter iter, int count) nothrowMove 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...
bool placeCursorOnscreen() nothrowMoves the cursor to the currently visible region of the buffer, it it isn’t there already. Returns: true if the cursor had to be moved.
void resetCursorBlink() nothrowEnsures 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).
void resetImContext() nothrowReset the input method context of the text view if needed.
void scrollMarkOnscreen(gtk.text_mark.TextMark mark) nothrowScrolls text_view the minimum distance such that mark is contained within the visible area of the widget.
bool scrollToIter(gtk.text_iter.TextIter iter, double withinMargin, bool useAlign, double xalign, double yalign) nothrowScrolls 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_al...
void scrollToMark(gtk.text_mark.TextMark mark, double withinMargin, bool useAlign, double xalign, double yalign) nothrowScrolls 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_al...
void setAcceptsTab(bool acceptsTab) nothrowSets 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 ...
void setBorderWindowSize(gtk.types.TextWindowType type, int size) nothrowSets 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 t...
void setBottomMargin(int bottomMargin) nothrowSets the bottom margin for text in text_view.
void setBuffer(gtk.text_buffer.TextBuffer buffer = null) nothrowSets 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...
void setCursorVisible(bool setting) nothrowToggles 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.
void setEditable(bool setting) nothrowSets the default editability of the #GtkTextView. You can override this default setting with tags in the buffer, using the “editable” attribute of tags.
void setIndent(int indent) nothrowSets the default indentation for paragraphs in text_view. Tags in the buffer may override the default.
void setInputHints(gtk.types.InputHints hints) nothrowSets the #GtkTextView:input-hints property, which allows input methods to fine-tune their behaviour.
void setInputPurpose(gtk.types.InputPurpose purpose) nothrowSets the #GtkTextView:input-purpose property which can be used by on-screen keyboards and other input methods to adjust their behaviour.
void setJustification(gtk.types.Justification justification) nothrowSets the default justification of text in text_view. Tags in the view’s buffer may override the default.
void setLeftMargin(int leftMargin) nothrowSets the default left margin for text in text_view. Tags in the buffer may override the default.
void setMonospace(bool monospace) nothrowSets the #GtkTextView:monospace property, which indicates that the text view should use monospace fonts.
void setOverwrite(bool overwrite) nothrowChanges the #GtkTextView overwrite mode.
void setPixelsAboveLines(int pixelsAboveLines) nothrowSets the default number of blank pixels above paragraphs in text_view. Tags in the buffer for text_view may override the defaults.
void setPixelsBelowLines(int pixelsBelowLines) nothrowSets 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.
void setPixelsInsideWrap(int pixelsInsideWrap) nothrowSets 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.
void setRightMargin(int rightMargin) nothrowSets the default right margin for text in the text view. Tags in the buffer may override the default.
void setTabs(pango.tab_array.TabArray tabs) nothrowSets the default tab stops for paragraphs in text_view. Tags in the buffer may override the default.
void setTopMargin(int topMargin) nothrowSets the top margin for text in text_view.
void setWrapMode(gtk.types.WrapMode wrapMode) nothrowSets the line wrapping for the view.
bool startsDisplayLine(gtk.text_iter.TextIter iter) nothrowDetermines whether iter is at the start of a display line. See [gtk.text_view.TextView.forwardDisplayLine] for an explanation of display lines vs. paragraphs.
void windowToBufferCoords(gtk.types.TextWindowType win, int windowX, int windowY, out int bufferX, out int bufferY) nothrowConverts coordinates on the window identified by win to buffer coordinates, storing the result in (buffer_x,buffer_y).
gulong connectBackspace(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.text_view.TextView))) && Parameters!T.length < 2) nothrowConnect to `Backspace` signal.
gulong connectCopyClipboard(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.text_view.TextView))) && Parameters!T.length < 2) nothrowConnect to `CopyClipboard` signal.
gulong connectCutClipboard(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.text_view.TextView))) && Parameters!T.length < 2) nothrowConnect to `CutClipboard` signal.
gulong connectDeleteFromCursor(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gtk.types.DeleteType))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.text_view.TextView))) && Parameters!T.length < 4) nothrowConnect to `DeleteFromCursor` signal.
gulong connectExtendSelection(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == bool) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gtk.types.TextExtendSelection))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == gtk.text_iter.TextIter))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == gtk.text_iter.TextIter))) && (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] == gtk.text_iter.TextIter))) && (Parameters!T.length < 5 || (ParameterStorageClassTuple!T[4] == ParameterStorageClass.none && is(Parameters!T[4] : gtk.text_view.TextView))) && Parameters!T.length < 6) nothrowConnect to `ExtendSelection` signal.
gulong connectInsertAtCursor(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.text_view.TextView))) && Parameters!T.length < 3) nothrowConnect to `InsertAtCursor` signal.
gulong connectInsertEmoji(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.text_view.TextView))) && Parameters!T.length < 2) nothrowConnect to `InsertEmoji` signal.
gulong connectMoveCursor(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gtk.types.MovementStep))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] == bool))) && (Parameters!T.length < 4 || (ParameterStorageClassTuple!T[3] == ParameterStorageClass.none && is(Parameters!T[3] : gtk.text_view.TextView))) && Parameters!T.length < 5) nothrowConnect to `MoveCursor` signal.
gulong connectMoveViewport(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == gtk.types.ScrollStep))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == int))) && (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.text_view.TextView))) && Parameters!T.length < 4) nothrowConnect to `MoveViewport` signal.
gulong connectPasteClipboard(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.text_view.TextView))) && Parameters!T.length < 2) nothrowConnect to `PasteClipboard` signal.
gulong connectPopulatePopup(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.widget.Widget))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.text_view.TextView))) && Parameters!T.length < 3) nothrowConnect to `PopulatePopup` signal.
gulong connectPreeditChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == string))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.text_view.TextView))) && Parameters!T.length < 3) nothrowConnect to `PreeditChanged` signal.
gulong connectSelectAll(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == bool))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.text_view.TextView))) && Parameters!T.length < 3) nothrowConnect to `SelectAll` signal.
gulong connectSetAnchor(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.text_view.TextView))) && Parameters!T.length < 2) nothrowConnect to `SetAnchor` signal.
gulong connectToggleCursorVisible(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.text_view.TextView))) && Parameters!T.length < 2) nothrowConnect to `ToggleCursorVisible` signal.
gulong connectToggleOverwrite(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.text_view.TextView))) && Parameters!T.length < 2) nothrowConnect to `ToggleOverwrite` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GtkTextView. If you don’t call [gtk.text_view.TextView.setBuffer] before using the text view, an empty default buffer will be created for you. Get the buffer with [gtk.text_view.Te...

Fluent builder implementation template for gtk.text_view.TextView

Methods
T acceptsTab(bool propval) nothrow
T bottomMargin(int propval) nothrowSet `bottomMargin` property. Params: propval = The bottom margin for text in the text view.
T cursorVisible(bool propval) nothrow
T editable(bool propval) nothrow
T imModule(string propval) nothrowSet `imModule` property. Params: propval = Which IM (input method) module should be used for this text_view. See #GtkIMContext.
T indent(int propval) nothrow
T inputHints(gtk.types.InputHints propval) nothrowSet `inputHints` property. Params: propval = Additional hints (beyond #GtkTextView:input-purpose) that allow input methods to fine-tune their behaviour. Returns: Builder instance for fluent chaining
T inputPurpose(gtk.types.InputPurpose propval) nothrowSet `inputPurpose` property. Params: propval = The purpose of this text field.
T leftMargin(int propval) nothrowSet `leftMargin` property. Params: propval = The default left margin for text in the text view. Tags in the buffer may override the default.
T monospace(bool propval) nothrow
T overwrite(bool propval) nothrow
T pixelsAboveLines(int propval) nothrow
T pixelsBelowLines(int propval) nothrow
T pixelsInsideWrap(int propval) nothrow
T populateAll(bool propval) nothrowSet `populateAll` property. Params: propval = If :populate-all is true, the #GtkTextView::populate-popup signal is also emitted for touch popups. Returns: Builder instance for fluent chaining
T rightMargin(int propval) nothrowSet `rightMargin` property. Params: propval = The default right margin for text in the text view. Tags in the buffer may override the default.
T tabs(pango.tab_array.TabArray propval) nothrow
T topMargin(int propval) nothrowSet `topMargin` property. Params: propval = The top margin for text in the text view.
T wrapMode(gtk.types.WrapMode propval) nothrow

Fluent builder for gtk.text_view.TextView

Methods
TextView build() nothrowCreate object from builder. Returns: New object