Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

ImSpinner

ImSpinner: loading spinners, dozens of them, to show that some work is going on.

Each spinner_* function draws one kind of spinner, at each frame.

Upstream repository · The book’s page

Modules

In imgui_bundle (from imgui_bundle import imspinner):

Demos using it

The demos of the catalog that use it (the pictures link to their code and to the playground).

Power save when idle

Power save when idle

When nothing happens, Hello ImGui lowers the frame rate to spare the CPU: watch the FPS and the spinner slow down.

More

Move the mouse, and they speed up again. The slider sets fps_idle (0 means full speed), and the checkbox turns idling off, for example during an animation.

Uses: spinners

Python: ▶︎ Run · Code
C++: ▶︎ Run · Code

Knobs, toggles, spinners and more

Knobs, toggles, spinners and more

Knobs, toggle switches, spinners, a command palette, a dock-like cool bar: widgets beyond Dear ImGui’s own.

More

They come from the libraries in the bundle: imgui-knobs, imgui_toggle, imspinner, imgui-command-palette and ImCoolBar. Also file dialogs: the native ones (portable-file-dialogs), and ImFileDialog, drawn with ImGui.

Uses: knobs, toggles, spinners, cool bar, command palette, file dialogs

Python: ▶︎ Run · Code
C++: ▶︎ Run · Code