omar
c3105919ba
Nav: Minor tweaks also toward removing processing from ItemAdd()
ago%!(EXTRA string=8 years)
omar
d16309ca77
Internal: ItemAdd() minor shallow tweaks
ago%!(EXTRA string=8 years)
omar
042153d254
Internal: ItemAdd(), IsClippedEx(): removed unnecessary indirection for ID parameter
ago%!(EXTRA string=8 years)
omar
acb6f12d2c
Removed extraneous calls to GetCurrentWindowRead() when we already have a ImGuiContext. Internal RenderXXX functions also don't need to write into the Accessed field at all.
ago%!(EXTRA string=8 years)
omar
f451785c9e
Nav: Shuffled code in ItemAdd() so that NavProcessItem() may have access to LastItemId (will be required by tabbing)
ago%!(EXTRA string=8 years)
omar
e12cfa9dfd
Nav: Minor midying up and comments,
ago%!(EXTRA string=8 years)
omar
40df7a5155
Nav: Removed possibly redundant test prior to calling NavProcessItem() from ItemAdd()
ago%!(EXTRA string=8 years)
omar
a77dd02e8a
Nav: Moving code next to its peers
ago%!(EXTRA string=8 years)
omar
f5bd4663dd
Nav: Moving the big chunk of code from ItemAdd() to NavProcessItem()
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
d851775c80
ColorButton: Reduced bordering artefact that would be particularly visible with opaque Col_FrameBg and FrameRounding enabled.
ago%!(EXTRA string=8 years)
omar
726dcf0dd2
TextUnformatted(): minor tweak
ago%!(EXTRA string=8 years)
omar
a0d724b450
Made AlignFirstTextHeightToWidgets() saner and faster (still disliking its name very much!)
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
a8788e51a7
SetKeyboardFocusHere() added assert to prevent passing values smaller than -1 as we may have to outlaw them (I think nobody was using that)
ago%!(EXTRA string=8 years)
omar
63cd2bf9b1
Removed obsolete comment.
ago%!(EXTRA string=8 years)
omar
67ac7da30f
Styles: Added ImGuiStyle::ScaleAllSizes(float) helper to make it easier to have application transition to e.g. High DPI with a matching style.
ago%!(EXTRA string=8 years)
omar
a56b71e866
Nav: Added code to render thin highlight type. ( #787 )
ago%!(EXTRA string=8 years)
matiTechno
b36a043bbf
typo
ago%!(EXTRA string=8 years)
omar
6ea90af6b7
Nav: Highlight clipped within host window then extruded out. ( #787 )
ago%!(EXTRA string=8 years)
omar
cb4e6c8212
Nav: Selectable(): activating selectable also sets NavId + removed the MouseDelta test (added in 43ee5d73e9
, #323 ) as I don't think it is needed. ( #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
7f58bb03c1
Changed the internal name formatting of child windows to use slashes as separator, more readable.
ago%!(EXTRA string=8 years)
omar
cbc9730798
Metrics: Draw window bounding boxes when hovering Pos/Size. List all draw layers, trimming empty commands like Render() does.
ago%!(EXTRA string=8 years)
omar
491edfd8d8
Nav: Fixed a crash introduced yesterday.
ago%!(EXTRA string=8 years)
omar
0046c618b0
Nav: Allow to collapse tree nodes with NavLeft and open them with NavRight ( #787 , #1079 )
ago%!(EXTRA string=8 years)
omar
ecd72cc0c7
Nav: Disabled the final axial check when considering candidates in most situations except menubars.
...
It's definitively undesirable inside Menu as we want to catch nav request failures reliably.
I think it may be considered as an option if we find this desirable i some circumstances. Right now ideally I'd remove it totally but with current scoring setup, without it we can't easily reach the Window Close button. (#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
f4e4c38705
BeginMenu(): fixed logic to distinguish vertical menu from one layed out in a menu bar. Makes MenuItem() in a regular window behave more consistently, and this will be also needed by upcoming menu-navigation changes in the nav branch. ( #126 , #787 )
ago%!(EXTRA string=8 years)
omar
9912f7eef8
BeginMenu(): fixed logic to distinguish vertical menu from one layed out in a menu bar. Makes MenuItem() in a regular window behave more consistently, and this will be also needed by upcoming menu-navigation changes in the nav branch. ( #126 , #787 )
ago%!(EXTRA string=8 years)
omar
cf3b21179b
Nav: Comments
ago%!(EXTRA string=8 years)
omar
5a9ebeca9e
Nav: Fix typo from 9712a81f85
ago%!(EXTRA string=8 years)
omar
bfaa426f7f
Nav: Minor tidying up (adding local variables to be a little more sane).
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
54eb4c485e
Nav: Marked misleading/broken code that will never execute.
ago%!(EXTRA string=8 years)
omar
e3c89aeb10
Nav: Fixed menuitems/selectable on menu layer (layer 1) from storing themselves in wrong layer of LastNavIds when hovered.causing inconsistencies and bugs when hovering menu with mouse then pressing ALT to return to layer 0).
...
NB: this is not a new bug introduced by the previous commit (which is related to nav layers), bug has been there for a while. (#787 )
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
fba9353c60
BeginMenu: Shuffling braces around to clarify flow
ago%!(EXTRA string=8 years)
omar
cf308f4039
Nav: Fixed SetItemDefaultFocus from stealing default focus when we are initializing default focus for a menu bar layer ( #787 )
ago%!(EXTRA string=8 years)
omar
f4398226cc
Nav: Support for fallback horizontal scrolling with PadLeft/PadRight (nb: fallback scrolling is only used to navigate windows that have no interactive items). ( #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
1f7f54e196
Removed extraneous test.
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
878fa96896
Nav: Re-arranged ItemAdd() to maximize early out ( #787 )
ago%!(EXTRA string=8 years)
omar
dd0855de5c
ButtonBehavior: Tidying up.
ago%!(EXTRA string=8 years)
omar
4b4e455c40
Nav: Internal nenaming
ago%!(EXTRA string=8 years)