Skip to main content

Crate repose_platform

Crate repose_platform 

Source
Expand description

Platform runners

Re-exports§

pub use render::ImageHandleGuard;
pub use render::RenderCommand;
pub use render::RenderContext;

Modules§

a11y
render
Render context for image upload commands

Macros§

handle_arrow_key_spatial_nav
Handle arrow key spatial focus navigation.
handle_text_undo_redo

Traits§

A11yBridge
Bridge from Repose’s semantics tree to platform accessibility APIs.

Functions§

compose_frame
Compose a single frame with density and text-scale applied, returning Frame.
hide_app_window
push_deeplink
Push a deeplink payload from any thread (JNI callback, CLI watcher, etc).
run_desktop_app
set_about_to_wait_callback
Register a callback invoked on every AboutToWait (used for draining tray commands).
set_app_window
Store the application window handle (called once during app setup).
set_close_to_tray
The close button hides the window (via set_visible(false)) instead of closing. The tray “Quit” action still exits the process regardless.
set_event_loop_proxy
Store the event loop proxy so tray commands / deeplinks can wake the event loop.
set_on_deeplink
Register a callback to receive deeplink payloads (raw bytes)
show_app_window
Show the application window.
tf_ensure_visible_in_rect
Helper: ensure caret visibility for a TextFieldState inside a given rect (px).
wake_event_loop
Wake the winit event loop from another thread (e.g. tray’s GTK thread, JNI callback).
window_is_visible
Returns whether the application window is currently visible.