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>,
}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).
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