pub struct PlatformOutput {
pub cursor: Option<CursorIcon>,
pub cursor_grab: CursorGrabMode,
pub ime_allowed: bool,
pub ime_cursor_area: Option<(f64, f64, f64, f64)>,
pub clipboard_text: Option<String>,
pub ime_purpose: ImePurposeHint,
pub ime_auto_correct: bool,
pub ime_capitalization: KeyboardCapitalization,
pub keyboard_type: KeyboardType,
pub window_theme_dark: Option<bool>,
}Expand description
Platform-directed side effects requested by the UI.
Fields§
§cursor: Option<CursorIcon>Cursor to display (None = default/system cursor).
cursor_grab: CursorGrabModePointer confinement the app declared this frame. The host
applies it to the window and releases on None; the field is
always a declaration for the frame, not an edge, so a host can
dedupe it however it likes.
ime_allowed: boolWhether IME input is allowed for the currently focused widget.
ime_cursor_area: Option<(f64, f64, f64, f64)>IME cursor area in logical (DPI-scaled) coordinates: (x, y, width, height).
clipboard_text: Option<String>Text to write to the clipboard (transient - set once per frame, cleared after read).
ime_purpose: ImePurposeHintIME / soft-keyboard hints for the focused text field. The host should
apply these to the OS keyboard and to set_ime_purpose / web attrs.
ime_auto_correct: bool§ime_capitalization: KeyboardCapitalization§keyboard_type: KeyboardType§window_theme_dark: Option<bool>Whether the app theme is dark, so the host can sync OS window chrome
(titlebar, caption buttons). None = don’t touch the OS chrome.