omar
0371219222
Nav: Internals: Renamed SetActiveIDNoNav -> SetActiveID() and old SetActiveID() -> SetFocusID(), both functions needs to be called when both are desirabled. ( #787 )
...
May break code relying on imgui_internal.h, relying on nav and not calling ButtonBehavior().
ago%!(EXTRA string=8 years)
omar
4be967823f
Exposed Scrollbar() in imgui_internal.h and removed a bool arg
ago%!(EXTRA string=8 years)
omar
7a14d7dfdc
Nav: More consistently drawing a (thin) navigation rectangle hover filled frames such as tree nodes, collapsing header, menus. ( #787 )
ago%!(EXTRA string=8 years)
omar
69dd895358
Nav: Renaming NavInitDefaultRequest -> NavInitRequest
ago%!(EXTRA string=8 years)
omar
d2975115cd
Nav: Caching into g.NavAnyRequest to minimize hot path cost (and so we can add many more request sources)
ago%!(EXTRA string=8 years)
omar
c3105919ba
Nav: Minor tweaks also toward removing processing from ItemAdd()
ago%!(EXTRA string=8 years)
omar
042153d254
Internal: ItemAdd(), IsClippedEx(): removed unnecessary indirection for ID parameter
ago%!(EXTRA string=8 years)
omar
59c6f35bf6
Added ActivateItem(), GetItemID() functions.
ago%!(EXTRA string=8 years)
omar
80c4e2fe7b
Nav: Tidying up activation mechanism so that setting NavActivateId can trigger buttons.
ago%!(EXTRA string=8 years)
omar
2f27b733be
Nav: Fixed uninitialized context variables for sanity.
ago%!(EXTRA string=8 years)
omar
f2c9bd8d4f
Nav: Fixed uninitialized context variables for sanity.
ago%!(EXTRA string=8 years)
omar
f326fac64a
Nav: Menus and popups now have move request wrap around vertically (using the move request forward thing added recently). ( #787 )
ago%!(EXTRA string=8 years)
omar
42ee537be3
Comments
ago%!(EXTRA string=8 years)
omar
a56b71e866
Nav: Added code to render thin highlight type. ( #787 )
ago%!(EXTRA string=8 years)
omar
64a51327d3
Nav: Added NavMoveResultParentId internal info to record when the parent/context of a given NavId. Useful for various algorithms (currently looking at range selection stuff) ( #787 )
ago%!(EXTRA string=8 years)
omar
74da533c93
Nav: Added NavJustNavigatedId internal info to record when we land on a given item after a navigation request, useful for various algorithms (currently looking at range selection stuff) ( #787 )
ago%!(EXTRA string=8 years)
omar
88a354585a
Nav: It's now possible to navigate sibling of a menu-bar while navigating inside one of their child. If a Left<>Right navigation request fails to find a match we forward the request to the root menu. ( #787 , #126 )
...
Currently the sibling menu is isn't automatically opened, that's still left to it (and even that can be anoying in Windows when the first menu-item is a child menu)
ago%!(EXTRA string=8 years)
omar
587e637db0
Nav: Taking note that we should aim to remove MenuBarAppending later.
ago%!(EXTRA string=8 years)
omar
1eaa9d0621
Nav: Fixed uninitialized variable (that had no side-effects due to the code/data flow involved)
ago%!(EXTRA string=8 years)
omar
8a5a29f0be
Nav: Renamed internal field.
ago%!(EXTRA string=8 years)
omar
9712a81f85
Nav: Rectangle rectangle stored per window and per layer as well. Makes things simpler, allows enable us to visualize more data.
ago%!(EXTRA string=8 years)
omar
9737efb2f1
Nav: Store per-window last nav id also per-layer so we can easily query them for menu navigation code. ( #787 )
ago%!(EXTRA string=8 years)
omar
30b1d85962
Nav: Commiting some better organized Debug helper because this going to stay for a bit.
ago%!(EXTRA string=8 years)
omar
164f22d5b7
Comments
ago%!(EXTRA string=8 years)
omar
df366b230e
ColorPicker4: Use nav flag to provide a slighly better experience when using navigation ( #787 , #346 )
ago%!(EXTRA string=8 years)
omar
2d859dee4e
Nav: Added ImGuiItemFlags_NoNav item flag
ago%!(EXTRA string=8 years)
omar
4b4e455c40
Nav: Internal nenaming
ago%!(EXTRA string=8 years)
omar
50ba543743
Comments
ago%!(EXTRA string=8 years)
omar
e0a2a832cd
Nav: Changed internal flag to NoNavDefaultFocus to be false by allow, and more consistent ( #787 )
ago%!(EXTRA string=8 years)
omar
926c1cf9a4
Merged from Navigation branch: ImGuiItemFlags_SelectableDontClosePopup flag
ago%!(EXTRA string=8 years)
omar
f99348711b
Added VerticalSeparator() entry point in imgui_internal. Seperator() in an horizontal layout context still does that.
ago%!(EXTRA string=8 years)
omar
0106dcbd02
Fixed IsItemHovered() - part of the processing has to be done in ItemAdd() because the widget may alter clipping rectangle temporarily.
ago%!(EXTRA string=8 years)
omar
fafe65a8fc
Refactor to move the responsability of SetHovered() to ItemHoverable() - previously IsHovered(). Simpler and the parallel to ItemAdd is clearer with the new name.
ago%!(EXTRA string=8 years)
omar
7bcb1d3816
Internals: ButtonBehavior(), IsHovered() moved the responsability of flatten_child higher level to ButtonBehavior() - not super sure about the elegance of this
ago%!(EXTRA string=8 years)
omar
0adcddac39
IsItemHovered(), ItemAdd(): finishing cleaning up, moved the code to IsItemHovered() so ItemAdd() is more lightweight and the two IsXXXHovered functions are now very similar, making their differences less confusing.
ago%!(EXTRA string=8 years)
omar
99c7622a1b
ItemAdd(), not performing computation for IsItemRectHovered() which does them itself, allowing us in the next commit to optimize ItemAdd() and make its logic more consistent with IsHovered().
ago%!(EXTRA string=8 years)
omar
8374a454da
Removed extraneous ImGui:: prefixes. Declared ColorEditOptionsPopup in imgui_internals.h. Tweaked internal signatures.
ago%!(EXTRA string=8 years)
omar
072d6d8cb5
ImFontAtlas: Refactored internals API to 1) avoid building lookup table multiple times for merged fonts + 2) allow the mapping of custom icons inside fonts (wip, uncommited)
ago%!(EXTRA string=8 years)
omar
be03882a15
Separator(): output vertical separator when used in horizontal layout mode, so it works in menu bars.
ago%!(EXTRA string=8 years)
omar
69d0d33451
Exposed PushMultiItemsWidths() to imgui_internal.h
ago%!(EXTRA string=8 years)
omar
0d56140b4a
BeginCombo(): rework internals a little to make it easier to provide custom combo-like elements relying in BeginCombo().
...
BeginPopupEx() doesn't enforce AlwaysAutoResize flag anymore.
ago%!(EXTRA string=8 years)
omar
4b82759598
SetNextWindowPos: added a ImVec2 pivot parameter for positioning a given a center, bottom-right position, etc. As a generalization of SetNextWindowPosCenter() which is now obsolete. This will be useful for combo-like popups as well.
...
Demo: Simple-overlay window uses the SetWindowPos pivot to select a corner to position itself at.
ago%!(EXTRA string=8 years)
omar
0a5fb24f10
Popups: Exposing a little more of popups internals in imgui_internals.h
ago%!(EXTRA string=8 years)
Bruce Mitchener
2fcdeb7f12
Remove commas after last item in enumeration.
...
This brings these enums to match the rest of the code and fixes
2 warnings under clang about using C++11 extensions.
ago%!(EXTRA string=8 years)
omar
cb2775ae54
Internals: ImGuiItemFlags comments
ago%!(EXTRA string=8 years)
omar
f63c03c464
Internals: moved ButtonRepeat and AllowKeyboardFocus bools/stacks to a generic ItemFlags stack. Merged from Navigation branch.
ago%!(EXTRA string=8 years)
omar
2169bf6895
Fixed WantTextInput from being true when an activated Drag or Slider was previously turned into an InputText(). ( #1317 )
ago%!(EXTRA string=8 years)
omar
790605e359
Minor comments + renaming internal fields
ago%!(EXTRA string=8 years)
omar
e8dbf1c795
Combo: Internally split into BeginCombo(), EndCombo(), toward a more flexible combo api.
ago%!(EXTRA string=8 years)
omar
804ee78731
Added IsWindowAppearing().
ago%!(EXTRA string=8 years)