| Crates.io | egui_mobius_components |
| lib.rs | egui_mobius_components |
| version | 0.3.0-alpha.31 |
| created_at | 2025-04-25 20:13:40.86351+00 |
| updated_at | 2025-04-25 20:13:40.86351+00 |
| description | UI components for egui_mobius framework |
| homepage | https://github.com/saturn77/egui_mobius |
| repository | https://github.com/saturn77/egui_mobius |
| max_upload_size | |
| id | 1649424 |
| size | 158,986 |
A collection of reusable UI components for the egui_mobius framework.
The egui_mobius_components crate provides high-level, reusable UI components built on top of the egui_mobius architecture:
Add the following to your Cargo.toml:
[dependencies]
egui_mobius_components = "0.3.0-alpha.31"
And then import components via the prelude:
use egui_mobius_components::prelude::*;
use eframe::egui;
use egui_mobius_components::prelude::*;
fn main() -> Result<(), eframe::Error> {
// Initialize logger with signal/slot
let (logger, event_slot, response_signal) = create_event_logger(
egui::Context::default(),
LogColors::default()
);
// Add a log entry
logger.info(
"Application started".to_string(),
LogSender::system(),
LogType::Default
);
// Show the logger in your UI
eframe::run_ui(&egui::Context::default(), |ui| {
logger.show(ui);
});
}
For more detailed examples, check out the logger_component example in the egui_mobius repository.
This project is licensed under the MIT License - see the LICENSE file for details.