Platform services the library needs but does not own, set by run_app. Tests leave them null.
ui := headless();
defer free_ui(*ui);
ui.hooks.clipboard_get = () -> string { return "from the hook"; };
assert(ui.hooks.clipboard_get() == "from the hook");Fields
- clipboard_get: () -> string
- clipboard_set: (text: string)
- set_cursor: (kind: Cursor_Kind)