-
-
Notifications
You must be signed in to change notification settings - Fork 7
Additional features
This page showcases a bunch of small features that are really useful.
While dear imgui provides a lot of features, we decided to add some additional features on top of it to improve the development experience.
Each UI component has a ComponentState enum member that looks like this:
enum UImGui_ComponentState
{
UIMGUI_COMPONENT_STATE_PAUSED,
UIMGUI_COMPONENT_STATE_RUNNING,
UIMGUI_COMPONENT_STATE_OFF,
};When set to RUNNING(the default mode) it's shown to the screen. If set to PAUSED it's not shown but is expected
to be rendered at some point. If set to OFF it's not supposed to be active.
Since UI components have this state enum, we can use it to enable/disable rendering of components. Because it's an enum,
however, we cannot pass it directly as p_open since dear imgui requires p_open to be a bool*.
To fix this, we have added additional overrides that take a void* to enable you to use the state enum directly
without casting the pointer. The functions can be seen on our dear imgui fork here.
This project is supported by all the people who joined our discord server and became beta testers. If you want to join the discord you can click here.
- 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