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.

  • ptr

    Untyped pointer to the underlying AtkTextRange instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • text_range_ptr Default implementation

    Typed 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)

TextRange Record: TextRangeProtocol extension (methods and fields)

  • bounds Extension method

    A rectangle giving the bounds of the text range

    Declaration

    Swift

    @inlinable
    var bounds: AtkTextRectangle { get set }
  • startOffset Extension method

    The start offset of a AtkTextRange

    Declaration

    Swift

    @inlinable
    var startOffset: gint { get set }
  • endOffset Extension method

    The end offset of a AtkTextRange

    Declaration

    Swift

    @inlinable
    var endOffset: gint { get set }
  • content Extension method

    The text in the text range

    Declaration

    Swift

    @inlinable
    var content: UnsafeMutablePointer<gchar>! { get set }