#egui #irox #extra #gui-framework

irox-egui-extras

Extras & tweaks for the egui framework

12 releases

new 0.3.8 Apr 24, 2024
0.3.7 Mar 3, 2024
0.3.6 Jan 12, 2024
0.3.5 Dec 17, 2023
0.3.3 Nov 29, 2023

#338 in GUI

48 downloads per month
Used in 2 crates

MIT/Apache

85KB
2K SLoC

irox Extras for egui

Stuff that should have been in egui, but isn't.

Features

Widgets:

EGUI/Serde Serializer for Debugging Objects visually:

Use:

    let object = (); // your object that impls Serialize
let mut ser = EguiSerializer::new();
if let Ok(()) = obj.serialize( & mut ser) {
ser.show(ui);
}

In the above screenshot, ui is a Window

ProgressBar

Drop-in replacement of egui's ProgressBar widget with some tweaks:

  • Removes the animated spinner for performance
  • Adds the ability to mark the bar as 'indeterminate' and show a bouncing bar back and forth
  • Adds the ability to right align, center, and left align text in the bar. These are not mutually exclusive, and you can have text in all three positions simultaneously.

Frames, Apps, & Infrastructure

ToolFrame & ToolApp

Boilerplate bootstraps to make writing tools in egui easier. See the screenshot above for an example of the ToolFrame.

You must impl ToolApp to use ToolFrame

StylePersistingApp

Wraps your App impl to automatically persist your App state to disk. Requires features serde

CompositeApp

Allows you to compose multiple Apps together. The update method will be called sequentially, in the order the apps are provided.

Dependencies

~8–51MB
~791K SLoC