You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: imgui.h
+24-24
Original file line number
Diff line number
Diff line change
@@ -162,22 +162,6 @@ namespace ImGui
162
162
IMGUI_API voidPushButtonRepeat(bool repeat); // in 'repeat' mode, Button*() functions return true multiple times as you hold them (uses io.KeyRepeatDelay/io.KeyRepeatRate for now)
163
163
IMGUI_API voidPopButtonRepeat();
164
164
165
-
// Tooltip
166
-
IMGUI_API voidSetTooltip(constchar* fmt, ...); // set tooltip under mouse-cursor, typically use with ImGui::IsHovered(). last call wins
IMGUI_API voidBeginTooltip(); // use to create full-featured tooltip windows that aren't just text
169
-
IMGUI_API voidEndTooltip();
170
-
171
-
// Popup
172
-
IMGUI_API voidOpenPopup(constchar* str_id); // mark popup as open. popup identifiers are relative to the current ID-stack (so OpenPopup and BeginPopup needs to be at the same level). close childs popups if any. will close popup when user click outside, or activate a pressable item, or CloseCurrentPopup() is called within a BeginPopup()/EndPopup() block.
173
-
IMGUI_API boolBeginPopup(constchar* str_id); // return true if popup if opened and start outputting to it. only call EndPopup() if BeginPopup() returned true!
174
-
IMGUI_API boolBeginPopupModal(constchar* name, bool* p_opened = NULL, ImGuiWindowFlags extra_flags = 0); // modal dialog (can't close them by clicking outside)
175
-
IMGUI_API boolBeginPopupContextItem(constchar* str_id, int mouse_button = 1); // helper to open and begin popup when clicked on last item
176
-
IMGUI_API boolBeginPopupContextWindow(bool also_over_items = true, constchar* str_id = NULL, int mouse_button = 1); // helper to open and begin popup when clicked on current window
177
-
IMGUI_API boolBeginPopupContextVoid(constchar* str_id = NULL, int mouse_button = 1); // helper to open and begin popup when clicked in void (no window)
178
-
IMGUI_API voidEndPopup();
179
-
IMGUI_API voidCloseCurrentPopup(); // close the popup we have begin-ed into. clicking on a MenuItem or Selectable automatically close the current popup.
180
-
181
165
// Cursor / Layout
182
166
IMGUI_API voidBeginGroup(); // once closing a group it is seen as a single item (so you can use IsItemHovered() on a group, SameLine() between groups, etc.
183
167
IMGUI_API voidEndGroup();
@@ -312,7 +296,21 @@ namespace ImGui
312
296
IMGUI_API boolListBoxHeader(constchar* label, int items_count, int height_in_items = -1); // "
313
297
IMGUI_API voidListBoxFooter(); // terminate the scrolling region
314
298
315
-
// Widgets: Menus
299
+
// Widgets: Value() Helpers. Output single value in "name: value" format (tip: freely declare more in your code to handle your types. you can add functions to the ImGui namespace)
IMGUI_API voidBeginTooltip(); // use to create full-featured tooltip windows that aren't just text
311
+
IMGUI_API voidEndTooltip();
312
+
313
+
// Menus
316
314
IMGUI_API boolBeginMainMenuBar(); // create and append to a full screen menu-bar. only call EndMainMenuBar() if this returns true!
317
315
IMGUI_API voidEndMainMenuBar();
318
316
IMGUI_API boolBeginMenuBar(); // append to menu-bar of current window (requires ImGuiWindowFlags_MenuBar flag set). only call EndMenuBar() if this returns true!
@@ -322,13 +320,15 @@ namespace ImGui
322
320
IMGUI_API boolMenuItem(constchar* label, constchar* shortcut = NULL, bool selected = false, bool enabled = true); // return true when activated. shortcuts are displayed for convenience but not processed by ImGui at the moment
// Widgets: Value() Helpers. Output single value in "name: value" format (tip: freely declare more in your code to handle your types. you can add functions to the ImGui namespace)
IMGUI_API voidOpenPopup(constchar* str_id); // mark popup as open. popup identifiers are relative to the current ID-stack (so OpenPopup and BeginPopup needs to be at the same level). close childs popups if any. will close popup when user click outside, or activate a pressable item, or CloseCurrentPopup() is called within a BeginPopup()/EndPopup() block.
325
+
IMGUI_API boolBeginPopup(constchar* str_id); // return true if popup if opened and start outputting to it. only call EndPopup() if BeginPopup() returned true!
326
+
IMGUI_API boolBeginPopupModal(constchar* name, bool* p_opened = NULL, ImGuiWindowFlags extra_flags = 0); // modal dialog (can't close them by clicking outside)
327
+
IMGUI_API boolBeginPopupContextItem(constchar* str_id, int mouse_button = 1); // helper to open and begin popup when clicked on last item
328
+
IMGUI_API boolBeginPopupContextWindow(bool also_over_items = true, constchar* str_id = NULL, int mouse_button = 1); // helper to open and begin popup when clicked on current window
329
+
IMGUI_API boolBeginPopupContextVoid(constchar* str_id = NULL, int mouse_button = 1); // helper to open and begin popup when clicked in void (no window)
330
+
IMGUI_API voidEndPopup();
331
+
IMGUI_API voidCloseCurrentPopup(); // close the popup we have begin-ed into. clicking on a MenuItem or Selectable automatically close the current popup.
332
332
333
333
// Logging: all text output from interface is redirected to tty/file/clipboard. Tree nodes are automatically opened.
334
334
IMGUI_API voidLogToTTY(int max_depth = -1); // start logging to tty
0 commit comments