#imgui #user-interface #type #render #structs #egui #presentable

imgui_presentable

A simple way to represent Rust types in ImGui

6 releases (3 breaking)

0.4.0 Nov 24, 2023
0.3.0 Nov 23, 2023
0.2.1 Nov 21, 2023
0.1.1 Nov 20, 2023

#485 in GUI

38 downloads per month

MIT license

98KB
2K SLoC

Imgui Presentable

This crate is a collection of immediate gui interfaces and implementations of those for the most common types.

Please refer to the crate documentation and the main README file of the repository.


lib.rs:

Imgui Presentable.

Here are the main interfaces which allow the users to render enums or structs in ImGui or egui effortlessly.

To switch between the gui backends (ImGui and egui), use the corresponding crate features. Both the features can be enabled simultaneously, if necessary.

The crate already provides some implementations for the basic Rust types and some other types from other crates, feature-gated.

For the collections, the trait is implemented automatically if the element type of the collection implements the ImguiPresentable or the EguiPresentable trait itself.

Dependencies

~6–15MB
~242K SLoC