Skip to main content

prism_linux/
lib.rs

1//! # prism-linux
2//!
3//! GTK 4 backend: every Prism node is a real GTK widget (`GtkLabel`,
4//! `GtkButton`, `GtkEntry`, `GtkSwitch`…), placed by prism-native's flexbox
5//! layout like on macOS and iOS. A small layout manager puts each widget at
6//! the frame Prism computed, so layouts match the other platforms.
7//!
8//! Tested in Docker (`docker/linux-dev.Dockerfile`, Xvfb).
9
10#[cfg(target_os = "linux")]
11mod across;
12#[cfg(target_os = "linux")]
13mod carets;
14#[cfg(target_os = "linux")]
15mod controls;
16#[cfg(target_os = "linux")]
17mod decor;
18#[cfg(target_os = "linux")]
19mod edit;
20#[cfg(target_os = "linux")]
21mod focal;
22#[cfg(target_os = "linux")]
23mod imp;
24// Key and icon names: no GTK, tested everywhere.
25mod input;
26#[cfg(target_os = "linux")]
27mod layout;
28#[cfg(target_os = "linux")]
29mod names;
30#[cfg(target_os = "linux")]
31mod navbar;
32#[cfg(target_os = "linux")]
33mod padding;
34#[cfg(target_os = "linux")]
35mod push;
36#[cfg(target_os = "linux")]
37mod rich;
38#[cfg(target_os = "linux")]
39mod scene3d;
40#[cfg(target_os = "linux")]
41mod security;
42#[cfg(target_os = "linux")]
43mod services;
44#[cfg(target_os = "linux")]
45mod table;
46#[cfg(all(test, target_os = "linux"))]
47mod temp_dir;
48// The nodes' shared CSS rules: no GTK, tested everywhere.
49mod sheet;
50#[cfg(target_os = "linux")]
51mod text;
52#[cfg(target_os = "linux")]
53mod tray;
54
55#[cfg(target_os = "linux")]
56pub use imp::run;