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.
-
Untyped pointer to the underlying
GtkTextChildAnchorinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
text_child_anchor_ptrDefault implementationTyped pointer to the underlying
GtkTextChildAnchorinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkTextChildAnchorinstance.Declaration
Swift
var text_child_anchor_ptr: UnsafeMutablePointer<GtkTextChildAnchor>! { get } -
Required Initialiser for types conforming to
TextChildAnchorProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
getDeleted()Extension methodDetermines 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 methodGets 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! -
deletedExtension methodDetermines 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 } -
widgetsExtension methodGets 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 } -
parentInstanceExtension methodUndocumented
Declaration
Swift
@inlinable var parentInstance: GObject { get }
View on GitHub
Install in Dash
TextChildAnchorProtocol Protocol Reference