| Crates.io | structura-lib |
| lib.rs | structura-lib |
| version | 0.2.3 |
| created_at | 2025-07-02 03:45:34.913001+00 |
| updated_at | 2025-07-12 19:11:08.553502+00 |
| description | A Rust GUI Framework. |
| homepage | https://github.com/NathanLaan/structura/ |
| repository | https://github.com/NathanLaan/structura/ |
| max_upload_size | |
| id | 1734450 |
| size | 134,081 |
Structura is a GUI framework created to learn how to create a GUI framework in Rust. Maybe one day it will be "OK enough" to actually use for something, but you really should not use this.
The Structura GUI framework is based on cross-platform components, but has only been tested on Linux.
Structura is based on the following libraries:
Structura is being loosely designed around a Model-View-Controller (MVC) architecture.
The Structura UI components are designed around a fluent API where possible. For example:
let button1 = Button::default()
.set_text("Button 1!".to_string())
.on_click(|| {
println!("button1.on_click()");
});
Component: Displays output to users and/or allows users to interact. Interaction may be via mouse and/or keyboard.Container: Can hold a list of child containers or components.ContainerComponent: Composition trait of Container and Component.Component.TextArea?)draw_border().