Crate imgui_presentable
source ·Expand description
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.
Structs
- The width and height of the viewport used by ImGUI.
Traits
- Allows the implementing object to be rendered as an eGUI component.
- Allows the implementing object to be rendered as an ImGUI component.
Derive Macros
- Generates the immediate gui (ImGui or egui) representation for a struct or an enum.