Crates.io | brisk-eframe |
lib.rs | brisk-eframe |
version | 0.6.1 |
created_at | 2024-12-18 10:05:37.615084+00 |
updated_at | 2025-08-03 20:18:00.217449+00 |
description | Use of the brisk declarative engine with eframe. |
homepage | https://cyloncore.com |
repository | https://gitlab.com/cyloncore/brisk |
max_upload_size | |
id | 1487362 |
size | 15,483 |
brisk-eframe
provides integration with the eframe
framework from egui.
The following creates a user interface with an Hello World!
banner.
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.