pub enum Event {
ButtonDown {
x: f32,
y: f32,
button: MouseButton,
},
ButtonUp {
x: f32,
y: f32,
button: MouseButton,
},
MouseMotion {
x: f32,
y: f32,
},
FirstTurn,
PrevTurn,
NextTurn,
LastTurn,
RotateUnchecked(usize, f32),
MoveUnchecked(usize, f32, f32),
}
Expand description
User events a chess board can respond to.
Variants§
ButtonDown
ButtonUp
MouseMotion
FirstTurn
PrevTurn
NextTurn
LastTurn
RotateUnchecked(usize, f32)
We’ve been told to rotate idx to r.
MoveUnchecked(usize, f32, f32)
We’ve been told to move idx to x, y.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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