Scoop API

scoop:scoop.window:0.1.0

NativeSemanticTextGeometry

struct NativeSemanticTextGeometry

source · line 13
public
public struct NativeSemanticTextGeometry(val context: Ptr<Unit>, val retain: FunPtr<(Ptr<Unit>) -> Unit>, val release: FunPtr<(Ptr<Unit>) -> Unit>, val range: FunPtr<(Ptr<Unit>, Long, Int, Int) -> NativeSemanticTextRange>, val lineRange: FunPtr<(Ptr<Unit>, Long) -> NativeSemanticTextRange>, val lineIndex: FunPtr<(Ptr<Unit>, Long, Int) -> Long>, val rangeAtPoint: FunPtr<(Ptr<Unit>, Double, Double) -> NativeSemanticTextRange>, val boxes: FunPtr<
        (
            Ptr<Unit>,
            Long,
            Long,
            Ptr<Unit>,
            FunPtr<(Ptr<Unit>, Double, Double, Double, Double) -> Unit>
        ) -> Int
    >, val visibleRange: FunPtr<(Ptr<Unit>) -> NativeSemanticTextRange>)

Paired native queries matching the published text and accepted scene. Coordinates are window-logical. Functions and synchronous box visitors never enter Scoop. Affinity is 0 upstream or 1 downstream; units 0..3 are grapheme, word, visual and logical line.

constructor constructor

source · line 13
public
constructor(val context: Ptr<Unit>, val retain: FunPtr<(Ptr<Unit>) -> Unit>, val release: FunPtr<(Ptr<Unit>) -> Unit>, val range: FunPtr<(Ptr<Unit>, Long, Int, Int) -> NativeSemanticTextRange>, val lineRange: FunPtr<(Ptr<Unit>, Long) -> NativeSemanticTextRange>, val lineIndex: FunPtr<(Ptr<Unit>, Long, Int) -> Long>, val rangeAtPoint: FunPtr<(Ptr<Unit>, Double, Double) -> NativeSemanticTextRange>, val boxes: FunPtr<
        (
            Ptr<Unit>,
            Long,
            Long,
            Ptr<Unit>,
            FunPtr<(Ptr<Unit>, Double, Double, Double, Double) -> Unit>
        ) -> Int
    >, val visibleRange: FunPtr<(Ptr<Unit>) -> NativeSemanticTextRange>)

function equals

source · line 13
publiccompiler-derived
operator fun equals(other: NativeSemanticTextGeometry): Boolean

This derived operation is available when each field or payload type supports same-type equality. Required types: Ptr<Unit>, FunPtr<(Ptr<Unit>) -> Unit>, FunPtr<(Ptr<Unit>, Long, Int, Int) -> NativeSemanticTextRange>, FunPtr<(Ptr<Unit>, Long) -> NativeSemanticTextRange>, FunPtr<(Ptr<Unit>, Long, Int) -> Long>, FunPtr<(Ptr<Unit>, Double, Double) -> NativeSemanticTextRange>, FunPtr<(Ptr<Unit>, Long, Long, Ptr<Unit>, FunPtr<(Ptr<Unit>, Double, Double, Double, Double) -> Unit>) -> Int>, FunPtr<(Ptr<Unit>) -> NativeSemanticTextRange>.