Class TextChildAnchor

All Implemented Interfaces:
PointerInterface

public class TextChildAnchor extends Object
A `GtkTextChildAnchor` is a spot in a `GtkTextBuffer` where child widgets can
be “anchored”.

The anchor can have multiple widgets anchored, to allow for multiple views.

https://docs.gtk.org/gtk4/class.TextChildAnchor.html

  • Constructor Details

    • TextChildAnchor

      public TextChildAnchor(PointerContainer pointer)
    • TextChildAnchor

      public TextChildAnchor()
      Creates a new `GtkTextChildAnchor`.

      Usually you would then insert it into a `GtkTextBuffer` with
      [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].
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • newWithReplacementTextChildAnchor

      public static TextChildAnchor newWithReplacementTextChildAnchor(@Nonnull Str character)
      Creates a new `GtkTextChildAnchor` with the given replacement character.

      Usually you would then insert it into a `GtkTextBuffer` with
      [method@Gtk.TextBuffer.insert_child_anchor].
      Parameters:
      character -
      Returns:
      a new `GtkTextChildAnchor`
    • newWithReplacementTextChildAnchor

      public static TextChildAnchor newWithReplacementTextChildAnchor(String character)
      Creates a new `GtkTextChildAnchor` with the given replacement character.

      Usually you would then insert it into a `GtkTextBuffer` with
      [method@Gtk.TextBuffer.insert_child_anchor].
      Parameters:
      character -
      Returns:
      a new `GtkTextChildAnchor`
    • getDeleted

      public boolean getDeleted()
      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:
      %TRUE if the child anchor has been deleted from its buffer
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()