use super::*;
#[derive(Clone, Copy, Debug, Default, Eq, Getter, Hash, New, Ord, PartialEq, PartialOrd)]
pub struct WindowId {
#[get(type(copy))]
pub(crate) value: u64,
}
#[derive(Clone, Copy, Data, Debug, Default, New, PartialEq)]
pub struct SafeAreaInsets {
#[get(type(copy))]
pub(crate) top: f32,
#[get(type(copy))]
pub(crate) right: f32,
#[get(type(copy))]
pub(crate) bottom: f32,
#[get(type(copy))]
pub(crate) left: f32,
}
#[derive(Clone, Copy, Data, Debug, New, PartialEq)]
pub struct DisplayInfo {
#[get(type(copy))]
pub(crate) physical_width: u32,
#[get(type(copy))]
pub(crate) physical_height: u32,
#[get(type(copy))]
pub(crate) scale_factor: f32,
#[get(type(copy))]
pub(crate) refresh_rate_hz: u32,
#[get(type(copy))]
pub(crate) color_space: ColorSpace,
}
#[derive(Clone, Data, Debug, PartialEq)]
pub struct WindowConfig {
pub(crate) title: String,
#[get(type(copy))]
pub(crate) width: u32,
#[get(type(copy))]
pub(crate) height: u32,
#[get(skip)]
pub(crate) min_size: Option<(u32, u32)>,
#[get(skip)]
pub(crate) max_size: Option<(u32, u32)>,
#[get(skip)]
pub(crate) position: Option<(i32, i32)>,
#[get(type(copy))]
pub(crate) resizable: bool,
#[get(type(copy))]
pub(crate) decorations: bool,
#[get(type(copy))]
pub(crate) transparent: bool,
#[get(type(copy))]
pub(crate) always_on_top: bool,
#[get(type(copy))]
pub(crate) fullscreen: FullscreenMode,
#[get(type(copy))]
pub(crate) immersive: bool,
#[get(type(copy))]
pub(crate) visible: bool,
#[get(type(copy))]
pub(crate) render: RenderConfig,
#[get(type(copy))]
pub(crate) orientation: OrientationLock,
#[get(type(copy))]
pub(crate) status_bar: StatusBarStyle,
#[get(skip)]
pub(crate) preferred_theme: Option<ThemeMode>,
#[get(skip)]
pub(crate) icon: Option<ImageBuffer>,
#[get(skip)]
pub(crate) icon_path: Option<String>,
}
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct WindowState {
#[get(type(copy))]
pub(crate) id: WindowId,
#[get(type(copy))]
pub(crate) logical_width: f32,
#[get(type(copy))]
pub(crate) logical_height: f32,
#[get(type(copy))]
pub(crate) physical_width: u32,
#[get(type(copy))]
pub(crate) physical_height: u32,
#[get(type(copy))]
pub(crate) scale_factor: f32,
#[get(type(copy))]
pub(crate) safe_area: SafeAreaInsets,
#[get(type(copy))]
pub(crate) display: DisplayInfo,
#[get(type(copy))]
pub(crate) focused: bool,
#[get(type(copy))]
pub(crate) minimized: bool,
#[get(type(copy))]
pub(crate) maximized: bool,
#[get(type(copy))]
pub(crate) fullscreen: FullscreenMode,
#[get(type(copy))]
pub(crate) system_theme: ThemeMode,
}