use super::*;
#[derive(Clone, Data, Debug)]
pub struct HeadlessWindowRecord {
pub(crate) config: WindowConfig,
#[get(type(copy))]
pub(crate) state: WindowState,
#[get(type(copy))]
pub(crate) cursor: CursorIcon,
pub(crate) last_frame: Framebuffer,
#[get(type(copy))]
pub(crate) present_count: u64,
#[get(type(copy))]
pub(crate) ime_active: bool,
#[get(type(copy))]
pub(crate) ime_rect: Rect,
}
#[derive(Clone, Data, Debug)]
pub struct HeadlessPlatform {
#[get(type(copy))]
pub(crate) emulated_kind: PlatformKind,
#[get(type(copy))]
pub(crate) scale_factor: f32,
#[get(type(copy))]
pub(crate) safe_area: SafeAreaInsets,
#[get(type(copy))]
pub(crate) theme: ThemeMode,
#[get(pub(crate), type(copy))]
#[get_mut(pub(crate))]
#[set(pub(crate))]
pub(crate) next_id: u64,
pub(crate) windows: HashMap<WindowId, HeadlessWindowRecord>,
pub(crate) pending_events: Vec<WindowEvent>,
#[get(skip)]
pub(crate) clipboard: Option<String>,
}