dear-app
Convenient Dear ImGui application runner for dear-imgui-rs, bundling Winit + WGPU setup into a tiny API. It hides boilerplate, exposes ergonomic callbacks, and can initialize popular add-ons (ImPlot, ImNodes, ImPlot3D) behind feature flags.
Features
- Winit + WGPU app bootstrap with sensible defaults
- Per-frame UI closure (
run_simple) and a configurable builder (AppBuilder) - Optional add-ons via features:
implot,imnodes,implot3d - Docking helpers, theme presets, INI path selection
- Lifecycle callbacks: setup/style/fonts/post-init/event/exit
Quick Start
[]
= "0.8"
# Optional add-ons (enable any subset)
= { = "0.8", = ["implot", "imnodes", "implot3d"] }
Minimal usage:
use run_simple;
use *;
Tip: pass .opened(&mut open) if you want a title-bar close button (X), and stop submitting the window when open == false.
Builder with add-ons and docking/theme presets:
use ;
use dear_imgui_rs as imgui;
Notes
- Backends: Uses
dear-imgui-winitanddear-imgui-wgpuinternally. - Fonts/FreeType: Configure in the
on_fontscallback; FreeType can be enabled viadear-imgui-rs/freetype.