diff options
| author | Micha White <botahamec@outlook.com> | 2022-09-18 14:49:16 -0400 |
|---|---|---|
| committer | Micha White <botahamec@outlook.com> | 2022-09-18 14:49:16 -0400 |
| commit | ffee09ada476b3a350f331718d60fa806b564bad (patch) | |
| tree | d2998f5bc6deea7e8cd746ce08c94b78764c58b7 /src/config.rs | |
| parent | b92e827eb623a8d93872c6f95aceeb882b867a29 (diff) | |
Made a square
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 |
