scoop:scoop.window:0.1.0
src/accessibility/text_geometry.scoop
Selected production source · src/accessibility/text_geometry.scoop
1
package scoop.window.accessibility3
import scoop.window.accessibility.native.NativeSemanticTextGeometry5
/** One reference, separate from both candidate scenes and published native projections. */6
internal class SemanticTextSnapshot(val native: NativeSemanticTextGeometry): 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
}