TextRangeProtocol
public protocol TextRangeProtocol
A structure used to describe a text range.
The TextRangeProtocol protocol exposes the methods and properties of an underlying AtkTextRange 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 TextRange.
Alternatively, use TextRangeRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
AtkTextRangeinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
text_range_ptrDefault implementationTyped pointer to the underlying
AtkTextRangeinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkTextRangeinstance.Declaration
Swift
var text_range_ptr: UnsafeMutablePointer<AtkTextRange>! { get } -
Required Initialiser for types conforming to
TextRangeProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
boundsExtension methodA rectangle giving the bounds of the text range
Declaration
Swift
@inlinable var bounds: AtkTextRectangle { get set } -
startOffsetExtension methodThe start offset of a AtkTextRange
Declaration
Swift
@inlinable var startOffset: gint { get set } -
endOffsetExtension methodThe end offset of a AtkTextRange
Declaration
Swift
@inlinable var endOffset: gint { get set } -
contentExtension methodThe text in the text range
Declaration
Swift
@inlinable var content: UnsafeMutablePointer<gchar>! { get set }
View on GitHub
Install in Dash
TextRangeProtocol Protocol Reference