add menu construct

pull/2/head
ink-soul 2023-06-16 17:29:47 +08:00
parent 3c0e745cdf
commit 03dda388c2
1 changed files with 15 additions and 0 deletions

View File

@ -334,6 +334,21 @@ public:
bool button(const char *caption) {
return ImGui::Button(caption);
}
bool beginMenu(const char* caption) {
return ImGui::BeginMenu(caption);
}
bool menuItem(const char* caption,const char* shortcut)
{
return ImGui::MenuItem(caption, shortcut);
}
bool beginMenuBar()
{
return ImGui::BeginMenuBar();
}
void text(const char *formatstr, ...) {
va_list args;
va_start(args, formatstr);