GtkTextView {RGtk2}R Documentation

GtkTextView

Description

Widget that displays a GtkTextBuffer

Methods and Functions

gtkTextViewNew(show = TRUE)
gtkTextViewNewWithBuffer(buffer = NULL, show = TRUE)
gtkTextViewSetBuffer(object, buffer)
gtkTextViewGetBuffer(object)
gtkTextViewScrollToMark(object, mark, within.margin, use.align = FALSE, xalign = 0.5, yalign = 0.5)
gtkTextViewScrollToIter(object, iter, within.margin, use.align = FALSE, xalign = 0.5, yalign = 0.5)
gtkTextViewScrollMarkOnscreen(object, mark)
gtkTextViewMoveMarkOnscreen(object, mark)
gtkTextViewPlaceCursorOnscreen(object)
gtkTextViewGetVisibleRect(object)
gtkTextViewGetIterLocation(object, iter)
gtkTextViewGetLineAtY(object, y)
gtkTextViewGetLineYrange(object, iter)
gtkTextViewGetIterAtLocation(object, x, y)
gtkTextViewGetIterAtPosition(object, x, y)
gtkTextViewBufferToWindowCoords(object, win, buffer.x, buffer.y)
gtkTextViewWindowToBufferCoords(object, win, window.x, window.y)
gtkTextViewGetWindow(object, win)
gtkTextViewGetWindowType(object, window)
gtkTextViewSetBorderWindowSize(object, type, size)
gtkTextViewGetBorderWindowSize(object, type)
gtkTextViewForwardDisplayLine(object, iter)
gtkTextViewBackwardDisplayLine(object, iter)
gtkTextViewForwardDisplayLineEnd(object, iter)
gtkTextViewBackwardDisplayLineStart(object, iter)
gtkTextViewStartsDisplayLine(object, iter)
gtkTextViewMoveVisually(object, iter, count)
gtkTextViewAddChildAtAnchor(object, child, anchor)
gtkTextChildAnchorNew()
gtkTextChildAnchorGetWidgets(object)
gtkTextChildAnchorGetDeleted(object)
gtkTextViewAddChildInWindow(object, child, which.window, xpos, ypos)
gtkTextViewMoveChild(object, child, xpos, ypos)
gtkTextViewSetWrapMode(object, wrap.mode)
gtkTextViewGetWrapMode(object)
gtkTextViewSetEditable(object, setting)
gtkTextViewGetEditable(object)
gtkTextViewSetCursorVisible(object, setting)
gtkTextViewGetCursorVisible(object)
gtkTextViewSetOverwrite(object, overwrite)
gtkTextViewGetOverwrite(object)
gtkTextViewSetPixelsAboveLines(object, pixels.above.lines)
gtkTextViewGetPixelsAboveLines(object)
gtkTextViewSetPixelsBelowLines(object, pixels.below.lines)
gtkTextViewGetPixelsBelowLines(object)
gtkTextViewSetPixelsInsideWrap(object, pixels.inside.wrap)
gtkTextViewGetPixelsInsideWrap(object)
gtkTextViewSetJustification(object, justification)
gtkTextViewGetJustification(object)
gtkTextViewSetLeftMargin(object, left.margin)
gtkTextViewGetLeftMargin(object)
gtkTextViewSetRightMargin(object, right.margin)
gtkTextViewGetRightMargin(object)
gtkTextViewSetIndent(object, indent)
gtkTextViewGetIndent(object)
gtkTextViewSetTabs(object, tabs)
gtkTextViewGetTabs(object)
gtkTextViewSetAcceptsTab(object, accepts.tab)
gtkTextViewGetAcceptsTab(object)
gtkTextViewGetDefaultAttributes(object)
gtkTextView(buffer = NULL, show = TRUE)
gtkTextChildAnchor()

Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkTextView
  GObject
   +----GtkTextChildAnchor

Interfaces

GtkTextView implements GtkBuildable and AtkImplementorIface.

