Scoop API

scoop:scoop.graphics:0.1.0

NativeGeometry

struct NativeGeometry

source · line 19
public
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.

constructor constructor

source · line 19
public
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>)