Skip to content

Commit

Permalink
fix begin tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed May 2, 2024
1 parent 01c2d77 commit 0aee8e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,9 @@ class ImGui {
static void EndMenu() { im::EndMenu(); }
static bool MenuItem(const char* label, const char* shortcut = NULL, bool selected = false, bool enabled = true) { return im::MenuItem(label, shortcut, selected, enabled); }
static bool MenuItem_2(const char* label, const char* shortcut, bool* p_selected, bool enabled = true) { return im::MenuItem(label, shortcut, enabled); }
static void BeginTooltip() { im::BeginTooltip(); }

// Tooltips
static bool BeginTooltip() { return im::BeginTooltip(); }
static void EndTooltip() { im::EndTooltip(); }
static void SetTooltip(const char* fmt) { im::SetTooltip(fmt); }
static void SetTooltipV(const char* fmt, va_list args) { im::SetTooltipV(fmt, args); }
Expand Down
5 changes: 3 additions & 2 deletions imgui/imgui-build/src/main/cpp/imgui.idl
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,9 @@ interface ImGui {
static void EndMenu();
static boolean MenuItem([Const] DOMString label, [Const] optional DOMString shortcut, optional boolean selected, optional boolean enabled);
static boolean MenuItem_2([Const] DOMString label, [Const] DOMString shortcut, boolean[] p_selected, optional boolean enabled);
//
static void BeginTooltip();

// Tooltips
static boolean BeginTooltip();
static void EndTooltip();
static void SetTooltip([Const] DOMString fmt);
//// static void SetTooltipV([Const] DOMString fmt, DOMString args);
Expand Down

0 comments on commit 0aee8e8

Please sign in to comment.