Glyph

v0.1 early preview

Glyph

A GPU-accelerated UI framework for Rust. You write a function that returns a view, Glyph renders it at 60fps. State changes trigger redraws automatically.

Getting Started

Your first window in under 5 minutes.

Signals

How state works and why it matters.

Views

Every primitive from text to scroll containers.

Animations

Tweens, easing, and entrance effects.

main.rs
use glyph_core::{column, text, button, Signal, Theme};
use glyph_platform::App;

fn main() {
    let count = Signal::new(0i32);

    App::run(move |_opener| {
        let theme = Theme::light();
        let c = count.clone();
        let view = column(vec![
            text(format!("Count: {}", count.get()), 24.0)
                .color(theme.text)
                .into(),
            button("Increment", move || c.set(c.get() + 1))
                .bg(theme.primary)
                .text_color(theme.on_primary)
                .radius(8.0)
                .into(),
        ])
        .gap(12.0)
        .padding(24.0)
        .into();
        (theme, view)
    }, "Counter", 400.0, 300.0);
}