use super::*;
#[derive(Clone, Copy, Data, Debug, PartialEq)]
pub struct QuickAppDeviceMetrics {
#[get(type(copy))]
pub(crate) vendor: QuickAppVendor,
#[get(type(copy))]
pub(crate) screen_width_px: u32,
#[get(type(copy))]
pub(crate) screen_height_px: u32,
#[get(type(copy))]
pub(crate) screen_density: f32,
#[get(type(copy))]
pub(crate) design_width: f32,
#[get(type(copy))]
pub(crate) status_bar_height_px: u32,
#[get(type(copy))]
pub(crate) nav_bar_height_px: u32,
#[get(type(copy))]
pub(crate) theme: ThemeMode,
}
#[derive(Clone, Data, Debug)]
pub struct QuickAppWindowRecord {
pub(crate) config: WindowConfig,
#[get(type(copy))]
pub(crate) state: WindowState,
#[get(type(copy))]
pub(crate) canvas_id: u32,
pub(crate) last_frame: Framebuffer,
#[get(type(copy))]
pub(crate) present_count: u64,
}
#[derive(Clone, Data, Debug)]
pub struct QuickAppPlatform {
#[get(type(copy))]
pub(crate) device_metrics: QuickAppDeviceMetrics,
#[get(type(copy))]
pub(crate) safe_area: SafeAreaInsets,
#[get(pub(crate), type(copy))]
#[get_mut(pub(crate))]
#[set(pub(crate))]
pub(crate) next_id: u64,
#[get(skip)]
pub(crate) primary_window: Option<WindowId>,
pub(crate) windows: HashMap<WindowId, QuickAppWindowRecord>,
pub(crate) touch_tracker: TouchPointerTracker,
pub(crate) pending_events: Vec<WindowEvent>,
pub(crate) outbound_commands: Vec<QuickAppHostCommand>,
pub(crate) storage: HashMap<String, String>,
pub(crate) route_stack: Vec<String>,
#[get(skip)]
pub(crate) clipboard: Option<String>,
#[get(type(copy))]
pub(crate) pump_paused: bool,
}