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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
//! # (raclettui)
//!
//! !! STILL UNDER DEVELOPMENT BUT USABLE !!
//!
//! A lightweight Wayland layer shell window abstraction implementing the
//! ratatui backend to make terminal style windows.
//! CPU-based and GPU-based (wgpu) rendering backends.
//!
//! This crate provides:
//!
//! - A high-level [`WindowBuilder`] API for constructing Wayland layer shell windows
//! - CPU rendering via [`CpuWindow`]
//! - GPU rendering via [`WgpuWindow`]
//! - Re-exported Wayland layer-shell enums for convenience
//!
//! ## Backends
//!
//! The crate supports two rendering backends:
//!
//! - **CPU backend** — software rendering using shared memory buffers.
//! - **WGPU backend** — hardware-accelerated rendering using `wgpu`.
//!
//! ## Layer Shell Support
//!
//! This crate integrates with the `wlr-layer-shell` protocol,
//! allowing creation of desktop components such as:
//!
//! - Panels
//! - Overlays
//! - Lock screens
//! - Background surfaces
//!
//! The following types are re-exported for convenience to initialise windows:
//!
//! - [`Layer`]
//! - [`Anchor`]
//! - [`KeyboardInteractivity`]
//!
//! ## Example
//!
//! ```no_run
//! use raclettui::{WindowBuilder, Layer, Anchor};
//!
//! fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let window = WindowBuilder::new()
//! .set_layer(Layer::Top)
//! .set_anchors(vec![Anchor::Top, Anchor::Left, Anchor::Right])
//! .init_cpu()?; // for cpu rendering backend
//! //.init_wgpu()?; for gpu rendering backend
//!
//! Ok(())
//! }
//! ```
//!
//! ## Modules
//!
//! - [`builder`] — Window construction utilities
//! - [`cpu`] — CPU-based rendering backend
//! - [`wgpu`] — GPU-based rendering backend
//! - [`events`] — Event handling types
//!
//! ## Requirements
//!
//! - Wayland compositor
//! - `wlr-layer-shell` protocol support (for layer surfaces)
//!
//! ## Error Handling
//!
//! All fallible operations return [`Error`].
//!
// flattening imports
pub use ;
pub use WindowBuilder;
pub use Error;
pub use ;
pub use ;