Detailed Description

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.

Structures

GtkTextView
undocumented

GtkTextChildAnchor
A GtkTextChildAnchor is a spot in the buffer where child widgets can be "anchored" (inserted inline, as if they were characters). The anchor can have multiple widgets anchored, to allow for multiple views.

Convenient Construction

gtkTextView is the result of collapsing the constructors of GtkTextView (gtkTextViewNew, gtkTextViewNewWithBuffer) and accepts a subset of its arguments matching the required arguments of one of its delegate constructors. gtkTextChildAnchor is the equivalent of gtkTextChildAnchorNew.

Enums and Flags

GtkTextWindowType
undocumented

private
undocumented
widget
undocumented
text
undocumented
left
undocumented
right
undocumented
top
undocumented
bottom
undocumented

Signals

The (text.view, user.data)
The ::backspace signal is a keybinding signal which gets emitted when the user asks for it.

The default bindings for this signal are Backspace and Shift-Backspace.

text.view
[GtkTextView] the object which received the signal
user.data
[R object] user data set when the signal handler was connected.

The (text.view, user.data)
The ::copy-clipboard signal is a keybinding signal which gets emitted to copy the selection to the clipboard.

The default bindings for this signal are Ctrl-c and Ctrl-Insert.

text.view
[GtkTextView] the object which received the signal
user.data
[R object] user data set when the signal handler was connected.

The (text.view, user.data)
The ::cut-clipboard signal is a keybinding signal which gets emitted to cut the selection to the clipboard.

The default bindings for this signal are Ctrl-x and Shift-Delete.

text.view
[GtkTextView] the object which received the signal
user.data
[R object] user data set when the signal handler was connected.

The (text.view, type, count, user.data)
The ::delete-from-cursor signal is a keybinding signal which gets emitted when the user initiates a text deletion.

If the type is GTK_DELETE_CHARS, GTK+ deletes the selection if there is one, otherwise it deletes the requested number of characters.

The default bindings for this signal are Delete for deleting a character, Ctrl-Delete for deleting a word and Ctrl-Backspace for deleting a word backwords.

text.view
[GtkTextView] the object which received the signal
type
[GtkDeleteType] the granularity of the deletion, as a GtkDeleteType
count
[integer] the number of type units to delete
user.data
[R object] user data set when the signal handler was connected.

The (textview, arg1, user.data)
undocumented

textview
[GtkTextView] the object which received the signal.
arg1
[character]
user.data
[R object] user data set when the signal handler was connected.

The (text.view, step, count, extend.selection, user.data)
The ::move-cursor signal is a keybinding signal 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.

Applications should not connect to it, but may emit it with gSignalEmitByName() if they need to control scrolling programmatically.

The default bindings for this signal come in two variants, the variant with the Shift modifier extends the selection, the variant without the Shift modifer does not. There are too many key combinations to list them all here.

text.view
[GtkTextView] the object which received the signal
step
[GtkMovementStep] the granularity of the move, as a GtkMovementStep
count
[integer] the number of step units to move
extend.selection
[logical] TRUE if the move should extend the selection
user.data
[R object] user data set when the signal handler was connected.

The (text.view, step, count, user.data)
The ::move-viewport signal is a keybinding signal 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.

There are no default bindings for this signal.

text.view
[GtkTextView] the object which received the signal
step
[GtkScrollStep] the granularity of the move, as a GtkMovementStep
count
[integer] the number of step units to move
user.data
[R object] user data set when the signal handler was connected.

The (text.view, count, extend.selection, user.data)
The ::page-horizontally signal is a keybinding signal which can be bound to key combinations to allow the user to initiate horizontal cursor movement by pages.

This signal should not be used anymore, instead use the ::move-cursor signal with the GTK_MOVEMENT_HORIZONTAL_PAGES granularity.

