use core::ffi::c_void;
use core::ptr::NonNull;
use super::DisplayHandle;
#[non_exhaustive]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct OrbitalDisplayHandle {}
impl OrbitalDisplayHandle {
pub fn new() -> Self {
Self {}
}
}
impl DisplayHandle<'static> {
pub fn orbital() -> Self {
unsafe { Self::borrow_raw(OrbitalDisplayHandle::new().into()) }
}
}
#[non_exhaustive]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct OrbitalWindowHandle {
pub window: NonNull<c_void>,
}
impl OrbitalWindowHandle {
pub fn new(window: NonNull<c_void>) -> Self {
Self { window }
}
}