FuncDoodle
Loading...
Searching...
No Matches
Gui.h File Reference

ImGui/OpenGL/GLFW integration utilities and file dialog wrapper. More...

#include <cstdlib>
#include <filesystem>
#include <imgui.h>
#include <imgui_impl_glfw.h>
#include <imgui_impl_opengl3.h>
#include <imgui_internal.h>
#include <nfd.h>
#include <ostream>
#include <vector>

Go to the source code of this file.

Classes

class  FileDialog
 Lightweight wrapper around Native File Dialog operations. More...

Functions

std::ostream & operator<< (std::ostream &os, const ImGuiStyle &style)
 Streams a readable dump of an ImGui style object.

Detailed Description

ImGui/OpenGL/GLFW integration utilities and file dialog wrapper.

This header provides:

  • Stream operator overload for ImGuiStyle debugging/printing
  • FileDialog wrapper around Native File Dialog (NFD) for open/save/folder selection

The FileDialog class simplifies cross-platform file operations and integrates with std::filesystem for type-safe path handling.

Note
Relies on ImGui, GLFW, OpenGL, and Native File Dialog (NFD).
Warning
NFD allocations must be freed properly (handled internally here).

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & os,
const ImGuiStyle & style )
inline

Streams a readable dump of an ImGui style object.

Parameters
osOutput stream to write into.
styleImGui style instance to serialize.
Returns
Reference to os.