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
NavMoveRequestSubmit(ImGuiDir_None, offset < 0 ? ImGuiDir_Up : ImGuiDir_Down, move_flags, scroll_flags); // FIXME-NAV: Once we refactor tabbing, add LegacyApi flag to not activate non-inputable.
Copy file name to clipboardExpand all lines: imgui.h
+6-4
Original file line number
Diff line number
Diff line change
@@ -900,10 +900,12 @@ namespace ImGui
900
900
IMGUI_API voidPopClipRect();
901
901
902
902
// Focus, Activation
903
-
// - Prefer using "SetItemDefaultFocus()" over "if (IsWindowAppearing()) SetScrollHereY()" when applicable to signify "this is the default item"
904
-
IMGUI_API voidSetItemDefaultFocus(); // make last item the default focused item of a window.
903
+
IMGUI_API voidSetItemDefaultFocus(); // make last item the default focused item of of a newly appearing window.
905
904
IMGUI_API voidSetKeyboardFocusHere(int offset = 0); // focus keyboard on the next widget. Use positive 'offset' to access sub components of a multiple component widget. Use -1 to access previous widget.
906
905
906
+
// Keyboard/Gamepad Navigation
907
+
IMGUI_API voidSetNavCursorVisible(bool visible); // alter visibility of keyboard/gamepad cursor. by default: show when using an arrow key, hide when clicking with mouse.
908
+
907
909
// Overlapping mode
908
910
IMGUI_API voidSetNextItemAllowOverlap(); // allow next item to be overlapped by a subsequent item. Useful with invisible buttons, selectable, treenode covering an area where subsequent items may need to be added. Note that both Selectable() and TreeNode() have dedicated flags doing this.
909
911
@@ -996,7 +998,7 @@ namespace ImGui
996
998
// - Many related features are still in imgui_internal.h. For instance, most IsKeyXXX()/IsMouseXXX() functions have an owner-id-aware version.
997
999
IMGUI_API voidSetItemKeyOwner(ImGuiKey key); // Set key owner to last item ID if it is hovered or active. Equivalent to 'if (IsItemHovered() || IsItemActive()) { SetKeyOwner(key, GetItemID());'.
998
1000
999
-
// Inputs Utilities: Mouse specific
1001
+
// Inputs Utilities: Mouse
1000
1002
// - To refer to a mouse button, you may use named enums in your code e.g. ImGuiMouseButton_Left, ImGuiMouseButton_Right.
1001
1003
// - You can also use regular integer: it is forever guaranteed that 0=Left, 1=Right, 2=Middle.
1002
1004
// - Dragging operations are only reported after mouse has moved a certain distance away from the initial clicking position (see 'lock_threshold' and 'io.MouseDraggingThreshold')
@@ -1676,7 +1678,7 @@ enum ImGuiCol_
1676
1678
ImGuiCol_TextLink, // Hyperlink color
1677
1679
ImGuiCol_TextSelectedBg,
1678
1680
ImGuiCol_DragDropTarget, // Rectangle highlighting a drop target
1679
-
ImGuiCol_NavHighlight, //Gamepad/keyboard: current highlighted item
1681
+
ImGuiCol_NavHighlight, //Color of gamepad/keyboard navigation cursor/rectangle, when visible
1680
1682
ImGuiCol_NavWindowingHighlight, // Highlight window when using CTRL+TAB
1681
1683
ImGuiCol_NavWindowingDimBg, // Darken/colorize entire screen behind the CTRL+TAB window list, when active
1682
1684
ImGuiCol_ModalWindowDimBg, // Darken/colorize entire screen behind a modal window, when one is active
0 commit comments