Class
IdeBufferManager
Instance methods
ide_buffer_manager_apply_edits_async
Asynchronously requests that all of edits
are applied to the buffers
in the project. If the buffer has not been loaded for a particular edit,
it will be loaded.
ide_buffer_manager_get_max_file_size
Gets the max file size that will be allowed to be loaded from disk. This is useful to protect Builder from files that would overload the various subsystems.
ide_buffer_manager_has_file
Checks to see if a buffer has been loaded which contains the contents
of file
.
ide_buffer_manager_load_file_async
Requests that file
be loaded by the buffer manager. Depending on flags
,
this may result in a new view being displayed in a Builder workspace.
ide_buffer_manager_load_file_finish
Completes an asynchronous request to ide_buffer_manager_laod_file_async().
ide_buffer_manager_save_all_async
Asynchronously requests that the IdeBufferManager
save all of the loaded
buffers to disk.
Methods inherited from GListModel (5)
g_list_model_get_item
Get the item at position
.
since: 2.44
g_list_model_get_item_type
Gets the type of the items in list
.
since: 2.44
g_list_model_get_n_items
Gets the number of items in list
.
since: 2.44
g_list_model_get_object
Get the item at position
.
since: 2.44
g_list_model_items_changed
Emits the GListModel::items-changed
signal on list
.
since: 2.44
Properties
Ide.BufferManager:max-file-size
The “max-file-size” property is the largest file size in bytes that Builder will attempt to load. Larger files will fail to load to help ensure that Builder’s buffer manager does not attempt to load files that will slow the buffer management beyond usefulness.
Properties inherited from IdeObject (2)
Ide.Object:cancellable
The “cancellable” property is a GCancellable
that can be used by operations
that will be cancelled when the IdeObject::destroy
signal is emitted on self
.
Ide.Object:parent
The parent IdeObject
, if any.
Signals
Ide.BufferManager::buffer-loaded
The “buffer-loaded” signal is emitted when an IdeBuffer
has loaded
a file from storage.
Ide.BufferManager::buffer-saved
The “buffer-saved” signal is emitted when an IdeBuffer
has been saved
to storage.
Ide.BufferManager::buffer-unloaded
The “buffer-unloaded” signal is emitted when an IdeBuffer
has been
unloaded from the buffer manager.
Signals inherited from IdeObject (1)
IdeObject::destroy
The “destroy” signal is emitted when the object should destroy itself and cleanup any state that is no longer necessary. This happens when the object has been removed from the because it was requested to be destroyed, or because a parent object is being destroyed.
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.
Signals inherited from GListModel (1)
GListModel::items-changed
This signal is emitted whenever items were added to or removed
from list
. At position
, removed
items were removed and added
items were added in their place.
since: 2.44