hai_core 0.7.0

Core implementation of Hai game engine, and general 2D rendering library using WebGPU as well.
Documentation
use std::ffi::c_void;

use winit::window::CursorIcon;

#[allow(dead_code)]
#[derive(Debug, Clone)]
pub enum UserEvent {
    // logical_width, logical_height, factor
    ResizeWindow(f64, f64, Option<f64>),
    WindowState(WindowState),
    SetTitle(String),
    SetCursorIcon(CursorIcon),
    SetCursorVisible(bool),
    Quit,
    Custom(*mut c_void),
}

unsafe impl Send for UserEvent {}
unsafe impl Sync for UserEvent {}

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum WindowState {
    Idle,
    Maximized,
    Minimized,
    Fullscreen,
}