Skip to main content

Crate repose_platform

Crate repose_platform 

Source
Expand description

Platform runners

Modules§

gamepad
Gamepad hardware backends.
render
Deprecated: import from repose_core directly. Kept for backward compatibility - will be removed in a future release.
runner_common
Shared runner helpers extracted from duplicated desktop/web/android App impls.
sensor
Motion-sensor hardware backends (gyroscope / accelerometer).
window_v2
Android/Web: collect_screens returns primary; apply is no-op like compose.

Structs§

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

Enums§

AppLifecycle
RenderCommand

Traits§

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

Functions§

add_deeplink_listener
add_lifecycle_listener
current_lifecycle
hide_app_window
install_default_logger
Default sink so a game sees the engine’s own diagnostics without wiring a logger. A logger the host already installed wins.
process_deeplinks
process_lifecycle
push_deeplink
Push a deeplink payload and wake the UI loop. Thin wrapper over repose_app.
push_lifecycle
Non-Android hosts and tests: queue a lifecycle transition and wake the loop when a proxy exists. Prefer pushing only on real visibility transitions.
push_window_lifecycle
Desktop visibility policy: hidden or occluded windows report Background, visible windows report Foreground.
remove_deeplink_listener
remove_lifecycle_listener
run_desktop_appDeprecated
Run a desktop app with default AppConfig.
run_desktop_app_with_config
Run a desktop app with the given AppConfig.
run_pre_redraw
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
set_on_lifecycle
set_pre_redraw
show_app_window
Show the application window.
tf_ensure_visible_in_rect
Helper: ensure caret visibility - now in repose_ui::textfield::tf_ensure_visible_in_rect. Ensure caret visibility for a TextFieldState inside a given rect (px). Extracted from repose-platform::tf_ensure_visible_in_rect for better layering.
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.