|
7 | 7 |
|
8 | 8 | #![allow(clippy::undocumented_unsafe_blocks)] |
9 | 9 |
|
10 | | -use std::{cell::RefCell, num::NonZeroU32, rc::Rc, sync::Arc, time::Instant}; |
11 | | - |
12 | | -use egui_winit::ActionRequested; |
13 | | -use glutin::{ |
14 | | - config::GlConfig as _, |
15 | | - context::NotCurrentGlContext as _, |
16 | | - display::GetGlDisplay as _, |
17 | | - prelude::{GlDisplay as _, PossiblyCurrentGlContext as _}, |
18 | | - surface::GlSurface as _, |
19 | | -}; |
20 | | -use raw_window_handle::HasWindowHandle as _; |
21 | | -use winit::{ |
22 | | - event_loop::{ActiveEventLoop, EventLoop, EventLoopProxy}, |
23 | | - window::{Window, WindowId}, |
24 | | -}; |
| 10 | +use std::cell::RefCell; |
| 11 | +use std::num::NonZeroU32; |
| 12 | +use std::rc::Rc; |
| 13 | +use std::sync::Arc; |
| 14 | +use std::time::Instant; |
25 | 15 |
|
26 | 16 | use ahash::HashMap; |
27 | 17 | use egui::{ |
28 | 18 | DeferredViewportUiCallback, ImmediateViewport, OrderedViewportIdMap, ViewportBuilder, |
29 | 19 | ViewportClass, ViewportId, ViewportIdPair, ViewportInfo, ViewportOutput, |
30 | 20 | }; |
| 21 | +use egui_winit::ActionRequested; |
31 | 22 | #[cfg(feature = "accesskit")] |
32 | 23 | use egui_winit::accesskit_winit; |
| 24 | +use glutin::config::GlConfig as _; |
| 25 | +use glutin::context::NotCurrentGlContext as _; |
| 26 | +use glutin::display::GetGlDisplay as _; |
| 27 | +use glutin::prelude::{GlDisplay as _, PossiblyCurrentGlContext as _}; |
| 28 | +use glutin::surface::GlSurface as _; |
| 29 | +use raw_window_handle::HasWindowHandle as _; |
| 30 | +use winit::event_loop::{ActiveEventLoop, EventLoop, EventLoopProxy}; |
| 31 | +use winit::window::{Window, WindowId}; |
33 | 32 |
|
34 | | -use crate::{ |
35 | | - App, AppCreator, CreationContext, NativeOptions, Result, Storage, |
36 | | - native::epi_integration::EpiIntegration, |
37 | | -}; |
38 | | - |
39 | | -use super::{ |
40 | | - epi_integration, event_loop_context, |
41 | | - winit_integration::{EventResult, UserEvent, WinitApp, create_egui_context}, |
42 | | -}; |
| 33 | +use super::winit_integration::{EventResult, UserEvent, WinitApp, create_egui_context}; |
| 34 | +use super::{epi_integration, event_loop_context}; |
| 35 | +use crate::native::epi_integration::EpiIntegration; |
| 36 | +use crate::{App, AppCreator, CreationContext, NativeOptions, Result, Storage}; |
43 | 37 |
|
44 | 38 | // ---------------------------------------------------------------------------- |
45 | 39 | // Types: |
|
0 commit comments