pub struct SelectionToolbarRequest {
pub actions: Vec<TextAction>,
pub anchor: Rect,
}Expand description
The selection toolbar the controller wants raised.
Fields§
§actions: Vec<TextAction>The commands to offer, in toolbar order.
anchor: RectThe rectangle to hang above — the selection’s bounds, or the caret’s when nothing is selected.
Implementations§
Source§impl SelectionToolbarRequest
impl SelectionToolbarRequest
Sourcepub fn placement(&self) -> OverlayPlacement
pub fn placement(&self) -> OverlayPlacement
The placement to raise this toolbar with.
AboveSelection already flips below
when the selection is against the top of the usable area, so a host
needs no fallback of its own.
Trait Implementations§
Source§impl Clone for SelectionToolbarRequest
impl Clone for SelectionToolbarRequest
Source§fn clone(&self) -> SelectionToolbarRequest
fn clone(&self) -> SelectionToolbarRequest
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 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