pub enum ContextMenuButtonType {
Cut,
Copy,
Paste,
SelectAll,
Delete,
LookUp,
SearchWeb,
Share,
LiveTextInput,
Custom,
}Expand description
The buttons that can appear in a context menu by default.
See also:
ContextMenuButtonItem, which uses this enum to describe a button in a context menu.
Variants§
Cut
A button that cuts the current text selection.
Copy
A button that copies the current text selection.
Paste
A button that pastes the clipboard contents into the focused text field.
SelectAll
A button that selects all the contents of the focused text field.
Delete
A button that deletes the current text selection.
LookUp
A button that looks up the current text selection.
SearchWeb
A button that launches a web search for the current text selection.
A button that displays the share screen for the current text selection.
LiveTextInput
A button for starting Live Text input.
Custom
Anything other than the default button types.
Trait Implementations§
Source§impl Clone for ContextMenuButtonType
impl Clone for ContextMenuButtonType
impl Copy for ContextMenuButtonType
Source§impl Debug for ContextMenuButtonType
impl Debug for ContextMenuButtonType
impl Eq for ContextMenuButtonType
Source§impl Hash for ContextMenuButtonType
impl Hash for ContextMenuButtonType
Source§impl PartialEq for ContextMenuButtonType
impl PartialEq for ContextMenuButtonType
impl StructuralPartialEq for ContextMenuButtonType
Auto Trait Implementations§
impl Forget for ContextMenuButtonType
impl Freeze for ContextMenuButtonType
impl Move for ContextMenuButtonType
impl RefUnwindSafe for ContextMenuButtonType
impl Send for ContextMenuButtonType
impl Sync for ContextMenuButtonType
impl Unpin for ContextMenuButtonType
impl UnsafeUnpin for ContextMenuButtonType
impl UnwindSafe for ContextMenuButtonType
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.