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
33
34
35
36
37
38
39
40
41
42
use super::{WindowDescriptor, WindowId};
use bevy_math::Vec2;
#[derive(Debug, Clone)]
pub struct WindowResized {
pub id: WindowId,
pub width: usize,
pub height: usize,
}
#[derive(Debug, Clone)]
pub struct CreateWindow {
pub id: WindowId,
pub descriptor: WindowDescriptor,
}
#[derive(Debug, Clone)]
pub struct CloseWindow {
pub id: WindowId,
}
#[derive(Debug, Clone)]
pub struct WindowCreated {
pub id: WindowId,
}
#[derive(Debug, Clone)]
pub struct WindowCloseRequested {
pub id: WindowId,
}
#[derive(Debug, Clone)]
pub struct CursorMoved {
pub id: WindowId,
pub position: Vec2,
}