kon_window/types.rs
1/// Window size in pixels
2#[derive(Debug, Clone, Copy, PartialEq, Eq)]
3pub struct WindowSize {
4 pub width: u32,
5 pub height: u32,
6}
7
8/// Window position in screen coordinates
9#[derive(Debug, Clone, Copy, PartialEq, Eq)]
10pub struct WindowPosition {
11 pub x: i32,
12 pub y: i32,
13}
14
15/// Fullscreen mode
16#[derive(Debug, Clone, Copy, PartialEq, Eq)]
17pub enum Fullscreen {
18 /// Exclusive fullscreen (changes video mode)
19 Exclusive,
20 /// Borderless windowed fullscreen
21 Borderless,
22}