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
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(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>?>! -
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 } -
parentInstanceExtension methodUndocumented
Declaration
Swift
@inlinable var parentInstance: GObject { get }
View on GitHub
Install in Dash
TextChildAnchorProtocol Protocol Reference