From b3378e7ed11f7f4ec16e1eb268768791d6861331 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 15 Mar 2025 02:50:08 +0000 Subject: Add ImGui wrappers for creating a toolbar docked to a viewport edge Based on, but simplified, code for BeginMainMenuBar. --- ui/imgui_extras.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 ui/imgui_extras.h (limited to 'ui/imgui_extras.h') diff --git a/ui/imgui_extras.h b/ui/imgui_extras.h new file mode 100644 index 0000000..0babaa3 --- /dev/null +++ b/ui/imgui_extras.h @@ -0,0 +1,10 @@ +#include "imgui_wrap.h" + +namespace IltGui { + // NOLINTBEGIN(readability-identifier-naming) + bool BeginToolbar(const char * name, ImGuiViewport * viewport, ImGuiDir dir, float axisSize, + ImGuiWindowFlags windowFlags = 0); + bool BeginToolbar(const char * name, ImGuiDir dir, float axisSize, ImGuiWindowFlags windowFlags = 0); + void EndToolbar(); + // NOLINTEND(readability-identifier-naming) +} -- cgit v1.2.3