mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-10 13:11:30 +11:00
23 lines
606 B
Rust
23 lines
606 B
Rust
#![cfg(target_os = "linux")]
|
|
|
|
#[cfg(feature = "headless")]
|
|
pub use self::headless::HeadlessContext;
|
|
|
|
#[cfg(feature = "window")]
|
|
pub use self::window::{Window, WindowProxy, MonitorID, get_available_monitors, get_primary_monitor};
|
|
#[cfg(feature = "window")]
|
|
pub use self::window::{WaitEventsIterator, PollEventsIterator};
|
|
|
|
mod ffi;
|
|
|
|
#[cfg(feature = "headless")]
|
|
mod headless;
|
|
|
|
#[cfg(feature = "window")]
|
|
mod window;
|
|
|
|
#[cfg(not(feature = "window"))]
|
|
pub type Window = (); // TODO: hack to make things work
|
|
#[cfg(not(feature = "window"))]
|
|
pub type MonitorID = (); // TODO: hack to make things work
|