pub struct PointerButtons {
pub primary: bool,
pub secondary: bool,
pub auxiliary: bool,
}Expand description
Which pointer buttons are held right now.
The pointer’s half of crate::modifiers, and there for the same reason: a gesture that behaves one way
per button has to ask, and the callbacks it is written against report where the pointer is, not what
started it. A modeller is the case — drag to orbit, right-drag to pan — and widening on_drag to carry a
button would make the whole catalogue pay for a question two widgets ask.
Fields§
§primary: bool§secondary: bool§auxiliary: boolImplementations§
Trait Implementations§
Source§impl Clone for PointerButtons
impl Clone for PointerButtons
Source§fn clone(&self) -> PointerButtons
fn clone(&self) -> PointerButtons
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 moreimpl Copy for PointerButtons
Source§impl Debug for PointerButtons
impl Debug for PointerButtons
Source§impl Default for PointerButtons
impl Default for PointerButtons
Source§fn default() -> PointerButtons
fn default() -> PointerButtons
Returns the “default value” for a type. Read more
impl Eq for PointerButtons
Source§impl PartialEq for PointerButtons
impl PartialEq for PointerButtons
impl StructuralPartialEq for PointerButtons
Auto Trait Implementations§
impl Freeze for PointerButtons
impl RefUnwindSafe for PointerButtons
impl Send for PointerButtons
impl Sync for PointerButtons
impl Unpin for PointerButtons
impl UnsafeUnpin for PointerButtons
impl UnwindSafe for PointerButtons
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