pub enum PointerAxis {
X,
Y,
}Expand description
Which coordinate of the pointer a Binding::PointerPosition reads.
One binding with an axis rather than a PointerX/PointerY pair: the two
would be the same variant twice, and a rebind menu listing both as unrelated
sources is a menu that has to explain why.
Variants§
X
Horizontal: −1.0 at the left edge of the surface, +1.0 at the right.
Y
Vertical: −1.0 at the bottom edge, +1.0 at the top.
Trait Implementations§
Source§impl Clone for PointerAxis
impl Clone for PointerAxis
impl Copy for PointerAxis
Source§impl Debug for PointerAxis
impl Debug for PointerAxis
impl Eq for PointerAxis
Source§impl PartialEq for PointerAxis
impl PartialEq for PointerAxis
impl StructuralPartialEq for PointerAxis
Auto Trait Implementations§
impl Freeze for PointerAxis
impl RefUnwindSafe for PointerAxis
impl Send for PointerAxis
impl Sync for PointerAxis
impl Unpin for PointerAxis
impl UnsafeUnpin for PointerAxis
impl UnwindSafe for PointerAxis
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