struct NativeGeometry
source · line 19public
public struct NativeGeometry(val context: Ptr<Unit>, val retain: FunPtr<(Ptr<Unit>) -> Unit>, val release: FunPtr<(Ptr<Unit>) -> Unit>, val contains: FunPtr<(Ptr<Unit>, Double, Double) -> Int>, val toLocal: FunPtr<(Ptr<Unit>, Double, Double) -> NativeGeometryPoint>, val mapRect: FunPtr<(Ptr<Unit>, Rect, Int) -> NativeGeometryRect>)
A borrowed native snapshot. Retain before saving or handing off; release each owned reference. The paired functions support concurrent native queries without entering Scoop or its runtime.
field toLocal
source · line 24public
val toLocal: FunPtr<(Ptr<Unit>, Double, Double) -> NativeGeometryPoint>
constructor constructor
source · line 19public
constructor(val context: Ptr<Unit>, val retain: FunPtr<(Ptr<Unit>) -> Unit>, val release: FunPtr<(Ptr<Unit>) -> Unit>, val contains: FunPtr<(Ptr<Unit>, Double, Double) -> Int>, val toLocal: FunPtr<(Ptr<Unit>, Double, Double) -> NativeGeometryPoint>, val mapRect: FunPtr<(Ptr<Unit>, Rect, Int) -> NativeGeometryRect>)
parameter contains
source · line 23public
val contains: FunPtr<(Ptr<Unit>, Double, Double) -> Int>
parameter mapRect
source · line 26public
val mapRect: FunPtr<(Ptr<Unit>, Rect, Int) -> NativeGeometryRect>
parameter release
source · line 22public
val release: FunPtr<(Ptr<Unit>) -> Unit>
parameter context
source · line 20public
val context: Ptr<Unit>
parameter retain
source · line 21public
val retain: FunPtr<(Ptr<Unit>) -> Unit>
parameter toLocal
source · line 24public
val toLocal: FunPtr<(Ptr<Unit>, Double, Double) -> NativeGeometryPoint>
field context
source · line 20public
val context: Ptr<Unit>
field release
source · line 22public
val release: FunPtr<(Ptr<Unit>) -> Unit>
field retain
source · line 21public
val retain: FunPtr<(Ptr<Unit>) -> Unit>
field mapRect
source · line 26public
val mapRect: FunPtr<(Ptr<Unit>, Rect, Int) -> NativeGeometryRect>
clipped is 0 for full transformed bounds or 1 for the exact visible intersection.
field contains
source · line 23public
val contains: FunPtr<(Ptr<Unit>, Double, Double) -> Int>
function equals
source · line 19publiccompiler-derived
operator fun equals(other: NativeGeometry): 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>, Double, Double) -> Int>, FunPtr<(Ptr<Unit>, Double, Double) -> NativeGeometryPoint>, FunPtr<(Ptr<Unit>, Rect, Int) -> NativeGeometryRect>.