Added tab item macro

This commit is contained in:
scawful
2022-07-09 22:45:50 -04:00
parent 908eb147a1
commit 9c0ae49a8d

View File

@@ -11,6 +11,11 @@
ImGui::EndTabBar(); \ ImGui::EndTabBar(); \
} }
#define TAB_ITEM(w) if (ImGui::BeginTabItem(w)) {
#define END_TAB_ITEM() \
ImGui::EndTabItem(); \
}
#define MENU_BAR() if (ImGui::BeginMenuBar()) { #define MENU_BAR() if (ImGui::BeginMenuBar()) {
#define END_MENU_BAR() \ #define END_MENU_BAR() \
ImGui::EndMenuBar(); \ ImGui::EndMenuBar(); \