diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-09-25 12:16:30 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-09-25 12:16:30 -0500 |
commit | 8477ffbfba2f15edb9f87e9336e2c4599000c32a (patch) | |
tree | 059a36f9d526b0807a7bd0b20979577f9a7e7d0e /src/imgui_context.hpp | |
parent | b6e3cc840e255b78ee53e55b420aeee130e51ce1 (diff) |
Moving forward.
Diffstat (limited to 'src/imgui_context.hpp')
-rw-r--r-- | src/imgui_context.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
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<ImGuiBeginMenuBar, ImGuiEndMenuBar>; + STRUCT_FUNCTOR_ARGS(ImGuiBeginMenu, ImGui::BeginMenu) STRUCT_FUNCTOR(ImGuiEndMenu, ImGui::EndMenu) using ImguiMenu = ConditionalRaii<ImGuiBeginMenu, ImGuiEndMenu>; +// STRUCT_FUNCTOR_ARGS(ImGui + #undef STRUCT_FUNCTOR #undef STRUCT_FUNCTOR_ARGS |