Creates a new text buffer.
Adds the mark at position where.
Adds clipboard to the list of clipboards in which the selection contents of buffer are available.
Emits the “apply-tag” signal on buffer.
Emits the “apply-tag” signal on buffer.
Performs the appropriate action as if the user hit the delete key with the cursor at the position specified by iter.
Denotes the beginning of an action that may not be undone.
Called to indicate that the buffer operations between here and a call to gtk.text_buffer.TextBuffer.endUserAction are part of a single user-visible operation.
Connect to ApplyTag signal.
Connect to BeginUserAction signal.
Connect to Changed signal.
Connect to DeleteRange signal.
Connect to EndUserAction signal.
Connect to InsertChildAnchor signal.
Connect to InsertPaintable signal.
Connect to InsertText signal.
Connect to MarkDeleted signal.
Connect to MarkSet signal.
Connect to ModifiedChanged signal.
Connect to PasteDone signal.
Connect to Redo signal.
Connect to RemoveTag signal.
Connect to Undo signal.
Copies the currently-selected text to a clipboard.
Creates and inserts a child anchor.
Creates a mark at position where.
Copies the currently-selected text to a clipboard, then deletes said text if it’s editable.
Deletes all editable text in the given range.
Deletes mark, so that it’s no longer located anywhere in the buffer.
Deletes the mark named name; the mark must exist.
Deletes the range between the “insert” and “selection_bound” marks, that is, the currently-selected text.
Deletes text between start and end.
Denotes the end of an action that may not be undone.
Ends a user-visible operation.
Retrieves the first and last iterators in the buffer, i.e. the entire buffer lies within the range [start,end).
Gets whether there is a redoable action in the history.
Gets whether there is an undoable action in the history.
Gets the number of characters in the buffer.
Gets whether the buffer is saving modifications to the buffer to allow for undo and redo actions.
Initializes iter with the “end iterator,” one past the last valid character in the text buffer.
Indicates whether the buffer has some text currently selected.
Returns the mark that represents the cursor (insertion point).
Obtains the location of anchor within buffer.
Initializes iter to the start of the given line.
Obtains an iterator pointing to byte_index within the given line.
Obtains an iterator pointing to char_offset within the given line.
Initializes iter with the current position of mark.
Initializes iter to a position char_offset chars from the start of the entire buffer.
Obtains the number of lines in the buffer.
Returns the mark named name in buffer buffer, or null if no such mark exists in the buffer.
Gets the maximum number of undo levels to perform.
Indicates whether the buffer has been modified since the last call to gtk.text_buffer.TextBuffer.setModified set the modification flag to false.
Returns the mark that represents the selection bound.
Returns true if some text is selected; places the bounds of the selection in start and end.
Get a content provider for this buffer.
Returns the text in the range [start,end).
Initialized iter with the first position in the text buffer.
Get the gtk.text_tag_table.TextTagTable associated with this buffer.
Returns the text in the range [start,end).
Inserts len bytes of text at position iter.
Inserts text in buffer.
Inserts a child widget anchor into the text buffer at iter.
Inserts text in buffer.
Inserts text in buffer.
Inserts the text in markup at position iter.
Inserts an image into the text buffer at iter.
Copies text, tags, and paintables between start and end and inserts the copy at iter.
Copies text, tags, and paintables between start and end and inserts the copy at iter.
Moves mark to the new location where.
Moves the mark named name (which must exist) to location where.
Pastes the contents of a clipboard.
This function moves the “insert” and “selection_bound” marks simultaneously.
Redoes the next redoable action on the buffer, if there is one.
Removes all tags in the range between start and end.
Removes a gdk.clipboard.Clipboard added with gtk.text_buffer.TextBuffer.addSelectionClipboard
Emits the “remove-tag” signal.
Emits the “remove-tag” signal.
This function moves the “insert” and “selection_bound” marks simultaneously.
Sets whether or not to enable undoable actions in the text buffer.
Sets the maximum number of undo levels to perform.
Used to keep track of whether the buffer has been modified since the last time it was saved.
Deletes current contents of buffer, and inserts text instead. This is automatically marked as an irreversible action in the undo stack. If you wish to mark this action as part of a larger undo operation, call gtk.text_buffer.TextBuffer.delete_ and gtk.text_buffer.TextBuffer.insert directly instead.
Undoes the last undoable action on the buffer, if there is one.
Set the GObject of a D ObjectG wrapper.
Get a pointer to the underlying C object.
Calls g_object_ref() on a GObject.
Calls g_object_unref() on a GObject.
Get the GType of an object.
GObject GType property.
Convenience method to return this cast to a type. For use in D with statements.
Template to get the D object from a C GObject and cast it to the given D object type.
Connect a D closure to an object signal.
Template for setting a GObject property.
Template for getting a GObject property.
Creates a binding between source_property on source and target_property on target.
Creates a binding between source_property on source and target_property on target, allowing you to set the transformation functions to be used by the binding.
This function is intended for #GObject implementations to re-enforce a floating[floating-ref] object reference. Doing this is seldom required: all #GInitiallyUnowneds are created with a floating reference which usually just needs to be sunken by calling gobject.object.ObjectG.refSink.
Increases the freeze count on object. If the freeze count is non-zero, the emission of "notify" signals on object is stopped. The signals are queued until the freeze count is decreased to zero. Duplicate notifications are squashed so that at most one #GObject::notify signal is emitted for each property modified while the object is frozen.
Gets a named field from the objects table of associations (see gobject.object.ObjectG.setData).
Gets a property of an object.
This function gets back user data pointers stored via gobject.object.ObjectG.setQdata.
Gets n_properties properties for an object. Obtained properties will be set to values. All properties must be valid. Warnings will be emitted and undefined behaviour may result if invalid properties are passed in.
Checks whether object has a floating[floating-ref] reference.
Emits a "notify" signal for the property property_name on object.
Emits a "notify" signal for the property specified by pspec on object.
Increase the reference count of object, and possibly remove the floating[floating-ref] reference, if object has a floating reference.
Releases all references to other objects. This can be used to break reference cycles.
Each object carries around a table of associations from strings to pointers. This function lets you set an association.
Sets a property on an object.
Remove a specified datum from the object's data associations, without invoking the association's destroy handler.
This function gets back user data pointers stored via gobject.object.ObjectG.setQdata and removes the data from object without invoking its destroy() function (if any was set). Usually, calling this function is only required to update user data pointers with a destroy notifier, for example:
Reverts the effect of a previous call to gobject.object.ObjectG.freezeNotify. The freeze count is decreased on object and when it reaches zero, queued "notify" signals are emitted.
This function essentially limits the life time of the closure to the life time of the object. That is, when the object is finalized, the closure is invalidated by calling gobject.closure.Closure.invalidate on it, in order to prevent invocations of the closure with a finalized (nonexisting) object. Also, gobject.object.ObjectG.ref_ and gobject.object.ObjectG.unref are added as marshal guards to the closure, to ensure that an extra reference count is held on object during invocation of the closure. Usually, this function will be called on closures that use this object as closure data.
Connect to Notify signal.
Stores text and attributes for display in a gtk.text_view.TextView.
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.
GtkTextBuffer can support undoing changes to the buffer content, see gtk.text_buffer.TextBuffer.setEnableUndo.