GtkTextView {RGtk2}R Documentation

GtkTextView

Description

Widget that displays a

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
   +----GtkObject
         +----GtkWidget
               +----GtkContainer
                     +----GtkTextView
  GObject
   +----GtkTextChildAnchor

Interfaces

GtkTextView implements 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

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

Signals

backspace(textview, user.data)

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

copy-clipboard(textview, user.data)

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

cut-clipboard(textview, user.data)

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

delete-from-cursor(textview, arg1, arg2, user.data)

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

insert-at-cursor(textview, arg1, user.data)

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

move-cursor(widget, step, count, extend.selection, user.data)
The ::move-cursor signal is a keybinding signal which gets emitted when the user initiates a cursor movement.

Applications should not connect to it, but may emit it with g\Signal\Emit\By\Name() if they need to control scrolling programmatically.

widget
[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.

move-focus(textview, arg1, user.data)

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

move-viewport(textview, arg1, arg2, user.data)

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

page-horizontally(textview, arg1, arg2, user.data)

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

paste-clipboard(textview, user.data)

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

populate-popup(textview, arg1, user.data)

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

select-all(textview, arg1, user.data)

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

set-anchor(textview, user.data)

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

set-scroll-adjustments(textview, arg1, arg2, user.data)

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.

toggle-overwrite(textview, user.data)

textview
[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. Allowed values: >= 0 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.8.6 Index]