1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use super::{Rect, Vector2};
#[derive(Clone, Copy, Debug, PartialEq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct SelectionInfo {
pub anchor: Vector2<u16>,
pub empty: bool,
pub mouse_down: bool,
pub rect: Rect,
pub selecting: bool,
}
impl Default for SelectionInfo {
fn default() -> Self {
Self {
anchor: Vector2::new(0, 0),
empty: false,
mouse_down: false,
rect: Rect::new(0, 0, 0, 0),
selecting: false,
}
}
}