pub struct ToolbarMark {
pub id: WidgetId,
pub can_paste: bool,
pub at: Option<Point>,
}Expand description
Which field shows its selection bar, and what the clipboard held when it opened: the shell asks the platform once, on opening, not on every frame.
Fields§
§id: WidgetIdThe field the bar acts on.
can_paste: boolWhether the clipboard held text when the bar opened, so whether Paste is offered.
at: Option<Point>Where a right-click opened it, in the frame’s coordinates: the bar goes there
rather than to the selection, as the reference’s context menu goes to the last
secondary tap (milestone 618). None when it opened any other way.
Trait Implementations§
Source§impl Clone for ToolbarMark
impl Clone for ToolbarMark
impl Copy for ToolbarMark
Source§impl Debug for ToolbarMark
impl Debug for ToolbarMark
Source§impl PartialEq for ToolbarMark
impl PartialEq for ToolbarMark
impl StructuralPartialEq for ToolbarMark
Auto Trait Implementations§
impl Freeze for ToolbarMark
impl RefUnwindSafe for ToolbarMark
impl Send for ToolbarMark
impl Sync for ToolbarMark
impl Unpin for ToolbarMark
impl UnsafeUnpin for ToolbarMark
impl UnwindSafe for ToolbarMark
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