TextChildAnchorProtocol

public protocol TextChildAnchorProtocol : ObjectProtocol

A GtkTextChildAnchor is a spot in the buffer where child widgets can be “anchored” (inserted inline, as if they were characters). The anchor can have multiple widgets anchored, to allow for multiple views.

The TextChildAnchorProtocol protocol exposes the methods and properties of an underlying GtkTextChildAnchor instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see TextChildAnchor. Alternatively, use TextChildAnchorRef as a lighweight, unowned reference if you already have an instance you just want to use.

  • ptr

    Untyped pointer to the underlying GtkTextChildAnchor instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • text_child_anchor_ptr Default implementation

    Typed pointer to the underlying GtkTextChildAnchor instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GtkTextChildAnchor instance.

    Declaration

    Swift

    var text_child_anchor_ptr: UnsafeMutablePointer<GtkTextChildAnchor>! { get }
  • Required Initialiser for types conforming to TextChildAnchorProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

TextChildAnchor Class: TextChildAnchorProtocol extension (methods and fields)

  • getDeleted() Extension method

    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.

    Declaration

    Swift

    @inlinable
    func getDeleted() -> Bool
  • getWidgets() Extension method

    Gets a list of all widgets anchored at this child anchor. The returned list should be freed with g_list_free().

    Declaration

    Swift

    @inlinable
    func getWidgets() -> GLib.ListRef!
  • deleted Extension method

    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.

    Declaration

    Swift

    @inlinable
    var deleted: Bool { get }
  • widgets Extension method

    Gets a list of all widgets anchored at this child anchor. The returned list should be freed with g_list_free().

    Declaration

    Swift

    @inlinable
    var widgets: GLib.ListRef! { get }
  • parentInstance Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var parentInstance: GObject { get }