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
Marked IsRootWindowFocused() as obsolete in favor of using IsWindowFocused(ImGuiFocusedFlags_RootWindow).
Marked IsRootWindowOrAnyChildFocused() as obsolete in favor of using IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows).
- 2017/12/10 (1.53) - removed SetNextWindowContentWidth(), prefer using SetNextWindowContentSize(). Kept redirection function (will obsolete).
218
220
- 2017/11/27 (1.53) - renamed ImGuiTextBuffer::append() helper to appendf(), appendv() to appendfv(). If you copied the 'Log' demo in your code, it uses appendv() so that needs to be renamed.
Copy file name to clipboardExpand all lines: imgui.h
+14-5
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,8 @@ typedef int ImDrawCornerFlags; // flags: for ImDrawList::AddRect*() etc.
80
80
typedefint ImGuiColorEditFlags; // flags: for ColorEdit*(), ColorPicker*() // enum ImGuiColorEditFlags_
81
81
typedefint ImGuiColumnsFlags; // flags: for *Columns*() // enum ImGuiColumnsFlags_
82
82
typedefint ImGuiComboFlags; // flags: for BeginCombo() // enum ImGuiComboFlags_
83
-
typedefint ImGuiHoveredFlags; // flags: for IsItemHovered() // enum ImGuiHoveredFlags_
83
+
typedefint ImGuiFocusedFlags; // flags: for IsWindowFocused() // enum ImGuiFocusedFlags_
84
+
typedefint ImGuiHoveredFlags; // flags: for IsItemHovered() etc. // enum ImGuiHoveredFlags_
84
85
typedefint ImGuiInputTextFlags; // flags: for InputText*() // enum ImGuiInputTextFlags_
85
86
typedefint ImGuiSelectableFlags; // flags: for Selectable() // enum ImGuiSelectableFlags_
86
87
typedefint ImGuiTreeNodeFlags; // flags: for TreeNode*(),CollapsingHeader()// enum ImGuiTreeNodeFlags_
@@ -442,10 +443,8 @@ namespace ImGui
442
443
IMGUI_API ImVec2 GetItemRectMax(); // "
443
444
IMGUI_API ImVec2 GetItemRectSize(); // "
444
445
IMGUI_API voidSetItemAllowOverlap(); // allow last item to be overlapped by a subsequent item. sometimes useful with invisible buttons, selectables, etc. to catch unused area.
445
-
IMGUI_API boolIsWindowFocused(); // is current Begin()-ed window focused?
446
-
IMGUI_API boolIsWindowHovered(ImGuiHoveredFlags flags = 0); // is current Begin()-ed window hovered (and typically: not blocked by a popup/modal)?
447
-
IMGUI_API boolIsRootWindowFocused(); // is current Begin()-ed root window focused (root = top-most parent of a child, otherwise self)?
448
-
IMGUI_API boolIsRootWindowOrAnyChildFocused(); // is current Begin()-ed root window or any of its child (including current window) focused?
446
+
IMGUI_API boolIsWindowFocused(ImGuiFocusedFlags flags = 0); // is current window focused? or its root/child, depending on flags. see flags for options.
447
+
IMGUI_API boolIsWindowHovered(ImGuiHoveredFlags flags = 0); // is current window hovered (and typically: not blocked by a popup/modal)? see flags for options.
449
448
IMGUI_API boolIsAnyWindowHovered(); // is mouse hovering any visible window
450
449
IMGUI_API boolIsRectVisible(const ImVec2& size); // test if rectangle (of given size, starting from cursor position) is visible / not clipped.
451
450
IMGUI_API boolIsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max); // test if rectangle (in screen space) is visible / not clipped. to perform coarse clipping on user's side.
staticinlinevoidSetNextWindowContentWidth(float width) { SetNextWindowContentSize(ImVec2(width, 0.0f)); } // OBSOLETE 1.53+ (nb: original version preserved last Y value set by SetNextWindowContentSize())
boolBegin(constchar* name, bool* p_open, const ImVec2& size_on_first_use, float bg_alpha_override = -1.0f, ImGuiWindowFlags flags = 0); // OBSOLETE 1.52+. use SetNextWindowSize() instead if you want to set a window size.
0 commit comments