Package: gtk

Class gtk-text-view

Superclasses

gtk-container, gtk-widget, g-initially-unowned, gtk-buildable, gtk-scrollable, g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

accepts-tab
The "accepts-tab" property of type :boolean (Read / Write)
Whether Tab will result in a tab character being entered.
Default value: true
buffer
The "buffer" property of type gtk-text-buffer (Read / Write)
The buffer which is displayed.
cursor-visible
The "cursor-visible" property of type :boolean (Read / Write)
If the insertion cursor is shown.
Default value: true
editable
The "editable" property of type :boolean (Read / Write)
Whether the text can be modified by the user.
Default value: true
im-module
The "im-module" property of type :string (Read / Write)
Which IM (input method) module should be used for this entry. See gtk-im-context. Setting this to a non-nil value overrides the system-wide IM module setting. See the gtk-settings "gtk-im-module" property.
Default value: nil
Since 2.16
indent
The "indent" property of type :int (Read / Write)
Amount to indent the paragraph, in pixels.
Default value: 0
input-hints
The "input-hints" property of type gtk-input-hints (Read / Write)
Additional hints (beyond the "input-purpose" signal) that allow input methods to fine-tune their behaviour.
Since 3.6
input-purpose
The "input-purpose" property of type gtk-input-purpose (Read / Write)
The purpose of this text field. This property can be used by on-screen keyboards and other input methods to adjust their behaviour.
Default value: :free-form
Since 3.6
justification
The "justification" property of type gtk-justification (Read / Write)
Left, right, or center justification.
Default value: :left
left-margin
The "left-margin" property of type :int (Read / Write)
Width of the left margin in pixels.
Allowed values: >= 0
Default value: 0
overwrite
The "overwrite" property of type :boolean (Read / Write)
Whether entered text overwrites existing contents.
Default value: nil
pixels-above-lines
The "pixels-above-lines" property of type :int (Read / Write)
Pixels of blank space above paragraphs.
Allowed values: >= 0
Default value: 0
pixels-below-lines
The "pixels-below-lines" property of type :int (Read / Write)
Pixels of blank space below paragraphs.
Allowed values: >= 0
Default value: 0
pixels-inside-wrap
The "pixels-inside-wrap" property of type :int (Read / Write)
Pixels of blank space between wrapped lines in a paragraph.
Allowed values: >= 0
Default value: 0
right-margin
The "right-margin" property of type :int (Read / Write)
Width of the right margin in pixels.
Allowed values: >= 0
Default value: 0
tabs
The "tabs" property of type pango-tab-array (Read / Write)
Custom tabs for this text.
wrap-mode
The "wrap-mode" property of type gtk-wrap-mode (Read / Write)
Whether to wrap lines never, at word boundaries, or at character boundaries.
Default value: :none

Details

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.

Style Property Details

The "error-underline-color" style property
"error-underline-color" of type gdk-color (Read)
Color with which to draw error-indication underlines.

Signal Details

The "backspace" signal
 lambda (text-view)   : Action      
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
The object which received the signal.
The "copy-clipboard" signal
 lambda (text-view)   : Action      
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
The object which received the signal.
The "cut-clipboard" signal
 lambda (text-view)   : Action      
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
The object which received the signal.
The "delete-from-cursor" signal
 lambda (text-view type count)   : Action      
The "delete-from-cursor" signal is a keybinding signal which gets emitted when the user initiates a text deletion. If the type is :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
The object which received the signal.
type
The granularity of the deletion, as a gtk-delete-type.
count
The number of type units to delete.
The "insert-at-cursor" signal
 lambda (text-view string)      
The "insert-at-cursor" signal is a keybinding signal which gets emitted when the user initiates the insertion of a fixed string at the cursor. This signal has no default bindings.
text-view
The object which received the signal.
string
The string to insert.
The "move-cursor" signal
 lambda (text-view step count extended-selection)   : Action      
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 the function g-signal-emit-by-name if they need to control the cursor 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. Arrow keys move by individual characters/lines Ctrl-arrow key combinations move by words/paragraphs Home/End keys move to the ends of the buffer PageUp/PageDown keys move vertically by pages Ctrl-PageUp/PageDown keys move horizontally by pages
text-view
The object which received the signal.
step
The granularity of the move, as a gtk-movement-step.
count
The number of step units to move.
extend-selection
True if the move should extend the selection.
The "move-viewport" signal
 lambda (text-view step count)   : Action      
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
The object which received the signal.
step
The granularity of the move, as a gtk-movement-step.
count
The number of step units to move.
The "paste-clipboard" signal
 lambda (text-view)   : Action      
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
The object which received the signal.
The "populate-popup" signal
 lambda (entry menu)   : Run Last      
The "populate-popup" signal gets emitted before showing the context menu of the text view. If you need to add items to the context menu, connect to this signal and append your menuitems to the menu.
entry
The text view on which the signal is emitted.
menu
The menu that is being populated.
The "preedit-changed" signal
 lambda (text-view preedit)   : Action      
If an input method is used, the typed text will not immediately be committed to the buffer. So if you are interested in the text, connect to this signal. This signal is only emitted if the text at the given position is actually editable.
text-view
The object which received the signal.
preedit
The current preedit string.
Since 2.20

The "select-all" signal
 lambda (text-view select)   : Action      
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
The object which received the signal.
select
True to select, nil to unselect.
The "set-anchor" signal
 lambda (text-view)   : Action      
The "set-anchor" signal is a keybinding signal which gets emitted when the user initiates setting the "anchor" mark. The "anchor" mark gets placed at the same position as the "insert" mark. This signal has no default bindings.
text-view
The object which received the signal.
The "toggle-cursor-visible" signal
 lambda (text-view)   : Action      
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
The object which received the signal.
The "toggle-overwrite" signal
 lambda (text-view)   : Action      
The "toggle-overwrite" signal is a keybinding signal which gets emitted to toggle the overwrite mode of the text view. The default bindings for this signal is Insert.
text-view
The object which received the signal.
 

Slot Access Functions

Inherited Slot Access Functions

2013-5-5