text.view
[GtkTextView] the object which received the signal
count
[integer] the number of step units to move
extend.selection
[logical] TRUE if the move should extend the selection
user.data
[R object] user data set when the signal handler was connected.

The (text.view, user.data)
The ::paste-clipboard signal is a keybinding signal which gets emitted to paste the contents of the clipboard into the text view.

The default bindings for this signal are Ctrl-v and Shift-Insert.

text.view
[GtkTextView] the object which received the signal
user.data
[R object] user data set when the signal handler was connected.

The (textview, arg1, user.data)
undocumented

textview
[GtkTextView] the object which received the signal.
arg1
[GtkMenu]
user.data
[R object] user data set when the signal handler was connected.

The (text.view, select, user.data)
The ::select-all signal is a keybinding signal which gets emitted to select or unselect the complete contents of the text view.

The default bindings for this signal are Ctrl-a and Ctrl-/ for selecting and Shift-Ctrl-a and Ctrl-\ for unselecting.

text.view
[GtkTextView] the object which received the signal
select
[logical] TRUE to select, FALSE to unselect
user.data
[R object] user data set when the signal handler was connected.

The (textview, user.data)
undocumented

textview
[GtkTextView] the object which received the signal.
user.data
[R object] user data set when the signal handler was connected.

The (textview, arg1, arg2, user.data)
undocumented

textview
[GtkTextView] the object which received the signal.
arg1
[GtkAdjustment]
arg2
[GtkAdjustment]
user.data
[R object] user data set when the signal handler was connected.

The (text.view, user.data)
The ::toggle-cursor-visible signal is a keybinding signal which gets emitted to toggle the visibility of the cursor.

The default binding for this signal is F7.

text.view
[GtkTextView] the object which received the signal
user.data
[R object] user data set when the signal handler was connected.

The (text.view, user.data)
The ::toggle-overwrite signal is a keybinding signal which gets emitted to change the editability of the text view.

The default bindings for this signal is Insert.

text.view
[GtkTextView] the object which received the signal
user.data
[R object] user data set when the signal handler was connected.

Properties

accepts-tab [logical : Read / Write]

Whether Tab will result in a tab character being entered. Default value: TRUE

buffer [GtkTextBuffer : Read / Write]

The buffer which is displayed.

cursor-visible [logical : Read / Write]

If the insertion cursor is shown. Default value: TRUE

editable [logical : Read / Write]

Whether the text can be modified by the user. Default value: TRUE

indent [integer : Read / Write]

Amount to indent the paragraph, in pixels. Default value: 0

justification [GtkJustification : Read / Write]

Left, right, or center justification. Default value: GTK_JUSTIFY_LEFT

left-margin [integer : Read / Write]

Width of the left margin in pixels. Allowed values: >= 0 Default value: 0

overwrite [logical : Read / Write]

Whether entered text overwrites existing contents. Default value: FALSE

pixels-above-lines [integer : Read / Write]

Pixels of blank space above paragraphs. Allowed values: >= 0 Default value: 0

pixels-below-lines [integer : Read / Write]

Pixels of blank space below paragraphs. Allowed values: >= 0 Default value: 0

pixels-inside-wrap [integer : Read / Write]

Pixels of blank space between wrapped lines in a paragraph. Allowed values: >= 0 Default value: 0

right-margin [integer : Read / Write]

Width of the right margin in pixels. Allowed values: >= 0 Default value: 0

tabs [PangoTabArray : Read / Write]

Custom tabs for this text.

wrap-mode [GtkWrapMode : Read / Write]

Whether to wrap lines never, at word boundaries, or at character boundaries. Default value: GTK_WRAP_NONE

Style Properties

error-underline-color [GdkColor : Read]

Color with which to draw error-indication underlines.

Author(s)

Derived by RGtkGen from GTK+ documentation

References

http://developer.gnome.org/doc/API/2.0/gtk/GtkTextView.html

See Also

GtkTextBuffer GtkTextIter


[Package RGtk2 version 2.12.5-3 Index]