Class: Gtk::TextChildAnchor

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Constructor Details

#initialize(character) ⇒ Gtk::TextChildAnchor

Creates a new GtkTextChildAnchor with the given replacement character.

Usually you would then insert it into a GtkTextBuffer with [methodGtk.TextBuffer.insert_child_anchor].

Parameters:

  • character (String)

Instance Method Details

#deletedBoolean

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.

Returns:

  • (Boolean)

    true if the child anchor has been deleted from its buffer

#get_widgets(out_len) ⇒ Array<Gtk::Widget>

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

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

Parameters:

  • out_len (Integer)

    return location for the length of the array

Returns:

  • (Array<Gtk::Widget>)

    an array of widgets anchored at anchor