<div align="center">

[![stable pipeline](https://gitlab.com/cyloncore/brisk/badges/stable/pipeline.svg?key_text=stable)](https://gitlab.com/cyloncore/brisk/-/pipelines?ref=stable)
[![dev/1 pipeline](https://gitlab.com/cyloncore/brisk/badges/dev/1/pipeline.svg?key_text=dev/1)](https://gitlab.com/cyloncore/brisk/-/pipelines?ref=dev/1)
[![docs](https://docs.rs/brisk-eframe/badge.svg)](https://docs.rs/brisk-eframe)
[![crates.io](https://img.shields.io/crates/v/brisk-eframe.svg)](https://crates.io/crates/brisk-eframe)
</div>

brisk-eframe
============

`brisk-eframe` provides integration with the `eframe` framework from [egui](https://www.egui.rs/).

Example
-------

The following creates a user interface with an `Hello World!` banner.

```rust
use brisk_eframe::brisk_it;

struct MyApp {
}

impl MyApp {
    fn new(_: &eframe::CreationContext) -> Self {
        Self {
        }
    }
}

brisk_it! {
    Main
    {
        title: "My egui App",
        viewport: Viewport
        {
            inner_size: [320.0, 240.0],
        },
        App {
            target: MyApp,
            CentralPanel
            {
                Heading
                {
                    text: "Hello World!",
                },
            }
        }
    }
}
```

A more complete example is available in the [hello world example](https://gitlab.com/cyloncore/brisk/-/tree/stable/examples/hello_world).
