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
AtkTextRange
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
text_range_ptr
Default implementationTyped pointer to the underlying
AtkTextRange
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkTextRange
instance.Declaration
Swift
var text_range_ptr: UnsafeMutablePointer<AtkTextRange>! { get }
-
Required Initialiser for types conforming to
TextRangeProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
bounds
Extension methodA rectangle giving the bounds of the text range
Declaration
Swift
@inlinable var bounds: AtkTextRectangle { get set }
-
startOffset
Extension methodThe start offset of a AtkTextRange
Declaration
Swift
@inlinable var startOffset: gint { get set }
-
endOffset
Extension methodThe end offset of a AtkTextRange
Declaration
Swift
@inlinable var endOffset: gint { get set }
-
content
Extension methodThe text in the text range
Declaration
Swift
@inlinable var content: UnsafeMutablePointer<gchar>! { get set }