Tepl.Buffer¶
- Subclasses:
None
Methods¶
- Inherited:
GtkSource.Buffer (36), Gtk.TextBuffer (74), GObject.Object (37)
- Structs:
class |
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
GtkSource.Buffer (3), Gtk.TextBuffer (13), GObject.Object (7)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r |
|||
r |
Signals¶
- Inherited:
GtkSource.Buffer (5), Gtk.TextBuffer (13), GObject.Object (1)
Name |
Short Description |
|---|---|
The |
Fields¶
- Inherited:
GtkSource.Buffer (5), Gtk.TextBuffer (13), GObject.Object (1)
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Tepl.Buffer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new
Tepl.Buffer.- Return type:
New in version 1.0.
- connect_style_scheme_settings()¶
Connects
Tepl.Settings:style-scheme-idtoGtkSource.Buffer:style-scheme.New in version 6.11.
- get_file()¶
-
Returns the
Tepl.Fileof self. The returned object is guaranteed to be the same for the lifetime of self.Tepl.Buffercreates theTepl.FilewithTepl.AbstractFactory.create_file().New in version 1.0.
- get_full_title()¶
- Returns:
the self full title. Free the return value with
GLib.free() when no longer needed.- Return type:
Returns a title suitable for a
Gtk.Windowtitle. It contains (in that order):New in version 3.0.
- get_metadata()¶
- Returns:
the associated
Tepl.Metadata.- Return type:
Returns the
Tepl.Metadataof self. The returned object is guaranteed to be the same for the lifetime of self.New in version 5.0.
- get_selection_type()¶
- Returns:
the current
Tepl.SelectionType.- Return type:
New in version 1.0.
- get_short_title()¶
- Returns:
the self short title. Free the return value with
GLib.free() when no longer needed.- Return type:
Returns a title suitable for a tab label. It contains (in that order):
‘*’ if the buffer is modified;
the
Tepl.File:short-name.
New in version 3.0.
- is_untouched()¶
-
Returns whether self is untouched.
This function is for example useful to know if we can re-use this buffer to load a file, instead of opening a new tab or window.
For this function to return
True, the self must be empty, non-modified, the undo/redoGtkSource.Bufferhistory must be empty, and theTepl.File:locationmust beNone.New in version 1.0.
- load_metadata_from_metadata_manager()¶
Calls
Tepl.MetadataManager.copy_from() forTepl.File:location(if notNone) to the associatedTepl.Metadataof self.New in version 5.0.
- save_metadata_into_metadata_manager()¶
Calls
Tepl.MetadataManager.merge_into() forTepl.File:location(if notNone) from the associatedTepl.Metadataof self.New in version 5.0.
- do_tepl_cursor_moved() virtual¶
Signal Details¶
- Tepl.Buffer.signals.tepl_cursor_moved(buffer)¶
- Signal Name:
tepl-cursor-moved- Flags:
- Parameters:
buffer (
Tepl.Buffer) – The object which received the signal
The
::tepl-cursor-movedsignal is emitted when the insert mark is moved explicitely or when the buffer changes (insert/delete).A typical use-case for this signal is to update the cursor position in a statusbar.
New in version 2.0.
Property Details¶
- Tepl.Buffer.props.tepl_full_title¶
-
The full title. See
Tepl.Buffer.get_full_title().New in version 3.0.
- Tepl.Buffer.props.tepl_short_title¶
-
The short title. See
Tepl.Buffer.get_short_title().New in version 3.0.