pub struct PlatformOutput {
pub cursor: Option<CursorIcon>,
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).
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.
Trait Implementations§
Source§impl Clone for PlatformOutput
impl Clone for PlatformOutput
Source§fn clone(&self) -> PlatformOutput
fn clone(&self) -> PlatformOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for PlatformOutput
impl Default for PlatformOutput
Source§fn default() -> PlatformOutput
fn default() -> PlatformOutput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PlatformOutput
impl RefUnwindSafe for PlatformOutput
impl Send for PlatformOutput
impl Sync for PlatformOutput
impl Unpin for PlatformOutput
impl UnsafeUnpin for PlatformOutput
impl UnwindSafe for PlatformOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more