Crates.io | fractk_macro |
lib.rs | fractk_macro |
version | 0.0.3 |
source | src |
created_at | 2022-08-29 00:29:02.652427 |
updated_at | 2022-12-03 12:11:41.610728 |
description | A declarative desktop GUI framework - macro crate |
homepage | https://gitlab.com/madd-games/fractk |
repository | https://gitlab.com/madd-games/fractk |
max_upload_size | |
id | 654109 |
size | 23,967 |
FracTK is a GUI framework for Rust, for making desktop apps using a React-like API. It is backend-agnostic, and will try to use the native GUI library on each target. Currently, it uses the Windows API for windows
targets, and GTK4 for unix
targets.
The framework is currently in a pre-alpha stage. All releases from the 0.0.x
series are to be considered experimental, and the API may change between them. We will make periodic releases when various milestones are reached. When the library grows further, processes will be established and semantic versioning will be used, starting at 1.0.0
.
Here is some quick boilerplate code for an app:
use fractk::prelude::*;
use fractk_macro::*;
app! {
treeml! {
<Window title="Hello world">
<Column>
<Label text="label 1"/>
<Label text="label 2"/>
</Column>
</Window>
}
}
Some example apps are available in the examples
directory.