Foundry.TextBuffer¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
|||
r |
Signals¶
None
Fields¶
None
Class Details¶
- class Foundry.TextBuffer¶
- Bases:
- Structure:
- add_commit_notify(flags, commit_notify, *user_data)¶
- Parameters:
flags (
Foundry.TextBufferNotifyFlags) – non-zero flags to dispatchcommit_notify (
Foundry.TextBufferCommitNotify) –
- Returns:
a non-zero commit handler id if supported; otherwise zero.
- Return type:
Adds a new commit notify handler.
If the implementation does not support this, zero is returned.
New in version 1.1.
- apply_edit(edit)¶
- Parameters:
edit (
Foundry.TextEdit) –- Return type:
- dup_contents()¶
- Returns:
a
GLib.BytesorNone- Return type:
GLib.BytesorNone
Gets the contents of the buffer as a [struct`GLib`.Bytes].
- dup_language_id()¶
-
Gets the GtkSourceView-style identifier for the language of the buffer such as “c” or “js”.
- emit_changed()¶
- get_change_count()¶
- Return type:
Gets the number of changes that have occurred to buffer.
This is generally just a monotonic number.
- get_iter_at_offset(iter, offset)¶
- Parameters:
iter (
Foundry.TextIter) –offset (
int) –
- get_start_iter(iter)¶
- Parameters:
iter (
Foundry.TextIter) –
- remove_commit_notify(commit_notify_handler)¶
- Parameters:
commit_notify_handler (
int) – the previously registered non-zero commit handler
Remove a commit notify handler.
New in version 1.1.
- settle()¶
- Returns:
- Return type:
Gets a
Dex.Futurethat will resolve after short delay when changes have completed.
- do_add_commit_notify(flags, commit_notify, *user_data) virtual¶
- Parameters:
flags (
Foundry.TextBufferNotifyFlags) – non-zero flags to dispatchcommit_notify (
Foundry.TextBufferCommitNotify) –
- Returns:
a non-zero commit handler id if supported; otherwise zero.
- Return type:
Adds a new commit notify handler.
If the implementation does not support this, zero is returned.
New in version 1.1.
- do_apply_edit(edit) virtual¶
- Parameters:
edit (
Foundry.TextEdit) –- Return type:
- do_dup_contents() virtual¶
- Returns:
a
GLib.BytesorNone- Return type:
GLib.BytesorNone
Gets the contents of the buffer as a [struct`GLib`.Bytes].
- do_dup_language_id() virtual¶
-
Gets the GtkSourceView-style identifier for the language of the buffer such as “c” or “js”.
- do_get_change_count() virtual¶
- Return type:
Gets the number of changes that have occurred to buffer.
This is generally just a monotonic number.
- do_iter_init(iter) virtual¶
- Parameters:
iter (
Foundry.TextIter) –
- do_remove_commit_notify(commit_notify_handler) virtual¶
- Parameters:
commit_notify_handler (
int) – the previously registered non-zero commit handler
Remove a commit notify handler.
New in version 1.1.
- do_settle() virtual¶
- Returns:
- Return type:
Gets a
Dex.Futurethat will resolve after short delay when changes have completed.
Property Details¶
- Foundry.TextBuffer.props.context¶
- Name:
context- Type:
- Default Value:
- Flags: