From ffee09ada476b3a350f331718d60fa806b564bad Mon Sep 17 00:00:00 2001 From: Micha White Date: Sun, 18 Sep 2022 14:49:16 -0400 Subject: Made a square --- src/config.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/config.rs') 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, @@ -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 -- cgit v1.2.3