The imspinner library provides spinner widgets for dear imgui, like these:
Enabling the module
To enable the spinners module, update your uvproj.yaml
so that the spinners key under enabled-modules
is set to true like this:
name: "MyProject"
version: "1.0.0.0"
engine-version: "1.0.0.0"
enabled-modules:
spinners: trueThen, regenerate the modules cache by running the following command:
user $ https://madladsquad.com/UVKBuildTool --generate <project directory>
After that, refresh your CMake project with
cmake ..!
Next, in your source file, include the Modules.hpp like
this:
#include <Modules/Modules.hpp>Event safety
The entire module is flagged as event safe at
All ready.
Testing out the module
In one of your widgets, add the following code to your tick function:
ImSpinner::demoSpinners()This will display all the available spinners, like the image at the start of the page.
Learning the module
To learn more about this third-party library, check out the imspinner GitHub repository.
Checking for the module
To check for the module at compile time, use the
UIMGUI_SPINNERS_MODULE_ENABLED macro.
Runtime checking can be done using the spinners member
of the ModuleSettings struct. More info can be found here.
C API
There is currently no C API for the spinners module.
- Home
- Beginner content
- Install guide
- Creating and using the UI components
- The Instance
- The Init Info struct
- Building better titlebar menus
- Textures
- Logging
- Unicode support
- Additional features
- Client-side bar
- Custom type definitions
- Memory management
- C API development
- Config files and Folders
- Interfaces
- Internal Event safety
- Customising the build system
- Modules system
- Collaborating with others
- Advanced content
- Loading dynamic libraries at runtime
- Understanding the library layout
- Compilation mode modifiers
- Supporting plugins
- Production export and deployment
- OS integration tips
- Targeting WASM
- Using a custom rendering engine:
- Using a custom windowing backend:
- Developer and contributor resources
- Misc