mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
This will help in case we want to linger the event loop during drop to prevent use after free in the consumers code.
34 lines
870 B
Rust
34 lines
870 B
Rust
#![allow(clippy::let_unit_value)]
|
|
|
|
mod app_state;
|
|
mod event_loop;
|
|
mod monitor;
|
|
mod view;
|
|
mod view_controller;
|
|
mod window;
|
|
|
|
use std::fmt;
|
|
|
|
pub(crate) use self::event_loop::{
|
|
ActiveEventLoop, EventLoop, EventLoopProxy, PlatformSpecificEventLoopAttributes,
|
|
};
|
|
pub(crate) use self::monitor::{MonitorHandle, VideoModeHandle};
|
|
pub(crate) use self::window::{PlatformSpecificWindowAttributes, Window};
|
|
pub(crate) use crate::cursor::{
|
|
NoCustomCursor as PlatformCustomCursor, NoCustomCursor as PlatformCustomCursorSource,
|
|
};
|
|
pub(crate) use crate::icon::NoIcon as PlatformIcon;
|
|
pub(crate) use crate::platform_impl::Fullscreen;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
|
pub struct KeyEventExtra {}
|
|
|
|
#[derive(Debug)]
|
|
pub enum OsError {}
|
|
|
|
impl fmt::Display for OsError {
|
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
write!(f, "os error")
|
|
}
|
|
}
|