scoop:scoop.window:0.1.0
src/accessibility/hit.scoop
Selected production source · src/accessibility/hit.scoop
1
package scoop.window.accessibility3
import scoop.window.accessibility.native.NativeSemanticHitTest5
/** One managed owner's native reference, independent of the published projection's reference. */6
internal class SemanticHitSnapshot(val native: NativeSemanticHitTest): Closeable {7
private var closed = false8
init {9
@Unsafe10
{11
native.retain(native.context)12
}13
}14
public override fun close() {15
if (closed)16
return17
closed = true18
@Unsafe19
{20
native.release(native.context)21
}22
}23
}