Move reusable mouse types to iced_core
This commit is contained in:
parent
20d79a43cc
commit
56dbd68326
10 changed files with 23 additions and 12 deletions
9
core/src/button_state.rs
Normal file
9
core/src/button_state.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/// The state of a button.
|
||||
#[derive(Debug, Hash, Ord, PartialOrd, PartialEq, Eq, Clone, Copy)]
|
||||
pub enum ButtonState {
|
||||
/// The button is pressed.
|
||||
Pressed,
|
||||
|
||||
/// The button is __not__ pressed.
|
||||
Released,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue