1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! # Egui Backend Selector
//!
//! Backend selector for egui that will select a backend at runtime that works on the system your application is running on.
//!
//! # Example
//! ```rust
//! use egui_backend_selector::{BackendConfiguration, BackendInterop};
//! use eframe::Storage;
//!
//! struct EguiApp {}
//!
//! impl EguiApp {
//! fn new(_context: egui::Context, _storage: Option<&dyn Storage>) -> Self {
//! EguiApp {}
//! }
//! }
//!
//! impl egui_backend_selector::App for EguiApp {
//! fn ui(&mut self, ui: &mut egui::Ui, backend: BackendInterop<'_>) {
//! egui::CentralPanel::default().show_inside(ui, |ui| {
//! ui.label(format!("Hello World! Running on {}", backend.backend_name()));
//! });
//! }
//! }
//!
//! fn you_main_function() {
//! egui_backend_selector::run_app("app-name", BackendConfiguration::default(), |ctx, storage| EguiApp::new(ctx, storage))
//! .expect("failed to run app");
//! }
//! ```
/// The actual implementation is found in this file.
pub use *;
;