diff options
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.rs b/src/config.rs index 1e8c43e..f321a9b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -5,7 +5,7 @@ use winit::dpi::{LogicalPosition, LogicalSize}; use winit::window::{Fullscreen, WindowBuilder}; /// Describes how a window may be resized -#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)] +#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)] pub struct Resizable { /// The minimum width of the window, or None if unconstrained pub min_width: Option<NonZeroU32>, @@ -18,7 +18,7 @@ pub struct Resizable { } /// Information about a window, that is not fullscreened -#[derive(Clone, Copy, Debug, PartialEq, Eq)] +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] pub struct WindowInfo { pub default_x: i32, pub default_y: i32, @@ -37,7 +37,7 @@ impl Default for WindowInfo { } } -#[derive(Clone, Copy, Debug, PartialEq, Eq)] +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] pub enum WindowMode { Windowed(WindowInfo), // TODO support choosing a monitor @@ -50,7 +50,7 @@ impl Default for WindowMode { } } -#[derive(Clone, Debug, PartialEq, Eq)] +#[derive(Clone, Debug, PartialEq, Eq, Hash)] // TODO window icon pub struct RenderWindowConfig<'a> { /// The width of the window, once initialized |
