Class
IdeBuffer
Instance methods
ide_buffer_addin_find_by_module_name
Locates an addin attached to the IdeBuffer
by the name of the module
that provides the addin.
since: 3.32
ide_buffer_code_action_query_finish
Completes an asynchronous request to ide_buffer_query_code_action_async().
since: 42.0
ide_buffer_dup_title
Gets a string to represent the title of the buffer. An attempt is made to make this relative to the project workdir if possible.
since: 3.32
ide_buffer_format_selection_async
Formats the selection using an available IdeFormatter
for the buffer.
since: 3.32
ide_buffer_format_selection_finish
Completes an asynchronous request to ide_buffer_format_selection_async().
since: 3.32
ide_buffer_get_changed_on_volume
Returns TRUE
if the IdeBuffer
is known to have been modified on storage
externally from this IdeBuffer
.
since: 3.32
ide_buffer_get_diagnostics
Gets the IdeDiagnostics
for the buffer if any have been registered.
since: 3.32
ide_buffer_get_failed
Gets the IdeBuffer:failed
property, denoting if the buffer has failed
in some aspect such as loading or saving.
since: 3.32
ide_buffer_get_failure
Gets a GError
representing a failure that has occurred for the buffer.
since: 3.32
ide_buffer_get_language_id
A helper to get the language identifier of the buffers current language.
since: 3.32
ide_buffer_get_loading
This checks to see if the buffer is currently loading. This is equivalent
to calling ide_buffer_get_state()
and checking for IDE_BUFFER_STATE_LOADING
.
since: 3.32
ide_buffer_get_read_only
This function returns TRUE
if the underlying file has been discovered to
be read-only. This may be used by the interface to display information to
the user about saving the file.
since: 3.32
ide_buffer_get_selection_bounds
This function acts like gtk_text_buffer_get_selection_bounds()
except that
it always places the location of the insert mark at insert
and the location
of the selection mark at selection
.
since: 3.32
ide_buffer_get_selection_range
Gets an IdeRange
to represent the current buffer selection.
since: 3.32
ide_buffer_get_style_scheme_name
Gets the name of the GtkSourceStyleScheme
from the IdeBuffer:style-scheme
property.
since: 3.32
ide_buffer_get_symbol_at_location_async
Asynchronously get a possible symbol at location
.
since: 3.32
ide_buffer_get_symbol_at_location_finish
Completes an asynchronous request to locate a symbol at a location.
since: 3.32
ide_buffer_get_symbol_resolvers
Gets the symbol resolvers for the buffer based on the current language. The resolvers in the resulting array are sorted by priority.
since: 3.32
ide_buffer_has_diagnostics
Returns TRUE
if any diagnostics have been registered for the buffer.
since: 3.32
ide_buffer_save_file_finish
Completes an asynchronous request to save the buffer via ide_buffer_save_file_async().
since: 3.32
ide_buffer_set_diagnostics
Sets the IdeDiagnostics
for the buffer. These will be used to highlight
the buffer for errors and warnings if IdeBuffer:highlight-diagnostics
is TRUE
.
since: 3.32
ide_buffer_set_style_scheme_name
Sets the IdeBuffer:style-scheme
property by locating the style scheme
matching style_scheme_name
.
since: 3.32
Methods inherited from GtkSourceBuffer (35)
Please see GtkSourceBuffer for a full list of methods.
Methods inherited from GtkTextBuffer (73)
Please see GtkTextBuffer for a full list of methods.
Properties
Ide.Buffer:buffer-manager
Sets the “buffer-manager” property, which is used by the buffer to clean-up state when the buffer is no longer in use.
since: 3.32
Ide.Buffer:change-monitor
The “change-monitor” property is an IdeBufferChangeMonitor
that will be
used to track changes in the IdeBuffer
. This can be used to show line
changes in the editor gutter.
since: 3.32
Ide.Buffer:changed-on-volume
The “changed-on-volume” property is set to TRUE
when it has been
discovered that the file represented by the IdeBuffer
has changed
externally to Builder.
since: 3.32
Ide.Buffer:diagnostics
The “diagnostics” property contains an IdeDiagnostics
that represent
the diagnostics found in the buffer.
since: 3.32
Ide.Buffer:enable-addins
The “enable-addins” property determines whether addins will be aware of
this buffer. When set to FALSE
no ide_buffer_addin_*() functions will be
called on this buffer.
since: 41.0
Ide.Buffer:failed
The “failed” property is TRUE
when the buffer has entered a failed
state such as when loading or saving the buffer to disk.
since: 3.32
Ide.Buffer:file-settings
The “file-settings” property are the settings to be used by the buffer and source-view for the underlying file.
since: 3.32
Ide.Buffer:has-diagnostics
The “has-diagnostics” property denotes that there are a non-zero number of diangostics registered for the buffer.
since: 3.32
Ide.Buffer:has-symbol-resolvers
The “has-symbol-resolvers” property is TRUE
if there are any symbol
resolvers loaded.
since: 3.32
Ide.Buffer:highlight-diagnostics
The “highlight-diagnostics” property indicates that diagnostics which are discovered should be styled.
since: 3.32
Ide.Buffer:is-temporary
The “is-temporary” property denotes the IdeBuffer:file
property points
to a temporary file. When saving the the buffer, various UI components
know to check this property and provide a file chooser to allow the user
to select the destination file.
since: 3.32
Ide.Buffer:language-id
The “language-id” property is a convenience property to set the
GtkSourceBuffer:langauge
property using a string name.
since: 3.32
Ide.Buffer:read-only
The “read-only” property is set to TRUE
when it has been
discovered that the file represented by the IdeBuffer
is read-only
on the underlying storage.
since: 3.32
Ide.Buffer:state
The “state” property can be used to determine if the buffer is currently performing any specific background work, such as loading from or saving a buffer to storage.
since: 3.32
Ide.Buffer:style-scheme-name
The “style-scheme-name” is the name of the style scheme that is used.
It is a convenience property so that you do not need to use the
GtkSourceStyleSchemeManager
to lookup style schemes.
since: 3.32
Ide.Buffer:title
The “title” for the buffer which includes some variant of the path to the underlying file.
since: 3.32
Properties inherited from GtkSourceBuffer (9)
GtkSource.Buffer:can-redo
GtkSource.Buffer:can-undo
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().
since: 3.14
GtkSource.Buffer:language
GtkSource.Buffer:max-undo-levels
Number of undo levels for the buffer. -1 means no limit. This property will only affect the default undo manager.
GtkSource.Buffer:style-scheme
Style scheme. It contains styles for syntax highlighting, optionally foreground, background, cursor color, current line color, and matching brackets style.
GtkSource.Buffer:undo-manager
Properties inherited from GtkTextBuffer (6)
Gtk.TextBuffer:copy-target-list
The list of targets this buffer supports for clipboard copying and as DND source.
since: 2.10
Gtk.TextBuffer:cursor-position
The position of the insert mark (as offset from the beginning of the buffer). It is useful for getting notified when the cursor moves.
since: 2.10
Gtk.TextBuffer:has-selection
Whether the buffer has some text currently selected.
since: 2.10
Gtk.TextBuffer:paste-target-list
The list of targets this buffer supports for clipboard pasting and as DND destination.
since: 2.10
Gtk.TextBuffer:tag-table
Gtk.TextBuffer:text
The text content of the buffer. Without child widgets and images,
see gtk_text_buffer_get_text()
for more information.
since: 2.8
Signals
Ide.Buffer::change-settled
The “change-settled” signal is emitted when the buffer has stopped being edited for a short period of time. This is useful to connect to when you want to perform work as the user is editing, but you don’t want to get in the way of their editing.
since: 3.32
Ide.Buffer::cursor-moved
This signal is emitted when the insertion location has moved. You might want to attach to this signal to update the location of the insert mark in the display.
since: 3.32
Ide.Buffer::line-flags-changed
The “line-flags-changed” signal is emitted when the buffer has detected ancillary information has changed for lines in the buffer. Such information might include diagnostics or version control information.
since: 3.32
Ide.Buffer::request-scroll-to-insert
Requests that attached views scroll to insert location.
since: 3.32
Signals inherited from GtkSourceBuffer (5)
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.
since: 2.12
GtkSourceBuffer::highlight-updated
The ::highlight-updated signal is emitted when the syntax
highlighting and [context classes][context-classes] are updated in a
certain region of the buffer
.
GtkSourceBuffer::redo
The ::redo signal is emitted to redo the last undo operation.
GtkSourceBuffer::source-mark-updated
The ::source-mark-updated signal is emitted each time
a mark is added to, moved or removed from the buffer
.
GtkSourceBuffer::undo
The ::undo signal is emitted to undo the last user action which modified the buffer.
Signals inherited from GtkTextBuffer (13)
GtkTextBuffer::apply-tag
The ::apply-tag signal is emitted to apply a tag to a
range of text in a GtkTextBuffer
.
Applying actually occurs in the default handler.
GtkTextBuffer::begin-user-action
The ::begin-user-action signal is emitted at the beginning of a single
user-visible operation on a GtkTextBuffer
.
GtkTextBuffer::changed
The ::changed signal is emitted when the content of a GtkTextBuffer
has changed.
GtkTextBuffer::delete-range
The ::delete-range signal is emitted to delete a range
from a GtkTextBuffer
.
GtkTextBuffer::end-user-action
The ::end-user-action signal is emitted at the end of a single
user-visible operation on the GtkTextBuffer
.
GtkTextBuffer::insert-child-anchor
The ::insert-child-anchor signal is emitted to insert a
GtkTextChildAnchor
in a GtkTextBuffer
.
Insertion actually occurs in the default handler.
GtkTextBuffer::insert-pixbuf
The ::insert-pixbuf signal is emitted to insert a GdkPixbuf
in a GtkTextBuffer
. Insertion actually occurs in the default handler.
GtkTextBuffer::insert-text
The ::insert-text signal is emitted to insert text in a GtkTextBuffer
.
Insertion actually occurs in the default handler.
GtkTextBuffer::mark-deleted
The ::mark-deleted signal is emitted as notification
after a GtkTextMark
is deleted.
GtkTextBuffer::mark-set
The ::mark-set signal is emitted as notification
after a GtkTextMark
is set.
GtkTextBuffer::modified-changed
The ::modified-changed signal is emitted when the modified bit of a
GtkTextBuffer
flips.
GtkTextBuffer::paste-done
The paste-done signal is emitted after paste operation has been completed.
This is useful to properly scroll the view to the end of the pasted text.
See gtk_text_buffer_paste_clipboard()
for more details.
since: 2.16
GtkTextBuffer::remove-tag
The ::remove-tag signal is emitted to remove all occurrences of tag
from
a range of text in a GtkTextBuffer
.
Removal actually occurs in the default handler.
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.