2022-06-10 13:43:33 +03:00
|
|
|
#![allow(clippy::let_unit_value)]
|
2015-06-05 16:38:21 +03:00
|
|
|
|
2019-05-25 18:10:41 -07:00
|
|
|
mod app_state;
|
|
|
|
|
mod event_loop;
|
|
|
|
|
mod monitor;
|
|
|
|
|
mod view;
|
2024-02-22 22:28:49 +01:00
|
|
|
mod view_controller;
|
2019-05-25 18:10:41 -07:00
|
|
|
mod window;
|
|
|
|
|
|
2019-05-29 21:29:54 -04:00
|
|
|
use std::fmt;
|
|
|
|
|
|
2022-02-16 22:09:03 +01:00
|
|
|
pub(crate) use self::event_loop::{
|
2024-01-31 17:29:59 +04:00
|
|
|
ActiveEventLoop, EventLoop, EventLoopProxy, OwnedDisplayHandle,
|
2024-01-15 11:58:11 -08:00
|
|
|
PlatformSpecificEventLoopAttributes,
|
2022-02-16 22:09:03 +01:00
|
|
|
};
|
2023-12-26 22:12:33 +01:00
|
|
|
pub(crate) use self::monitor::{MonitorHandle, VideoModeHandle};
|
2024-01-31 17:29:59 +04:00
|
|
|
pub(crate) use self::window::{PlatformSpecificWindowAttributes, Window, WindowId};
|
2023-12-16 22:02:17 +02:00
|
|
|
pub(crate) use crate::cursor::{
|
2024-01-31 17:29:59 +04:00
|
|
|
NoCustomCursor as PlatformCustomCursor, NoCustomCursor as PlatformCustomCursorSource,
|
2019-05-25 18:10:41 -07:00
|
|
|
};
|
2020-03-07 19:42:21 +00:00
|
|
|
pub(crate) use crate::icon::NoIcon as PlatformIcon;
|
2023-07-31 00:39:01 +04:00
|
|
|
pub(crate) use crate::platform_impl::Fullscreen;
|
2020-03-07 19:42:21 +00:00
|
|
|
|
2024-01-15 21:51:01 +01:00
|
|
|
/// There is no way to detect which device that performed a certain event in
|
|
|
|
|
/// UIKit (i.e. you can't differentiate between different external keyboards,
|
2024-02-19 11:58:44 +07:00
|
|
|
/// or whether it was the main touchscreen, assistive technologies, or some
|
2024-01-15 21:51:01 +01:00
|
|
|
/// other pointer device that caused a touch event).
|
2017-09-04 12:41:10 +02:00
|
|
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
2024-01-15 21:51:01 +01:00
|
|
|
pub struct DeviceId;
|
2018-12-21 09:51:48 -07:00
|
|
|
|
2024-08-08 00:36:36 +02:00
|
|
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
|
|
|
|
pub struct FingerId(usize);
|
|
|
|
|
|
|
|
|
|
impl FingerId {
|
2024-09-29 15:49:45 +02:00
|
|
|
#[cfg(test)]
|
2024-08-08 00:36:36 +02:00
|
|
|
pub const fn dummy() -> Self {
|
|
|
|
|
FingerId(0)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-28 20:02:59 +02:00
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
|
|
|
|
pub struct KeyEventExtra {}
|
|
|
|
|
|
2019-05-29 21:29:54 -04:00
|
|
|
#[derive(Debug)]
|
|
|
|
|
pub enum OsError {}
|
|
|
|
|
|
|
|
|
|
impl fmt::Display for OsError {
|
2022-06-10 13:43:33 +03:00
|
|
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
|
|
|
|
write!(f, "os error")
|
2019-05-29 21:29:54 -04:00
|
|
|
}
|
|
|
|
|
}
|