StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.
| 1 | #[macro_use] |
| 2 | extern crate num_derive; |
| 3 | |
| 4 | pub mod accessibility; |
| 5 | pub mod actions; |
| 6 | mod app_focus_telemetry; |
| 7 | pub mod assets; |
| 8 | pub mod r#async; |
| 9 | pub mod clipboard; |
| 10 | pub mod clipboard_utils; |
| 11 | mod core; |
| 12 | mod debug; |
| 13 | pub mod elements; |
| 14 | pub mod event; |
| 15 | pub mod fonts; |
| 16 | pub mod formatted_text; |
| 17 | pub mod image_cache; |
| 18 | pub mod integration; |
| 19 | pub mod keymap; |
| 20 | pub mod linear_index; |
| 21 | pub mod modals; |
| 22 | pub mod notification; |
| 23 | pub mod platform; |
| 24 | pub mod prelude; |
| 25 | pub mod presenter; |
| 26 | pub mod rendering; |
| 27 | pub mod scene; |
| 28 | pub mod telemetry; |
| 29 | #[cfg(test)] |
| 30 | mod test; |
| 31 | pub mod text; |
| 32 | pub mod text_layout; |
| 33 | pub mod text_offsets; |
| 34 | pub mod text_selection_utils; |
| 35 | pub mod time; |
| 36 | pub mod traces; |
| 37 | pub mod ui_components; |
| 38 | pub mod units; |
| 39 | pub mod util; |
| 40 | pub mod windowing; |
| 41 | pub mod zoom; |
| 42 | |
| 43 | pub use crate::core::*; |
| 44 | pub use assets::AssetProvider; |
| 45 | pub use clipboard::Clipboard; |
| 46 | pub use elements::Element; |
| 47 | pub use event::Event; |
| 48 | pub use pathfinder_color as color; |
| 49 | pub use pathfinder_geometry as geometry; |
| 50 | pub use presenter::{ |
| 51 | AfterLayoutContext, EventContext, LayoutContext, PaintContext, Presenter, SizeConstraint, |
| 52 | }; |
| 53 | pub use scene::{ClipBounds, Scene}; |
| 54 | pub use zoom::ZoomFactor; |
| 55 | |
| 56 | use pathfinder_color::ColorU; |
| 57 | |
| 58 | #[derive(Clone, Copy, Debug, PartialEq, Eq)] |
| 59 | pub struct Gradient { |
| 60 | pub start: ColorU, |
| 61 | pub end: ColorU, |
| 62 | } |
| 63 |