Gtk.TextView Members

The members of Gtk.TextView are listed below.

See Also: Inherited members from Gtk.Container

Public Constructors

Creates a new TextView
Creates a new TextView displaying a specified buffer.
Internal constructor

Protected Constructors

Protected Constructor.

Public Properties

AcceptsTabbool. Whether Tab will result in a tab character being entered.
BufferTextBuffer. The Gtk.TextBuffer displayed by the text view
CursorVisiblebool. Whether the insertion point is displayed
[read-only]
DefaultAttributesTextAttributes. The default text attributes
Editablebool. Whether the text can be modified by the user
[read-only]
static
GTypeGLib.GType. GType Property.
Indentint. The default indentation for paragraphs
JustificationJustification. The default justification
LeftMarginint. The default left margin
Overwritebool. Whether entered text overwrites existing contents.
PixelsAboveLinesint. The default number of blank pixels above paragraphs
PixelsBelowLinesint. The default number of pixels of blank space to put below paragraphs
PixelsInsideWrapint. The default number of pixels of blank space to leave between display/wrapped lines within a paragraph
RightMarginint. The default right margin
TabsPango.TabArray. Custom tabs for this text
[read-only]
VisibleRectGdk.Rectangle. Returns the currently-visible region of the buffer, in buffer coordinates.
WrapModeWrapMode. Whether to wrap lines never, at word boundaries, or at character boundaries.

Public Methods

AddChildAtAnchor(Widget, TextChildAnchor)
Adds a child widget in the text buffer, at the given anchor
AddChildInWindow(Widget, TextWindowType, int, int)
Adds a child at fixed coordinates in one of the text widget's windows.
BackwardDisplayLine(ref TextIter) : bool
Moves the given iter backward by one display (wrapped) line
BackwardDisplayLineStart(ref TextIter) : bool
Moves the given iter backward to the next display line start
BufferToWindowCoords(TextWindowType, int, int, out int, out int)
Converts specified buffer coordinates to coordinates for window
ForwardDisplayLine(ref TextIter) : bool
Moves the given iter forward by one display (wrapped) line
ForwardDisplayLineEnd(ref TextIter) : bool
Moves iter forward to the next display line end
GetBorderWindowSize(TextWindowType) : int
Gets the width of the specified border window.
GetIterAtLocation(int, int) : TextIter
Retrieves the iterator at buffer coordinates x and y.
GetIterAtPosition(TextIter, int, int) : int
Documentation for this section has not yet been entered.
GetIterLocation(TextIter) : Gdk.Rectangle
Gets a rectangle which roughly contains the character at iter.
GetLineAtY(out TextIter, int, out int)
This method should be fixed
GetLineYrange(TextIter, out int, out int)
Gets the y coordinate of the top of the line containing iter, and the height of the line
GetWindow(TextWindowType) : Gdk.Window
Retrieves the Gdk.Window corresponding to an area of the text view
GetWindowType(Gdk.Window) : TextWindowType
Used for finding out which window an event corresponds to
MoveChild(Widget, int, int)
Updates the position of a child
MoveMarkOnscreen(TextMark) : bool
Moves mark within the buffer so that it's located within the currently-visible text area
MoveVisually(ref TextIter, int) : bool
Move the iterator a given number of characters visually, treating it as the strong cursor position
PlaceCursorOnscreen() : bool
Moves the cursor to the currently visible region of the buffer if it isn't there already.
ScrollMarkOnscreen(TextMark)
Scrolls the text view the minimum distance such that mark is contained within the visible area of the widget
ScrollToIter(TextIter, double, bool, double, double) : bool
Scrolls the text view so that iter is on the screen in the position indicated by xalign and yalign
ScrollToMark(TextMark, double, bool, double, double)
Scrolls the view so that mark is on the screen in the position indicated by xalign and yalign
SetBorderWindowSize(TextWindowType, int)
Sets the width of Gtk.TextWindowType.Left or Gtk.TextWindowType.Right, or the height of Gtk.TextWindow.Top or Gtk.TextWindow.Bottom.
StartsDisplayLine(TextIter) : bool
Determines whether iter is at the start of a display line
WindowToBufferCoords(TextWindowType, int, int, out int, out int)
Converts coordinates on the window to buffer coordinates

Protected Methods

OnBackspace()
Default handler for the TextView.Backspace event.
OnCopyClipboard()
Default handler for the TextView.CopyClipboard event.
OnCutClipboard()
Default handler for the TextView.CutClipboard event.
OnDeleteFromCursor(DeleteType, int)
Default handler for the TextView.DeleteFromCursor event.
OnInsertAtCursor(string)
Default handler for the TextView.InsertAtCursor event.
OnMoveCursor(MovementStep, int, bool)
Default handler for the TextView.MoveCursor event.
OnMoveFocus(DirectionType)
Default handler for the TextView.MoveFocus event.
OnPageHorizontally(int, bool)
Default handler for the TextView.PageHorizontally event.
OnPasteClipboard()
Default handler for the TextView.PasteClipboard event.
OnPopulatePopup(Menu)
Default handler for the TextView.PopulatePopup event.
OnScrollAdjustmentsSet(Adjustment, Adjustment)
Default handler for the TextView.ScrollAdjustmentsSet event.
OnSetAnchor()
Default handler for the TextView.SetAnchor event.
OnToggleOverwrite()
Default handler for the TextView.ToggleOverwrite event.

Public Events

BackspaceDocumentation for this section has not yet been entered.
CopyClipboardRaised when text is copied to the clipboard.
CutClipboardRaised whenever a selection is cut to the clipboard.
DeleteFromCursorRaised when text is deleted from the cursor (usually by hitting Backspace or Delete).
InsertAtCursorRaised whenever text is inserted at the cursor.
MoveCursorRaised whenever the cursor is moved.
MoveFocusRaised when the keyboard focus changes.
PageHorizontallyRaised when the user scrolls horizontally in this widget.
PasteClipboardRaised whenever text is pasted from the clipboard.
PopulatePopupRaised when the popup dialog on this object needs to be filled with data.
ScrollAdjustmentsSetRaised whenever the adjustment values for the scrollbars are set.
SetAnchorRaised whenever an anchor (e.g. Gtk.TextChildAnchor) is set within the TextView.
ToggleOverwriteRaised whenever the insert/overwrite flag is toggled.