552 Commits (a2fbcc9ad4e92f0ea11265c8539c86c0caa1b0c3)

Author SHA1 Message Date
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) 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(). 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. 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. 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)
omar ddf41b0398 Merged from Navigation branch. TAB/Alt-TAB processing now deactivate if holding Ctrl. ago%!(EXTRA string=8 years)
omar 358e7a194e Added GetKeyPressedAmount() (from Nav branch) to be able to measure fast repeat rate accurately. Added internal CalcTypematicPressedRepeatAmount() function. ago%!(EXTRA string=8 years)
omar ee42fae468 Merge various minor things (supposedly harmless) from Navigation branch into Master to reduce differences. (#787) ago%!(EXTRA string=8 years)
omar 01d4bf299a Added overcomplicated RenderRectFilledRangeH() to fix rounded progress bar, which will also help for range widgets and perhaps sliders grabs over rounded areas. (#1296, #76) ago%!(EXTRA string=8 years)
omar 7a9ea281be ImSwap() helper. ago%!(EXTRA string=8 years)
omar 1f51e8f39d Internals: Renamed some ImGuiCorner enums. ago%!(EXTRA string=8 years)
omar 419b22a487 Internals: Split some code out of NewFrame() into an Initialize() function. ago%!(EXTRA string=8 years)
omar f72ca6d22c ImFontConfig: Added RasterizerMultiply option to alter the brightness of individual fonts at rasterization time, which may help increasing readability for some. Added RasterizerFlags for custom rasterizer flags (aka imgui_freetype) ago%!(EXTRA string=8 years)
omar 37f3a718c6 Marked all fmt + va_list functions with format attribute so GCC/Clang can warn about them. Not ignoring -Wsuggest-attribute=format anymore for GCC/Clang. ago%!(EXTRA string=8 years)
omar 40f608ce9b Version 1.52 WIP ago%!(EXTRA string=8 years)
omar 55a6209931 Version 1.51 ago%!(EXTRA string=8 years)
omar 141339e4b7 (internals) Renamed FocusedWindow to NavWindow to match terminology of navigation branch ago%!(EXTRA string=8 years)
ocornut 2ad2190d47 Merge 20a0fde012 Tidying up default clipboard handler for non Windows-OS (from Nav branch) ago%!(EXTRA string=8 years)
omar bea06117bb Nav: Fix navigation inside child windows. Removed GetChildID() and storin/g the info within the window. (#1291) ago%!(EXTRA string=8 years)
ocornut 50b3a14d0a Merge 2545d75c3b from Nav - Tidying up, removed two unnecessary window flags from being exposed in imgui.h ago%!(EXTRA string=8 years)