GPUI.Native (gpui v0.2.0-rc.1)

Copy Markdown View Source

Backend-neutral native boundary used by GPUI runtime and resource APIs.

Summary

Functions

await_frame(runtime, window_id, timeout_ms)

await_frame_after(runtime, window_id, generation, timeout_ms)

backend()

@spec backend() :: module()

Returns the configured native backend module.

close_window(runtime, window_id)

compiled?()

@spec compiled?() :: boolean()

Reports whether the configured backend loaded a native implementation.

decode_image(bytes)

drain_events(runtime)

drop_resource(runtime, resource_id)

frame_token(runtime, window_id)

host_info()

inject_event(runtime, event)

native_test_advance(session, milliseconds)

native_test_bounds(session, target)

native_test_click(session, target)

native_test_click_at(session, x, y)

native_test_events(session)

native_test_focus(session, target)

native_test_idle(session)

native_test_input(session, text)

native_test_key(session, key)

native_test_render(session, tree)

native_test_resize(session, width, height)

native_test_scroll(session, target, delta_x, delta_y)

native_test_start(width, height)

native_test_stop(session)

open_window(runtime, window)

put_resource(runtime, resource_id, resource)

set_app_identity(identifier, name)

set_theme(runtime, mode)

start_runtime()

stop_runtime(runtime)

text_buffer_new(text, revision, selections)

text_buffer_redo(buffer, base_revision)

text_buffer_snapshot(buffer)

text_buffer_transact(buffer, transaction)

text_buffer_undo(buffer, base_revision)

update_window(runtime, window_id, tree)