TextChildAnchorProtocol
public protocol TextChildAnchorProtocol : ObjectProtocol
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.
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
GtkTextChildAnchor
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
text_child_anchor_ptr
Default implementationTyped 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)
-
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(outLen:
Extension method) Gets a list of all widgets anchored at this child anchor.
The order in which the widgets are returned is not defined.
Declaration
Swift
@inlinable func getWidgets(outLen: UnsafeMutablePointer<guint>!) -> UnsafeMutablePointer<UnsafeMutablePointer<GtkWidget>?>!
-
deleted
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 var deleted: Bool { get }
-
parentInstance
Extension methodUndocumented
Declaration
Swift
@inlinable var parentInstance: GObject { get }