Ide.BufferManager
Description: Reference for Ide.BufferManager

### Class

# IdeBufferManager

#### Description

    final class Ide.BufferManager : Ide.Object {
      /* No available fields */
    }

No description available.

#### Hierarchy

#### Ancestors

- IdeObject
- GObject

#### Implements

- GListModel

#### Functions

###### ide_buffer_manager_from_context

Gets the `IdeBufferManager` for the `IdeContext`.

Available since: 3.32

#### 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.

Available since: 3.32

###### ide_buffer_manager_apply_edits_finish

No description available.

###### ide_buffer_manager_find_buffer

Locates the `IdeBuffer` that matches `GFile`, if any.

Available since: 3.32

###### ide_buffer_manager_foreach

Calls `foreach_func` for every buffer registered.

Available since: 3.32

###### 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.

Available since: 3.32

###### ide_buffer_manager_has_file

Checks to see if a buffer has been loaded which contains the contents of `file`.

Available since: 3.32

###### 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.

Available since: 3.32

###### ide_buffer_manager_load_file_finish

Completes an asynchronous request to ide_buffer_manager_laod_file_async().

Available since: 3.32

###### ide_buffer_manager_reload_all_async

No description available.

###### ide_buffer_manager_reload_all_finish

No description available.

###### ide_buffer_manager_save_all_async

Asynchronously requests that the `IdeBufferManager` save all of the loaded buffers to disk.

Available since: 3.32

###### ide_buffer_manager_save_all_finish

Completes an asynchronous request to save all buffers.

Available since: 3.32

###### ide_buffer_manager_set_max_file_size

No description available.

##### Methods inherited from IdeObject (28)

Please see IdeObject for a full list of methods.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

##### Methods inherited from GListModel (5)

###### g_list_model_get_item

Get the item at `position`.

Available since: 2.44

###### g_list_model_get_item_type

Gets the type of the items in `list`.

Available since: 2.44

###### g_list_model_get_n_items

Gets the number of items in `list`.

Available since: 2.44

###### g_list_model_get_object

Get the item at `position`.

Available since: 2.44

###### g_list_model_items_changed

Emits the `GListModel::items-changed` signal on `list`.

Available 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.

Available since: 3.32

##### 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`.

Available since: 3.32

###### Ide.Object:parent

The parent `IdeObject`, if any.

Available since: 3.32

#### Signals

###### Ide.BufferManager::buffer-loaded

The “buffer-loaded” signal is emitted when an `IdeBuffer` has loaded a file from storage.

Available since: 3.32

###### Ide.BufferManager::buffer-saved

The “buffer-saved” signal is emitted when an `IdeBuffer` has been saved to storage.

Available since: 3.32

###### Ide.BufferManager::buffer-unloaded

The “buffer-unloaded” signal is emitted when an `IdeBuffer` has been unloaded from the buffer manager.

Available since: 3.32

###### Ide.BufferManager::load-buffer

No description available.

##### Signals inherited from IdeObject (1)

###### Ide.Object::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.

Available since: 3.32

##### Signals inherited from GObject (1)

###### GObject.Object::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)

###### Gio.ListModel::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.

Available since: 2.44

#### Class structure

    struct IdeBufferManagerClass {
      IdeObjectClass parent_class;

    }

###### Class members

`parent_class` |
    IdeObjectClass
| No description available.