nuit 0.2.0

Declarative, cross-platform UI framework for Rust that uses native controls
Documentation
#![feature(type_alias_impl_trait, impl_trait_in_assoc_type)]

use nuit::{Bind, Capsule, Circle, Color, Ellipse, Rectangle, RoundedRectangle, ShapeExt, VStack, View, ViewExt};

#[derive(Bind)]
struct ShapesView;

impl View for ShapesView {
    type Body = impl View;

    fn body(&self) -> Self::Body {
        VStack::new(
            (
                Capsule::new(),
                Circle::new(),
                Ellipse::new(),
                Rectangle::new(),
                RoundedRectangle::with_corner_radius(15.0)
                    .fill(Color::RED),
            )
            .frame((100, 50))
        )
    }
}

fn main() {
    nuit::run_app(ShapesView);
}