From 9c0ae49a8dea080c547d352bbb95045029ad0d2d Mon Sep 17 00:00:00 2001 From: scawful Date: Sat, 9 Jul 2022 22:45:50 -0400 Subject: [PATCH] Added tab item macro --- src/app/core/constants.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/core/constants.h b/src/app/core/constants.h index fec967c5..d8a722e1 100644 --- a/src/app/core/constants.h +++ b/src/app/core/constants.h @@ -11,6 +11,11 @@ ImGui::EndTabBar(); \ } +#define TAB_ITEM(w) if (ImGui::BeginTabItem(w)) { +#define END_TAB_ITEM() \ + ImGui::EndTabItem(); \ + } + #define MENU_BAR() if (ImGui::BeginMenuBar()) { #define END_MENU_BAR() \ ImGui::EndMenuBar(); \