Gtk.TextChildAnchor¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
||
segment |
r |
Class Details¶
- class Gtk.TextChildAnchor(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Marks a spot in a
GtkTextBufferwhere child widgets can be “anchored”.The anchor can have multiple widgets anchored, to allow for multiple views.
- classmethod new()[source]¶
- Returns:
a new
GtkTextChildAnchor- Return type:
Creates a new
GtkTextChildAnchor.Usually you would then insert it into a
GtkTextBufferwith [method`Gtk`.TextBuffer.insert_child_anchor]. To perform the creation and insertion in one step, use the convenience function [method`Gtk`.TextBuffer.create_child_anchor].
- classmethod new_with_replacement(character)[source]¶
- Parameters:
character (
str) – a replacement character- Returns:
a new
GtkTextChildAnchor- Return type:
Creates a new
GtkTextChildAnchorwith the given replacement character.Usually you would then insert it into a
GtkTextBufferwith [method`Gtk`.TextBuffer.insert_child_anchor].New in version 4.6.
- get_deleted()[source]¶
-
Determines whether a child anchor has been deleted from the buffer.
Keep in mind that the child anchor will be unreferenced when removed from the buffer, so you need to hold your own reference (with
GObject.Object.ref()) if you plan to use this function — otherwise all deleted child anchors will also be finalized.