From 8477ffbfba2f15edb9f87e9336e2c4599000c32a Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Wed, 25 Sep 2024 12:16:30 -0500 Subject: Moving forward. --- src/imgui_context.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/imgui_context.hpp') diff --git a/src/imgui_context.hpp b/src/imgui_context.hpp index 435db9a..c6059d6 100644 --- a/src/imgui_context.hpp +++ b/src/imgui_context.hpp @@ -72,11 +72,18 @@ class ConditionalRaii { } \ }; +STRUCT_FUNCTOR_ARGS(ImGuiBeginMenuBar, ImGui::BeginMenuBar) +STRUCT_FUNCTOR(ImGuiEndMenuBar, ImGui::EndMenuBar) + +using ImguiMenuBar = ConditionalRaii; + STRUCT_FUNCTOR_ARGS(ImGuiBeginMenu, ImGui::BeginMenu) STRUCT_FUNCTOR(ImGuiEndMenu, ImGui::EndMenu) using ImguiMenu = ConditionalRaii; +// STRUCT_FUNCTOR_ARGS(ImGui + #undef STRUCT_FUNCTOR #undef STRUCT_FUNCTOR_ARGS -- cgit v1.2.3