The WindowUtils interface provides a handful of functions to integrate the framework's render loop and the renderer with the underlying windowing library's events API.
It looks like this:
class WindowUtils
{
public:
static bool shouldRender() noexcept;
static void pollEvents(double& now, double& deltaTime, double& lastTime) noexcept;
// In milliseconds
static void waitEventsTimeout(double timeout) noexcept;
static void waitEvents() noexcept;
};
The event safety of all functions is set at
post-begin
.
There is also a C API which is the same as the C++ one, but using
standard C API semantics such as prefixing each function with
UImGui_WindowUtils_
, as defined 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