509 Commits (96ddfbc97342c8c4750cf66a05cae285afc26e6f)

Author SHA1 Message Date
omar 68d3e139a7 Nav: When focusing a parent window while closing a popup, hide its highlight for one frame to avoid potential double highlight and flicker with the common pattern of menu items leading to the opening other windows. (#787) ago%!(EXTRA string=7 years)
omar 950f260a32 Nav: Fixed Selectable/MenuItem Nav Highlight from using rounding when outer highlight stays square. (#787) ago%!(EXTRA string=7 years)
omar 07163804df Internals: Renamed CloseInactivePopups() to a better ClosePopupsOverWindow(). Exposed in imgui_internal.h ago%!(EXTRA string=7 years)
omar fd6d8863f7 Nav: SetFocusID() clears NavInitRequest for consistency (repro would a same frame interaction / race condition). (#787) ago%!(EXTRA string=7 years)
omar 8cc2dbc3bd Internals: Nav: Extracted code into IsWindowNavFocusable(). (#787) ago%!(EXTRA string=7 years)
omar bdd868704f Nav: Child window is restored on focus when returning to layer 0 or refocusing. This is a little experimental and potentially error-prone right now. (#787, vaguely relate to ~#727) Ideally we should maintain a non-sorted last-focused list that include childs windows. ago%!(EXTRA string=7 years)
omar c851b33352 Nav: Added proper version of ImGuiWindowFlags_NavFlattened that handles scrolling nicely. Marked as private as I'm not happy with the name. (#787) ago%!(EXTRA string=7 years)
omar c8d8dc7f0a Nav: Internals: Renamed RootNavWindow to NavRootWindow (#787) ago%!(EXTRA string=7 years)
omar 72485a5d04 Nav: Refactor NavMoveResult** flags into ImGuiNavMoveResult structure as we are going to want two instances of it. (#787) (+1 squashed commits) ago%!(EXTRA string=7 years)
omar 1cf38d0334 Internals: Nav: Renamed ImGuiNavForward enum (#787) ago%!(EXTRA string=7 years)
omar 4654040bcb Nav: Comments, added enum to clarify NavForward code. (#787) ago%!(EXTRA string=7 years)
omar 04d5783ffd Nav: Cleaning up + using ImGuiInputSource source enum instead of a silly bool. (#787) ago%!(EXTRA string=7 years)
omar f2d5300408 Nav: Keyboard: Added CTRL+TAB (and CTRL+Shift+TAB) style window selection. (#787) ago%!(EXTRA string=7 years)
omar 8bf0c89c0d Internals: ImRect::Contains(ImRect&) include boundaries (whereas Contains(ImVec2) should not). ago%!(EXTRA string=7 years)
omar d404b93b6b Nav: Mouse clicking on a window (to select/move) disables hides nav highlight. (#787) + comments ago%!(EXTRA string=7 years)
omar 28671aa821 Nav: Internals: Moved some enums and functions to internals, renamed ImGuiNavReadMode to ImGuiInputReadMode as well. (#787) ago%!(EXTRA string=7 years)
omar 9a76fd30fd Added SetNextWindowBgAlpha() helper. (#1567) particularly helpul with the marking of the old 5-parameters version of Begin() as obsolete. ago%!(EXTRA string=7 years)
omar db2ba13154 Internals: Exposed SetCurrentFont() in imgui_internal.h ago%!(EXTRA string=7 years)
omar 1acb155419 Internals: Moved unnecessary MovingWindowMoveId field. ago%!(EXTRA string=7 years)
omar cd1409f4bf ImFontAtlas: Moved mouse cursor data out of ImGuiContext, fix drawing them with multiple context. Also remove the last remaining undesirable dependency on GImGui in imgui_draw.cpp, finishing the work recently done with ImDrawListSharedData. Hurra! (#939) ago%!(EXTRA string=7 years)
omar c2ffce3e5a Drag and Drop: Fix comment. Removed IMGUI_PAYLOAD_TYPE_DOCKABLE from master branch. (#143) ago%!(EXTRA string=7 years)
omar cc15512bfc InputText: Minor tweak. ago%!(EXTRA string=7 years)
omar a221d253f3 Nav: Comment. ago%!(EXTRA string=7 years)
omar 28a76af185 Internal: DrawData: Tidying, renaming. ago%!(EXTRA string=7 years)
omar 1182174d81 Internals: DrawData: We don't need an intermediate layer for popups. ago%!(EXTRA string=7 years)
omar 038453258e Internals: DrawData: Refactored chunks into a ImDrawDataBuilder we can reuse. ago%!(EXTRA string=7 years)
omar 061d8df033 MIssing IMGUI_API for a type with non-inline methods. ago%!(EXTRA string=7 years)
omar 06eef2ce6f Internals: DrawData: renamed fields only (committing separately so that next commit is less nosiy). ago%!(EXTRA string=7 years)
omar 514d30d8cd MovingWindow: Track click offset based on MovingWindow and not its RootWindow. Followup to 3849bb4470. Comments + adding a local to ease patch #1345. ago%!(EXTRA string=7 years)
omar db63e71f13 Internals: Exposed SetCurrentFont() in imgui_internal.h ago%!(EXTRA string=7 years)
omar 1493de4f81 Internals: Merge of harmless stuff from Navigation stuff. Added GetHoveredID() internal helper. ago%!(EXTRA string=7 years)
omar c85d7d6e49 Nav: Remove GetItemID(), hide ActivateItem() before this feature is unfinished and has issue (full feature is on hold). Undo part of 59c6f35bf6 (#787) ago%!(EXTRA string=7 years)
omar 0a98202714 Nav: Standardized FIXME-NAV marker. ago%!(EXTRA string=7 years)
omar 16285603f2 Internals: Initializing fields in same order as declaration order + fixed uninitialized DragDropAcceptIdCurrRectSurface (was harmless) ago%!(EXTRA string=7 years)
omar 0cabd81071 Internals: Rect: Added ClipWillFull helper + comments on variations. ago%!(EXTRA string=7 years)
omar 92d75c44bc Internals: ImVec2 versions of ImMin, ImMax inline float version for a faster full-on-debug-no-inline experience. ago%!(EXTRA string=7 years)
omar 3fc7cf190d OpenPopup(): Always reopen existing popup. Removed OpenPopupEx() bool reopen_existing which is always true. This also makes the public API on par with OpenPopupEx(). (#1497, #1533) ago%!(EXTRA string=7 years)
omar deab2ab015 Popups: Gently handle the user mistakenly calling OpenPopup() every frame. (when reopen_existing is true). (#1497) ago%!(EXTRA string=7 years)
omar 69ff65f054 Internals: Popup: Renaming fields. ago%!(EXTRA string=7 years)
omar 3678307cd9 Popup, Menus: Tweaks and comments. ago%!(EXTRA string=7 years)
omar 369189b675 Internals: Popup: Explicitely setting up ImGuiPopupRef reduces confusion. ago%!(EXTRA string=7 years)
omar a34490239c Internals: Popup: Separating MousePosOnOpen and PopupPosOnOpen. They are equal in the master branch but different in the navigation branch. ago%!(EXTRA string=7 years)
omar 95b773370f Revert "Internals: Added LastActiveId, LastActiveIdTimer. (#1537)" Will come up with a better design later. ago%!(EXTRA string=7 years)
omar 007f4034c9 Internals: Added LastActiveId, LastActiveIdTimer. (#1537) ago%!(EXTRA string=7 years)
omar 4fc9f44073 Merge of minor left-overs from private work branch to reduce drifts. Should be functionally a no-op. ago%!(EXTRA string=7 years)
omar b2ec0741f1 Internals: Settings api tweaks ago%!(EXTRA string=7 years)
omar f9b2058d5a Internals: Renamed ImGuiSimpleColumns to ImGuiMenuColumns to avoid confusion. Reduced internal buffer size (we only use 3 slots). ago%!(EXTRA string=7 years)
omar 3c6fbe0849 Renamed ImGuiSizeConstraintCallback to ImGuiSizeCallback, ImGuiSizeConstraintCallbackData to ImGuiSizeCallbackData. ago%!(EXTRA string=7 years)
omar 7fcbd45500 Internals: NextWindow: Renamed, moved functions to member. ago%!(EXTRA string=7 years)
omar e339949de1 Internals: NextWindow: Using ImGuiCond for consistency. ago%!(EXTRA string=7 years)