refactored window storage;
new helper window events (Destroyed, Created); clippy + fmt;
This commit is contained in:
parent
633f405f3f
commit
d53ccc857d
56 changed files with 1508 additions and 1819 deletions
|
|
@ -1,4 +1,5 @@
|
|||
use crate::time::Instant;
|
||||
use crate::Size;
|
||||
|
||||
use std::path::PathBuf;
|
||||
|
||||
|
|
@ -32,6 +33,22 @@ pub enum Event {
|
|||
/// occurs.
|
||||
CloseRequested,
|
||||
|
||||
/// A window was destroyed by the runtime.
|
||||
Destroyed,
|
||||
|
||||
/// A window was created.
|
||||
///
|
||||
/// **Note:** this event is not supported on Wayland.
|
||||
Created {
|
||||
/// The position of the created window. This is relative to the top-left corner of the desktop
|
||||
/// the window is on, including virtual desktops. Refers to window's "inner" position,
|
||||
/// or the client area, in logical pixels.
|
||||
position: (i32, i32),
|
||||
/// The size of the created window. This is its "inner" size, or the size of the
|
||||
/// client area, in logical pixels.
|
||||
size: Size<u32>,
|
||||
},
|
||||
|
||||
/// A window was focused.
|
||||
Focused,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue