use super::*;
#[derive(Clone, Copy, Data, Debug, Eq, PartialEq)]
pub struct ShowcaseWebCanvasSlot {
#[get(type(copy))]
pub(crate) canvas_id: u64,
#[get(type(copy))]
pub(crate) context_family: ShowcaseWebCanvasContextFamily,
#[get(type(copy))]
pub(crate) path: ShowcaseWebPresentationPath,
#[get(type(copy))]
pub(crate) visible: bool,
#[get(type(copy))]
pub(crate) z_index: i32,
#[get(type(copy))]
pub(crate) width: u32,
#[get(type(copy))]
pub(crate) height: u32,
#[get(type(copy))]
pub(crate) scene_version: u64,
#[get(type(copy))]
pub(crate) ready: bool,
}
#[derive(Clone, Data, Debug, Eq, PartialEq)]
pub struct ShowcaseWebDualCanvasCoordinator {
#[get(type(copy))]
pub(crate) active: ShowcaseWebCanvasSlot,
#[get(skip)]
pub(crate) standby: Option<ShowcaseWebCanvasSlot>,
#[get(type(copy))]
pub(crate) cpu_mirror_active: bool,
#[get(type(copy))]
pub(crate) timing_source: ShowcaseWebTimingSource,
#[get(type(copy))]
pub(crate) next_canvas_id: u64,
#[get(type(copy))]
pub(crate) completed_swaps: u64,
#[get(type(copy))]
pub(crate) aborted_swaps: u64,
#[get(type(copy))]
pub(crate) raf_proxy_ticks: u64,
#[get(type(copy))]
pub(crate) last_upload_bytes: u64,
pub(crate) retired_canvas_ids: Vec<u64>,
}
#[cfg(target_arch = "wasm32")]
#[derive(Data)]
pub struct HostCanvasRuntime {
pub(crate) app: App,
pub(crate) state: ShowcaseState,
pub(crate) touch_tracker: TouchPointerTracker,
pub(crate) vendor: String,
#[get(type(copy))]
pub(crate) platform_kind: PlatformKind,
#[get(type(copy))]
pub(crate) logical_width: u32,
#[get(type(copy))]
pub(crate) logical_height: u32,
#[get(type(copy))]
pub(crate) dpr: f32,
#[get(type(copy))]
pub(crate) paused: bool,
#[get(type(copy))]
pub(crate) ambient: bool,
#[get(type(copy))]
pub(crate) dirty: bool,
#[get(type(copy))]
pub(crate) force_full_dirty: bool,
#[get(type(copy))]
pub(crate) dirty_x: u32,
#[get(type(copy))]
pub(crate) dirty_y: u32,
#[get(type(copy))]
pub(crate) dirty_w: u32,
#[get(type(copy))]
pub(crate) dirty_h: u32,
#[get(type(copy))]
pub(crate) frame_count: u64,
#[get(type(copy))]
pub(crate) last_frame_hash: u64,
#[get(type(copy))]
pub(crate) crown_remainder: f32,
}