fenestra 0.31.0

A pure-Rust native GUI framework with web-grade aesthetics: OKLCH themes, soft shadows, flexbox/grid, and headless PNG rendering
Documentation
//! fenestra: a pure-Rust native GUI framework with web-grade aesthetics.
//!
//! Re-exports the core IR and theme, the widget kit, and the windowed and
//! headless runners. Start with [`App`], [`run`], and the [`prelude`].
#![warn(missing_docs)]

pub use fenestra_core::*;
pub use fenestra_kit as kit;
pub use fenestra_shell as shell;

pub use fenestra_shell::WindowOptions;

/// Opens a window and runs the app until the window closes. `Msg: Send`
/// because [`App::init`]'s proxy delivers messages across threads.
///
/// # Panics
/// If the event loop or GPU surface cannot be created.
pub fn run<A: App + 'static>(app: A, options: WindowOptions)
where
    A::Msg: Send,
{
    fenestra_shell::run_app(app, options).expect("fenestra event loop failed");
}

/// Commonly used items: builders, tokens, widgets, and the runner.
pub mod prelude {
    pub use fenestra_core::*;
    pub use fenestra_kit::*;
    pub use fenestra_shell::WindowOptions;
}