Crate dear_app

Crate dear_app 

Source
Expand description

dear-app: minimal Dear ImGui app runner for dear-imgui-rs

Goals

  • Hide boilerplate (Winit + WGPU + platform + renderer)
  • Provide a simple per-frame closure API similar to immapp::Run
  • Optionally initialize add-ons (ImPlot, ImNodes) and expose them to the UI callback

Quickstart

use dear_app::{run_simple};
use dear_imgui_rs::*;

fn main() {
    run_simple(|ui| {
        ui.window("Hello")
            .size([300.0, 120.0], Condition::FirstUseEver)
            .build(|| ui.text("Hello from dear-app!"));
    }).unwrap();
}

Structs§

AddOns
Mutable view to add-ons for per-frame rendering
AddOnsConfig
Add-ons to be initialized and provided to the UI callback
AppBuilder
App builder for ergonomic configuration
DockingApi
DockingConfig
Docking configuration
DockingController
GpuApi
GPU access API for real-time scenarios (game view, image browser, atlas editor)
RunnerCallbacks
Runner lifecycle callbacks (all optional)
RunnerConfig
Basic runner configuration

Enums§

DearAppError
RedrawMode
Redraw behavior for the event loop
Theme
Simple built-in themes for convenience

Functions§

run
Run an app with configuration and add-ons.
run_simple
Simple helper to run an app with a per-frame UI callback.
run_with_callbacks
Run with explicit lifecycle callbacks (used by the builder-style API)