x_win/common/x_win_struct/window_position.rs
#![deny(unused_imports)]
/**
* Struct to store position and size of the window
*/
#[derive(Debug, Clone)]
pub struct WindowPosition {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
pub is_full_screen: bool,
}
impl WindowPosition {
pub fn new(x: i32, y: i32, width: i32, height: i32, is_full_screen: bool) -> Self {
Self {
x,
y,
width,
height,
is_full_screen,
}
}
}