Enum xcb::x::ButtonIndex
source · #[repr(u32)]pub enum ButtonIndex {
Any = 0,
N1 = 1,
N2 = 2,
N3 = 3,
N4 = 4,
N5 = 5,
}
Variants§
Any = 0
Any of the following (or none):
N1 = 1
The left mouse button.
N2 = 2
The right mouse button.
N3 = 3
The middle mouse button.
N4 = 4
Scroll wheel. TODO: direction?
N5 = 5
Scroll wheel. TODO: direction?
Trait Implementations§
source§impl Clone for ButtonIndex
impl Clone for ButtonIndex
source§fn clone(&self) -> ButtonIndex
fn clone(&self) -> ButtonIndex
Returns a copy 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 ButtonIndex
impl Debug for ButtonIndex
source§impl Ord for ButtonIndex
impl Ord for ButtonIndex
source§fn cmp(&self, other: &ButtonIndex) -> Ordering
fn cmp(&self, other: &ButtonIndex) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ButtonIndex
impl PartialEq for ButtonIndex
source§impl PartialOrd for ButtonIndex
impl PartialOrd for ButtonIndex
impl Copy for ButtonIndex
impl Eq for ButtonIndex
impl StructuralPartialEq for ButtonIndex
Auto Trait Implementations§
impl Freeze for ButtonIndex
impl RefUnwindSafe for ButtonIndex
impl Send for ButtonIndex
impl Sync for ButtonIndex
impl Unpin for ButtonIndex
impl UnwindSafe for ButtonIndex
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)