galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
ImGuiHelpers.hpp File Reference
#include <functional>
#include <imgui/imgui.h>
#include <SDL3/SDL_events.h>
Include dependency graph for ImGuiHelpers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  galaxy
 Tag.cpp galaxy.
namespace  galaxy::ui

Functions

void galaxy::ui::imgui_init (const char *ini)
 Initialize ImGui context with galaxy.
void galaxy::ui::imgui_set_theme (const float scale) noexcept
 Set imgui theme.
void galaxy::ui::imgui_handle_events (const SDL_Event &events)
 Handle events in ImGui.
void galaxy::ui::imgui_new_frame ()
 Begin setting up ImGui pass.
void galaxy::ui::imgui_render ()
 Render imgui.
void galaxy::ui::imgui_exit ()
 Destroy imgui context.
void galaxy::ui::imgui_notify_success (const char *msg)
 ImGui success notification.
void galaxy::ui::imgui_notify_info (const char *msg)
 ImGui info notification.
void galaxy::ui::imgui_notify_warning (const char *msg)
 ImGui warning notification.
void galaxy::ui::imgui_notify_error (const char *msg)
 ImGui error notification.
void galaxy::ui::imgui_center_next_window ()
 Make sure the next window opened is centered on the monitor.
void galaxy::ui::imgui_confirm (const char *msg, std::move_only_function< void(void)> &&yes={}, std::move_only_function< void(void)> &&no={})
 Handles a popup for a yes/no situation.
ImGuiInputTextFlags galaxy::ui::imgui_default_flags () noexcept
 Get default text input flags.