x_win/common/x_win_struct/window_position.rs
1#![deny(unused_imports)]
2
3/**
4 * Struct to store position and size of the window
5 */
6#[derive(Debug, Clone)]
7pub struct WindowPosition {
8 pub x: i32,
9 pub y: i32,
10 pub width: i32,
11 pub height: i32,
12 pub is_full_screen: bool,
13}
14
15impl WindowPosition {
16 pub fn new(x: i32, y: i32, width: i32, height: i32, is_full_screen: bool) -> Self {
17 Self {
18 x,
19 y,
20 width,
21 height,
22 is_full_screen,
23 }
24 }
25}