pub trait TextChildAnchorExt: IsA<TextChildAnchor> + Sealed + 'static {
    // Provided methods
    fn is_deleted(&self) -> bool { ... }
    fn widgets(&self) -> Vec<Widget> { ... }
Expand description

Trait containing all TextChildAnchor methods.



Provided Methods§


fn is_deleted(&self) -> bool

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 g_object_ref()) if you plan to use this function — otherwise all deleted child anchors will also be finalized.


true if the child anchor has been deleted from its buffer


fn widgets(&self) -> Vec<Widget>

Gets a list of all widgets anchored at this child anchor.

The order in which the widgets are returned is not defined.


an array of widgets anchored at @self

Object Safety§

This trait is not object safe.