pub enum ChromeAction {
StartWindowDrag,
StartWindowResize {
edge: ResizeEdge,
},
SetCursor {
cursor: CursorStyle,
},
}Expand description
Native-window chrome operation requested by a routed UI event.
Values are host intents only. The runtime does not move, resize, or mutate a platform window until an adapter consumes the action.
§Examples
use ailloli_ui_runtime::input::{ChromeAction, ResizeEdge};
let action = ChromeAction::StartWindowResize { edge: ResizeEdge::SW };
assert_eq!(action, ChromeAction::StartWindowResize { edge: ResizeEdge::SW });Variants§
StartWindowDrag
Begin an operating-system window drag using the initiating pointer event.
StartWindowResize
Begin interactive native resize from edge.
Fields
§
edge: ResizeEdgeNative window edge or corner that follows the pointer.
SetCursor
Change the native cursor until another request supersedes it.
Fields
§
cursor: CursorStyleCursor role the native host should display.
Trait Implementations§
Source§impl Clone for ChromeAction
impl Clone for ChromeAction
Source§fn clone(&self) -> ChromeAction
fn clone(&self) -> ChromeAction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChromeAction
impl Debug for ChromeAction
Source§impl PartialEq for ChromeAction
impl PartialEq for ChromeAction
impl Eq for ChromeAction
impl StructuralPartialEq for ChromeAction
Auto Trait Implementations§
impl Freeze for ChromeAction
impl RefUnwindSafe for ChromeAction
impl Send for ChromeAction
impl Sync for ChromeAction
impl Unpin for ChromeAction
impl UnwindSafe for ChromeAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.