pub struct SelectionToolbarRequest {
pub anchor: Rect,
pub actions: SelectionToolbarActions,
pub present_menu: bool,
}Expand description
One focused field’s selection, its applicable verbs, and whether it wants a menu now. Published every paint while focused, with or without a selection.
Fields§
§anchor: RectThe selection’s bounds (the caret rect when collapsed), in absolute logical window space.
actions: SelectionToolbarActionsA level from the field’s own state, so a hardware Cmd+C finds an answer.
The one edge: a gesture asked for the bar and it has not been dismissed.
Trait Implementations§
Source§impl Clone for SelectionToolbarRequest
impl Clone for SelectionToolbarRequest
impl Copy for SelectionToolbarRequest
Source§impl Debug for SelectionToolbarRequest
impl Debug for SelectionToolbarRequest
Source§impl PartialEq for SelectionToolbarRequest
impl PartialEq for SelectionToolbarRequest
impl StructuralPartialEq for SelectionToolbarRequest
Auto Trait Implementations§
impl Freeze for SelectionToolbarRequest
impl RefUnwindSafe for SelectionToolbarRequest
impl Send for SelectionToolbarRequest
impl Sync for SelectionToolbarRequest
impl Unpin for SelectionToolbarRequest
impl UnsafeUnpin for SelectionToolbarRequest
impl UnwindSafe for SelectionToolbarRequest
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,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.