pub struct SecondaryClaim {
pub widget: String,
pub click: Option<String>,
pub drag: Option<String>,
}Expand description
What a widget takes of the secondary button: the click, the drag, or both, each with what it does there.
Fields§
§widget: StringThe widget, as people know it (Curve editor): how the shortcuts
editor and agents name it.
click: Option<String>The secondary click is the widget’s, doing this (empty: not said).
drag: Option<String>The secondary drag is the widget’s, doing this (empty: not said).
Implementations§
Source§impl SecondaryClaim
impl SecondaryClaim
Sourcepub fn new(widget: impl Into<String>) -> Self
pub fn new(widget: impl Into<String>) -> Self
A claim of nothing yet, by a widget of this name.
Sourcepub fn click(self, does: impl Into<String>) -> Self
pub fn click(self, does: impl Into<String>) -> Self
Claims the secondary click, saying what it does ("": the
shortcuts editor does not list it).
Trait Implementations§
Source§impl Clone for SecondaryClaim
impl Clone for SecondaryClaim
Source§fn clone(&self) -> SecondaryClaim
fn clone(&self) -> SecondaryClaim
Returns a duplicate of the value. Read more
1.0.0 · 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 SecondaryClaim
impl Debug for SecondaryClaim
Source§impl Default for SecondaryClaim
impl Default for SecondaryClaim
Source§fn default() -> SecondaryClaim
fn default() -> SecondaryClaim
Returns the “default value” for a type. Read more
Source§impl PartialEq for SecondaryClaim
impl PartialEq for SecondaryClaim
Source§impl Serialize for SecondaryClaim
impl Serialize for SecondaryClaim
impl Eq for SecondaryClaim
impl StructuralPartialEq for SecondaryClaim
Auto Trait Implementations§
impl Freeze for SecondaryClaim
impl RefUnwindSafe for SecondaryClaim
impl Send for SecondaryClaim
impl Sync for SecondaryClaim
impl Unpin for SecondaryClaim
impl UnsafeUnpin for SecondaryClaim
impl UnwindSafe for SecondaryClaim
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more