1#[cfg(not(any(
5 all(
6 feature = "backend-femtovg-gl",
7 not(feature = "backend-femtovg-wgpu"),
8 not(feature = "backend-skia"),
9 not(feature = "backend-software")
10 ),
11 all(
12 feature = "backend-femtovg-wgpu",
13 not(feature = "backend-femtovg-gl"),
14 not(feature = "backend-skia"),
15 not(feature = "backend-software")
16 ),
17 all(
18 feature = "backend-skia",
19 not(feature = "backend-femtovg-gl"),
20 not(feature = "backend-femtovg-wgpu"),
21 not(feature = "backend-software")
22 ),
23 all(
24 feature = "backend-software",
25 not(feature = "backend-femtovg-gl"),
26 not(feature = "backend-femtovg-wgpu"),
27 not(feature = "backend-skia")
28 ),
29)))]
30compile_error!(
31 "aura-baseview: enable exactly one of `backend-femtovg-gl`, \
32 `backend-femtovg-wgpu`, `backend-skia`, or `backend-software` \
33 (aliases: `backend-femtovg`→gl, `backend-wgpu`→software; check consumers \
34 that set default-features = false without selecting a renderer)"
35);
36
37#[cfg(feature = "backend-femtovg-gl")]
38pub mod baseview_slint_window_adapter;
39#[cfg(feature = "backend-femtovg-gl")]
40pub mod open_gl_interface;
41
42#[cfg(any(feature = "backend-femtovg-gl", feature = "backend-femtovg-wgpu"))]
43mod init_error;
44#[cfg(any(feature = "backend-femtovg-gl", feature = "backend-femtovg-wgpu"))]
45pub use init_error::InitError;
46#[cfg(feature = "backend-femtovg-gl")]
48pub type GlInitError = InitError;
49#[cfg(feature = "backend-femtovg-wgpu")]
51pub type WgpuInitError = InitError;
52#[cfg(feature = "backend-software")]
53pub mod blit;
54#[cfg(feature = "backend-femtovg-wgpu")]
55pub mod femtovg_wgpu_window_adapter;
56#[cfg(any(feature = "backend-femtovg-wgpu", feature = "backend-skia"))]
57mod owned_handles;
58pub mod platform;
59pub mod scale;
60#[cfg(feature = "backend-skia")]
61pub mod skia_window_adapter;
62pub mod slint_window;
63#[cfg(feature = "backend-software")]
64pub mod software_renderer;
65pub mod translate;
66
67pub use slint_window::SlintParentedWindow;
68
69pub use scale::{
70 EditorScale, RequestResizeFn, SizePolicy, fit_size, pack_size, to_physical_px, unpack_size,
71};