use super::*;
#[repr(C)]
#[derive(Clone, Copy, Debug, Default)]
pub(crate) struct AndroidRect {
pub(crate) left: i32,
pub(crate) top: i32,
pub(crate) right: i32,
pub(crate) bottom: i32,
}
#[repr(C)]
#[derive(Clone, Copy, Data, Debug, Default, PartialEq)]
pub struct AndroidTouchBatchEntry {
#[get(type(copy))]
pub(crate) action: i32,
#[get(type(copy))]
pub(crate) action_index: i32,
#[get(type(copy))]
pub(crate) pointer_id: i32,
#[get(type(copy))]
pub(crate) x: f32,
#[get(type(copy))]
pub(crate) y: f32,
}
#[repr(C)]
#[derive(Clone, Copy, Debug)]
pub(crate) struct ANativeWindowBuffer {
pub(crate) width: i32,
pub(crate) height: i32,
pub(crate) stride: i32,
pub(crate) format: i32,
pub(crate) bits: *mut c_void,
pub(crate) reserved: [u32; 6],
}
#[derive(Clone, Data, Debug)]
pub struct AndroidWindowRecord {
pub(crate) config: WindowConfig,
#[get(type(copy))]
pub(crate) state: WindowState,
#[get(type(copy))]
pub(crate) native_window: usize,
#[get(pub(crate), type(copy))]
#[get_mut(pub(crate))]
#[set(pub(crate))]
pub(crate) surface_width: u32,
#[get(pub(crate), type(copy))]
#[get_mut(pub(crate))]
#[set(pub(crate))]
pub(crate) surface_height: u32,
}
#[derive(Clone, Data, Debug)]
pub struct AndroidPlatform {
#[get(pub(crate), type(copy))]
#[get_mut(pub(crate))]
#[set(pub(crate))]
pub(crate) next_id: u64,
#[get(type(copy))]
pub(crate) attached_native_window: usize,
#[get(type(copy))]
pub(crate) density_scale: f32,
#[get(pub(crate), type(copy))]
#[get_mut(pub(crate))]
#[set(pub(crate))]
pub(crate) refresh_rate_hz: f32,
pub(crate) windows: HashMap<WindowId, AndroidWindowRecord>,
pub(crate) pending_events: Vec<WindowEvent>,
#[get(skip)]
pub(crate) clipboard_cache: Option<String>,
#[get(pub(crate), type(copy))]
#[set(pub(crate))]
pub(crate) pump_paused: bool,
}