rust_widgets 2.0.0

Pure Rust cross-platform native GUI library with hardware-adaptive rendering, 60+ widgets, touch/gesture support, i18n, and SVG-pipeline-accurate output
#[cfg(all(
    any(feature = "desktop", feature = "tablet", feature = "mobile"),
    not(any(feature = "mini", feature = "embedded"))
))]
use rust_widgets::core::Rect;

fn main() {
    #[cfg(all(
        any(feature = "desktop", feature = "tablet", feature = "mobile"),
        not(any(feature = "mini", feature = "embedded"))
    ))]
    {
        use rust_widgets::widget::special_widgets::terminal_view::TerminalView;
        let mut terminal = TerminalView::new(Rect::new(0, 0, 640, 360));
        terminal.append_output("Terminal ready");
        terminal.set_input_line("help");
        let _ = terminal.submit();
        let svg = rust_widgets::widget::svg::render_to_svg(&mut terminal);
        println!("demo_terminal: rendered svg bytes={}", svg.len());
    }
}