Skip to main content

Crate repose_platform

Crate repose_platform 

Source
Expand description

Platform runners

Modules§

a11y
render
Re-export RenderContext from repose-core for backward compatibility.

Macros§

handle_text_undo_redo

Structs§

AppConfig
Configuration for run_desktop_app.
ImageHandleGuard
RAII guard that removes the image when dropped
RenderContext
ReposeOptions
Options common to all platforms.

Enums§

AppLifecycle
Coarse application lifecycle state, derived from the runner’s suspended or resumed callbacks (eg. Android activity pause/resume).
RenderCommand

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.
current_lifecycle
Current lifecycle state, if the runner has reported one yet.
hide_app_window
push_deeplink
Push a deeplink payload from any thread (JNI callback, CLI watcher, etc).
run_desktop_appDeprecated
Run a desktop app with default AppConfig.
run_desktop_app_with_config
Run a desktop app with the given AppConfig.
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)
set_on_lifecycle
Register a callback for coarse app lifecycle (foreground/background).
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.