pub enum CanvasMessage {
Press {
x: u32,
y: u32,
},
Release {
x: u32,
y: u32,
},
}Variants§
Implementations§
Source§impl CanvasMessage
impl CanvasMessage
Sourcepub fn x(&self) -> u32
pub fn x(&self) -> u32
Retrieves the x coordinate of this message, no matter if this is a press or a release message
Sourcepub fn y(&self) -> u32
pub fn y(&self) -> u32
Retrieves the y coordinate of this message, no matter if this is a press or a release message
pub fn pad(&self) -> Pad
Sourcepub fn is_release(&self) -> bool
pub fn is_release(&self) -> bool
Returns whether this is a release message
Trait Implementations§
Source§impl Clone for CanvasMessage
impl Clone for CanvasMessage
Source§fn clone(&self) -> CanvasMessage
fn clone(&self) -> CanvasMessage
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 CanvasMessage
impl Debug for CanvasMessage
Source§impl Hash for CanvasMessage
impl Hash for CanvasMessage
Source§impl PartialEq for CanvasMessage
impl PartialEq for CanvasMessage
impl Eq for CanvasMessage
impl StructuralPartialEq for CanvasMessage
Auto Trait Implementations§
impl Freeze for CanvasMessage
impl RefUnwindSafe for CanvasMessage
impl Send for CanvasMessage
impl Sync for CanvasMessage
impl Unpin for CanvasMessage
impl UnwindSafe for CanvasMessage
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