pub struct SelectionToolbarActions {
pub copy: bool,
pub cut: bool,
pub paste: bool,
pub select_all: bool,
}Expand description
Which clipboard verbs apply to the current selection — the enabled set, not a menu layout.
A field computes these from its own state (an empty selection has nothing to copy; a read-only field cannot cut or paste; a field whose whole content is already selected offers no select-all), and whoever draws the menu decides how to present a disabled verb — by omitting it, greying it, or ignoring the distinction.
Fields§
§copy: boolCopy the selection to the host clipboard.
cut: boolCut the selection to the host clipboard.
paste: boolReplace the selection with the host clipboard’s contents.
select_all: boolSelect the field’s whole content.
Trait Implementations§
Source§impl Clone for SelectionToolbarActions
impl Clone for SelectionToolbarActions
impl Copy for SelectionToolbarActions
Source§impl Debug for SelectionToolbarActions
impl Debug for SelectionToolbarActions
Source§impl Default for SelectionToolbarActions
impl Default for SelectionToolbarActions
impl Eq for SelectionToolbarActions
Source§impl Hash for SelectionToolbarActions
impl Hash for SelectionToolbarActions
Source§impl PartialEq for SelectionToolbarActions
impl PartialEq for SelectionToolbarActions
impl StructuralPartialEq for SelectionToolbarActions
Auto Trait Implementations§
impl Freeze for SelectionToolbarActions
impl RefUnwindSafe for SelectionToolbarActions
impl Send for SelectionToolbarActions
impl Sync for SelectionToolbarActions
impl Unpin for SelectionToolbarActions
impl UnsafeUnpin for SelectionToolbarActions
impl UnwindSafe for SelectionToolbarActions
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.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.