Class
FoundryGtkSourceBuffer
Instance methods
foundry_source_buffer_comment
Comments the specified text range using the appropriate comment syntax for the current language.
unstable since: 1.1
foundry_source_buffer_dup_override_syntax
Gets the syntax to be used, overriding any language guessing.
foundry_source_buffer_uncomment
Removes comment markers from the specified text range.
unstable since: 1.1
Methods inherited from GtkSourceBuffer (27)
Please see GtkSourceBuffer for a full list of methods.
Methods inherited from GtkTextBuffer (72)
Please see GtkTextBuffer for a full list of methods.
Methods inherited from FoundryTextBuffer (10)
foundry_text_buffer_add_commit_notify
Adds a new commit notify handler.
foundry_text_buffer_apply_edit
foundry_text_buffer_dup_contents
Gets the contents of the buffer as a GBytes.
foundry_text_buffer_dup_language_id
Gets the GtkSourceView-style identifier for the language of the buffer such as “c” or “js”.
foundry_text_buffer_emit_changed
foundry_text_buffer_get_change_count
Gets the number of changes that have occurred to buffer.
foundry_text_buffer_get_iter_at_offset
foundry_text_buffer_get_start_iter
foundry_text_buffer_remove_commit_notify
Remove a commit notify handler.
foundry_text_buffer_settle
Gets a DexFuture that will resolve after short delay when changes
have completed.
Properties
FoundryGtk.SourceBuffer:override-syntax
The GtkSourceLanguage identifier of the syntax to use, ignoring any guessed language.
Properties inherited from GtkSourceBuffer (6)
GtkSource.Buffer:highlight-matching-brackets
Whether to highlight matching brackets in the buffer.
GtkSource.Buffer:highlight-syntax
Whether to highlight syntax in the buffer.
GtkSource.Buffer:implicit-trailing-newline
Whether the buffer has an implicit trailing newline. See
gtk_source_buffer_set_implicit_trailing_newline().
GtkSource.Buffer:language
GtkSource.Buffer:loading
The “loading” property denotes that a GtkSourceFileLoader is
currently loading the buffer.
GtkSource.Buffer:style-scheme
Style scheme. It contains styles for syntax highlighting, optionally foreground, background, cursor color, current line color, and matching brackets style.
Properties inherited from GtkTextBuffer (7)
Gtk.TextBuffer:can-redo
Denotes that the buffer can reapply the last undone action.
Gtk.TextBuffer:can-undo
Denotes that the buffer can undo the last applied action.
Gtk.TextBuffer:cursor-position
The position of the insert mark.
Gtk.TextBuffer:enable-undo
Denotes if support for undoing and redoing changes to the buffer is allowed.
Gtk.TextBuffer:has-selection
Whether the buffer has some text currently selected.
Gtk.TextBuffer:tag-table
The GtkTextTagTable for the buffer.
Gtk.TextBuffer:text
The text content of the buffer.
Properties inherited from FoundryTextBuffer (2)
Foundry.TextBuffer:context
Foundry.TextBuffer:language-id
Signals
Signals inherited from GtkSourceBuffer (4)
GtkSourceBuffer::bracket-matched
iter is set to a valid iterator pointing to the matching bracket
if state is GTK_SOURCE_BRACKET_MATCH_FOUND. Otherwise iter is meaningless.
GtkSourceBuffer::cursor-moved
The “cursor-moved” signal is emitted when then insertion mark has moved.
GtkSourceBuffer::highlight-updated
The ::highlight-updated signal is emitted when the syntax
highlighting and context classes are updated in a
certain region of the buffer.
GtkSourceBuffer::source-mark-updated
The ::source-mark-updated signal is emitted each time
a mark is added to, moved or removed from the buffer.
Signals inherited from GtkTextBuffer (15)
GtkTextBuffer::apply-tag
Emitted to apply a tag to a range of text in a GtkTextBuffer.
GtkTextBuffer::begin-user-action
Emitted at the beginning of a single user-visible
operation on a GtkTextBuffer.
GtkTextBuffer::changed
Emitted when the content of a GtkTextBuffer has changed.
GtkTextBuffer::delete-range
Emitted to delete a range from a GtkTextBuffer.
GtkTextBuffer::end-user-action
Emitted at the end of a single user-visible
operation on the GtkTextBuffer.
GtkTextBuffer::insert-child-anchor
Emitted to insert a GtkTextChildAnchor in a GtkTextBuffer.
GtkTextBuffer::insert-paintable
Emitted to insert a GdkPaintable in a GtkTextBuffer.
GtkTextBuffer::insert-text
Emitted to insert text in a GtkTextBuffer.
GtkTextBuffer::mark-deleted
Emitted as notification after a GtkTextMark is deleted.
GtkTextBuffer::mark-set
Emitted as notification after a GtkTextMark is set.
GtkTextBuffer::modified-changed
Emitted when the modified bit of a GtkTextBuffer flips.
GtkTextBuffer::paste-done
Emitted after paste operation has been completed.
GtkTextBuffer::redo
Emitted when a request has been made to redo the previously undone operation.
GtkTextBuffer::remove-tag
Emitted to remove all occurrences of tag from a range
of text in a GtkTextBuffer.
GtkTextBuffer::undo
Emitted when a request has been made to undo the previous operation or set of operations that have been grouped together.
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.