sh_create method

Pointer<SelectionHook> sh_create()

Create a new SelectionHook instance.

Allocates and initializes platform-specific resources. Call sh_set_selection_callback BEFORE sh_start.

@return Opaque handle, or NULL on failure. On failure, call sh_last_global_error() for details. @thread_safety Safe from any thread.

Implementation

ffi.Pointer<SelectionHook> sh_create() {
  return _sh_create();
}