Commit Graph

93 Commits (a8e1dde3572660886990e21493e56a892d025743)

Author SHA1 Message Date
ocornut bce1ba400f Clipper: add ForceDisplayRangeByIndices (, )
This partially reverts commit 6a7e2c74fb.
ocornut 1a7526dcd4 Nav, Tabbing: refactor tabbing system to support clipped items, scrolling, using nav queries. ()
Not using counter/modulo anymore and special provisions to handle tab wrapping with ImGuiListClipper. Wrapping may be done better as a next-frame forwarded request.
Also one extra step toward  
ocornut 6a7e2c74fb Clipper: remove ForceDisplayRangeByIndices/ForceDisplayRangeByPositions functions until we find a need for them, since is now solved automatically.
ocornut 44f801186f SetItemDefaultFocus() use ScrollToRectEx(), don't tab when Alt is held either, TabItemEx() uses ItemAdd's extra_flags, misc comments.
ocornut ee351d3548 Nav: move code into NavMoveRequestSubmit(). NavApplyItemToResult() takes absolute rect., comments
ocornut e3988a84db Backends: OpenGL3: Embed our own minimal GL loader (amends). ()
ocornut 696d3e056e Internals: Menus: Naming offset field + fix spacing/offset computation to handle more offsets.
ocornut 0cca0d1617 Internals/experimental: BeginComboPreview(), EndComboPreview(). (, )
(amended)
ocornut d28535f351 Fixes for Visual Studio 2019 static analyzers. (, ) + two minor edge case were invalid scalar input (e.g. a sign only) would return buffer as modified.
ocornut 287bd9b984 InputText: renamed ImGuiInputTextFlags_AlwaysInsertMode to ImGuiInputTextFlags_AlwaysOverwrite. ()
ocornut 03d74a293d ListBox: renamed ListBoxHeader>BeginListBox, ListBoxFooter>EndListBox. Added demo bits.
ocornut 929563c3a7 Log/Capture: Fixes for handling \n in strings. Improve the look of various widgets. Added LogSetNextTextDecoration helper. Fixup/amend dbaf74d75.
For now removed LogRenderedTextNewLine() - it is eventually desirable but currently carries too much ambiguities, so reverted until we have a better system and test suite.
ocornut 17536f9add Tables: more consistent use of CellPadding.x*2 and clip-rect on right-most side of non-bordered column + fix cellbg for standalone TableHeader call.
Using CellPadding.x on both sides when BorderV is off, generally most consistent and with default value (4,2) promotes at-glance visible spacing between non-bordered columns. Effectively double horizontal padding on non-bordered columns.
Made ClipRect.Max.x matches WorkMaxX which is where we'd like to go for windows themselves.
TableHeader() submit single cell bg color if not already submitted as a full header row.
Misc comments/docs updates.
ocornut 7a27b2a282 Update Readme, links to Useful Widgets, updated a gif.
ocornut 124c2608f1 Docs: Renamed all occurences of "binding" and "back-end" to "backend" in comments and documentations, for consistency.
ocornut c47bcb25ed Fix popup and tooltip positioning when not fitting in the screen. Amend fa42ccea8.
# Conflicts:
#	docs/CHANGELOG.txt
ocornut 901d432cb7 Nav: Fixed using Alt to toggle the Menu layer when inside a Modal window. () Tidying up todo items.
ocornut 08108cf9ee Tab Bar: Hide tab item close button while dragging a tab.
ocornut 5dc5610ad5 Docs: TODO, FAQ
omar fb0f2ebd41 Drags, Sliders: Tweaks.
ocornut 46d75202b8 Tab Bar: Allow calling SetTabItemClosed() after a tab has been submitted (will process next frame).
+ larger combo height on TabBarTabListPopupButton()
omar db886f3953 Demo: Rework Clipping section. Fix for static analysis. Added bindings in Readme.
omar 963839373c Demo tweaks + general removal of the word dummy were possible with no issues (kept the API call).
omar 4929a8e4a5 InvisibleButton: Made public a small selection of ImGuiButtonFlags (previously in imgui_internal.h) and allowed to pass them to InvisibleButton().
omar 550f110354 InputText, ImDrawList: Fixed assert triggering when drawing single line of text with more than ~16 KB characters. ()
omar 9418dcb693 Version 1.77
+ fix minor clang-tidy warnings which seems reasonable
omar 99f68d7958 Docs: Added FAQ entries removed old one which is misleading today. Misc tweaks.
ocornut 078571b7a9 Popups: added comments, reorganized the functions in imgui.h
ocornut 99ab521024 Renamed OpenPopupOnItemClick() to OpenPopupContextItem(). Kept inline redirection function (will obsolete). + Removed CalcItemRectClosestPoint() entry point
omar 510f301c9f Internals: Removed seemingly unnecessary size_on_first_use arg to CreateNewWindow(), extracted code into ApplyWindowSettings.
omar ec2a24a5f1 Selectable: Allow using ImGuiSelectableFlags_SpanAllColumns in other columns than first. Comments. ()
omar 7c11997bcc Selectable: Fixed honoring style.SelectableTextAlign with unspecified size. (, )
Rokas Kupstys 75a65f6fb0 CI: Test build with large indices, obsolete functions disabled and demo/metrics windows disabled.
+ amend notes
ocornut 4a10af2bda Unicode, Windows: Remove stringapiset.h include (breaks vs2010 and seems unnecessary?). (, )
ocornut aef057e975 Internals: Added GetInputTextState() + comments.
ocornut 2679bee28d Internals: Refactor: Moved code out of NewFrame() into UpdateTabFocus() and UpdateSettings()
Rokas Kupstys 0342a3c548 Menus: Implement BeginMenu() appending to existing menu when executed with same ID multiple times. ()
ocornut 898e91f20d Internals: Added TempInputText() to facilitate creation of custom widgets, renamed TempInputTextScalar() to TempInputScalar() etc. ()
+ Minor imgui.h/todo comments
omar d37d25470a Added IMGUI_DISABLE compile-time definition to make all headers and sources empty.
omar 6c1a73774d Tooltip: Testing DragDropWithinSourceOrTarget in BeginTooltipEx() instead of just BeginTooltip() - feel this was an overlook. Added tooltip flags instead of using bool.
omar 4d4e3b97f4 TODO, Readme
(dropped TreeNode_NoIndent flag from todo, as it feels unnecessary)
omar 0dd02dd90d Happy new year!
Comments, Replaced pictures, Removed Patreon
omar 6fdde67be2 Documentation, FAQ, todo tweaks
omar 8342e5b91a Amend previous commits (added ImGuiMouseCursor_NotAllowed enum + new cursors in GLFW 3.4)
Amend b5cad20d79, 945a509773
+ unrelated minor typos
omar 9efaf2828b Doc comments. Removed .ini parsing code from 1.53 that parsed entries without the [Window] tag (which enabled importing an old .ini file)
omar 53278be61f FAQ, Readme. Use = {} instead of = { 0 }, wasn't problematic because they were all static variables or one stack array not read. But hey.
omar a2f3dcfc97 Added comment about SDL and SDL_INIT_GAMECONTROLLER. ()
omar 25849234f6 Internal: Tree: tweaks (initially tried to implement auto-scrolling, stashed)
omar a45e3b5bb3 Readme, Wiki: Image loading examples.
omar 57623c15dd Font: Narrow ellipsis: various minor stylistic tweaks ()