ocornut
0e2a167bdb
Fonts: added a 'void* UserData' field in ImFontAtlas, as a convenience for use by applications using multiple font atlases.
...
+ fixed mislocated Changelog entries added recently.
ago%!(EXTRA string=2 years)
ocornut
9825f7fa87
Fixed cases where CTRL+Tab or Modal can occasionally lead to the creation of ImDrawCmd with zero triangles. ( #4857 , #5937 )
...
Amend b0a6cd6
ago%!(EXTRA string=2 years)
assiduous
66ad2ad539
Properly detect SSE instruction support in 32-bit MSVC build. ( #5943 )
ago%!(EXTRA string=2 years)
Marc Delorme
a5e96ff99e
Make ImGuiInputTextState not depend on the implicit GImGui context. ( #5856 )
...
This commit is a preparation toward adding ImGui apis with explicit context
and making ImGui applications being able to use multiple context at the same time
whatever their concurrency model.
--
Prior to this commit ImGuiInputTextState::OnKeyPressed was depending on the
global context to know which font and font size to use, and if it should
follow MacOSX behaviors or not (c.f ConfigMacOSXBehaviors).
Instead of using the global context, this commit store the context as
attribute of ImGuiInputTextState. Since this state is forwarded to most
of text edit related function, it possible to access font, font size and
ConfigMacOSXBehaviors from everywhere.
NOTE: I have noticed a bug prior to that commit: if the font or font size
change while editing the same widget, the ImGuiInputTextState become invalid
and there is no code to handle this invalidation. Fixing this bug is out
of scope of current pull request.
# Conflicts:
# imgui_internal.h
ago%!(EXTRA string=2 years)
ocornut
45736443be
Debug Tools: Metrics: added "Inputs" section, moved from Demo for consistency.
ago%!(EXTRA string=2 years)
ocornut
87caf27ac4
Inputs, Scrolling: better selection of scrolling window when hovering nested windows and backend/OS is emitting dual-axis wheeling inputs. ( #3795 , #4559 )
ago%!(EXTRA string=2 years)
ocornut
a5f3596e6c
Backends: Allegro5: use al_draw_indexed_prim() or al_draw_prim() depending on version. ( #5937 )
...
+ OSX comments (#5938 )
Amend 185b4dde
+ 50aeeff
ago%!(EXTRA string=2 years)
Espyo
50aeeff96c
Backends: Allegro5: Brough back al_draw_indexed_prim when available. ( #5937 )
...
Amend 185b4dde
ago%!(EXTRA string=2 years)
ocornut
bf4c2e00c0
Docs: retroactively update 1.89 changelog/docs to clarify that strong typing ImGuiKey was technically a breaking change for users of legacy indices. ( #4921 )
...
Amend 4b522e145
ago%!(EXTRA string=2 years)
ocornut
cc3a2200a9
Internals: invert logic of mods key<>bool translation to facilitate other experiments and put emphasis on new API. ( #5923 , #4921 )
...
Should be no-op, this is mostly to make it easier to store state for ImGuiMod_Shortcut.
ago%!(EXTRA string=2 years)
ocornut
1a497c2499
Inputs, IO: reworked ImGuiMod_Shortcut to redirect to Ctrl/Super at runtime instead of compile-time. ( #5923 , #456 )
ago%!(EXTRA string=2 years)
Teselka
969af7c773
Internal: Disable debug logs macro if IMGUI_DISABLE_DEBUG_TOOLS is defined. ( #5901 )
...
+ needed to rework clipper code to avoid "The 'then' statement is equivalent to the 'else' statement." PVS Studio warning.
ago%!(EXTRA string=2 years)
ocornut
bd96f6eac4
Text: Fixed layouting of wrapped-text block when the last source line is above the clipping region. Regression added in 1.89. ( #5720 , #5919 )
...
+ Update version marker
ago%!(EXTRA string=2 years)
ocornut
6af38b1a43
Fixed version string for consistency ( #5918 )
ago%!(EXTRA string=2 years)
ocornut
a8df192df0
Version 1.89.1
ago%!(EXTRA string=2 years)
ocornut
27c58c3946
Scrolling, Focus, Combo: fixed SetKeyboardFocusHere()/SetItemDefaultFocus()/ScrollToRectEx() during an appearing form not centering item. ( #5902 , #2812 , #4242 , #2900 )
...
Amend 44f801186
and 8f495e554
ago%!(EXTRA string=2 years)
kdchambers
233d7ad3f2
Backends: WebGPU: fixed validation error with default depth buffer settings. ( #5869 , #5914 )
...
(initialize WGPUCompareFunction params to valid values)
ago%!(EXTRA string=2 years)
ocornut
856c6314ec
Drag and Drop: fixed GetDragDropPayload() returning a non-NULL value before payload is submitted. ( #5910 , #143 )
...
+ Added test "widgets_dragdrop_new_payloads" in Test Suite.
ago%!(EXTRA string=2 years)
ocornut
ffe0abbfc2
Internals: added basic localization system ( #5895 )
ago%!(EXTRA string=2 years)
ocornut
c3d9f8ee7e
Layout: fixed End()/EndChild() incorrectly asserting if users manipulates cursor position inside a collapsed/culled window and IMGUI_DISABLE_OBSOLETE_FUNCTIONS is enabled. ( #5548 , #5911 )
ago%!(EXTRA string=2 years)
ocornut
3a685749cb
ColorEdit: fixed label overlapping when using style.ColorButtonPosition == ImGuiDir_Left. ( #5912 )
...
Amend 54fb051e5
+ Internals: added IsKeyboardKey(), IsMouseKey() helpers.
ago%!(EXTRA string=2 years)
ocornut
16476f99fd
Backends: GLFW: cancel out errors emitted by glfwGetKeyName() when a name is missing. ( #5908 )
ago%!(EXTRA string=2 years)
ocornut
5bb2874940
Version 1.89.1 WIP
ago%!(EXTRA string=2 years)
ocornut
7bee9a8f96
Inputs: fixed moving a window or drag and dropping from preventing input-owner-unaware code from accessing keys. ( #5888 , #4921 , #456 )
...
Amend 4448d97
. This is more consistent with input owner design.
ago%!(EXTRA string=2 years)
ocornut
d60985df7f
Inputs: fix moving a window or drag and dropping from capture mods. ( #5888 , #4921 , #456 )
...
Amend change of SetActiveIdUsingAllKeyboardKeys() in 4448d97
which seemingly accidentally reverted the change intended by fd408c97
ago%!(EXTRA string=2 years)
ocornut
83cee9e091
InputText: replaced some uses of SetKeyOwner() + IsKeyPressed() with Shortcut()
...
Which makes it easier to hook/disable those keys from outside if needed.
ago%!(EXTRA string=2 years)
ocornut
81160fee56
Version 1.89
...
+ fix warning from a582d92
ago%!(EXTRA string=3 years)
ocornut
a582d92c31
Inputs: modulate wheel lock timer for small amount of wheeling. Slightly lower timer. ( #3795 )
ago%!(EXTRA string=3 years)
macaba
03d3343e21
Docs: Update FAQ.md explaining how to enable hidpi for Windows app. ( #5880 )
ago%!(EXTRA string=3 years)
Peter Nimmervoll
00b6370848
Backends: WebGPU: fixed rendering when a depth buffer is enabled. ( #5869 )
ago%!(EXTRA string=3 years)
ocornut
7380b9816e
Scrolling: Exposed SetNextWindowScroll() in public API. ( #1526 )
ago%!(EXTRA string=3 years)
ocornut
cda26635cd
Inputs: refacotr/extract CalcRoutingScore() out of SetShortcutRouting(), easier to follow with early returns.
...
+ clarified comments about GetMouseCursor() #5739
ago%!(EXTRA string=3 years)
ocornut
b8b0f9d02e
Backends: OpenGL3: Reverted use of glBufferSubData(). ( #4468 , #4504 , #3381 , #2981 , #4825 , #4832 , #5127 )
ago%!(EXTRA string=3 years)
ocornut
f0ad810553
Inputs: tweak comments, typos.
ago%!(EXTRA string=3 years)
ocornut
637ddfce09
Inputs, Nav: made it possible to remap CTRL+Tab ( #4828 , #3255 , #5641 )
ago%!(EXTRA string=3 years)
ocornut
6c9c4879d9
Inputs: made Shortcut() routing id defaults to current FocusScope ID. ( #456 , #2637 , #3724 )
...
One idea being that this value can be easily locked (for blind menus) or manipulated (for queries from outside).
ago%!(EXTRA string=3 years)
ocornut
d576724bfd
Inputs: made ImGuiInputFlags_RouteFocused the default for Shortcut(). ( #456 , #2637 , #3724 )
ago%!(EXTRA string=3 years)
ocornut
4d6a9ef93f
Inputs: added routing priorities. ( #456 , #2637 , #3724 )
...
- and ImGuiInputFlags_RouteUnlessBgFocused
- will be useful for blind menu handlers.
ago%!(EXTRA string=3 years)
ocornut
7ff2d3353c
Inputs: added wip/experiment routing system: Shortcut(), RoutingFocused policy, SetShortcutRouting(). ( #456 , #2637 , #3724 )
...
- InputText() uses Shortcut().
ago%!(EXTRA string=3 years)
ocornut
c59ebb2d71
Inputs: added basic Shortcut() function - no routing yet. ( #456 )
ago%!(EXTRA string=3 years)
ocornut
8c95c084cb
Inputs: changed specs of SetKeyOwner() to alter OwnerCurr immediately.
...
Note the removed comments (hence not squashing)
Amend 4448d97
(#456 , #2637 , #2620 , #2891 , #3370,, #4828 , #5108 , #5242 , #5641 )
ago%!(EXTRA string=3 years)
ocornut
4448d975d1
Inputs: added wip/internal Input Owner system. ( #456 , #2637 , #2620 , #2891 , #3370 , #4828 , #5108 , #5242 , #5641 )
...
- Added SetKeyOwner(), SetItemKeyOwner(), TestKeyOwner().
- Added new IsKeyXXX IsMouseXXX functions with ImGuID owner_id and flags.
- Obsoleted SetItemUsingMouseWheel(). (#2891 )
- Removed IsKeyPresseedEx() which was a recent internal addition 2022-07-08 deemed to be temporary exactly for this.
- Added ImGuiButtonFlags_NoSetKeyOwner, ImGuiButtonFlags_NoTestKeyOwner
- Added ImGuiSelectableFlags_NoSetKeyOwner.
- Added ImGuiInputFlags_LockThisFrame, ImGuiInputFlags_LockUntilRelease for for SetKeyOwner(), SetItemKeyOwner().
- Added ImGuiInputFlags_CondXXX values for SetItemKeyOwner().
ago%!(EXTRA string=3 years)
ocornut
44d98bfd6d
Fix build with IMGUI_DISABLE_DEBUG_TOOLS
ago%!(EXTRA string=3 years)
ocornut
529cba19b0
Debug Tools: Added DebugLocateItem()/DebugLocateItemOnHover() to visually locate items when hovering a 0xXXXXXXXX value. ( #5855 , #2673 , #4631 )
ago%!(EXTRA string=3 years)
ocornut
7109f32f96
Internals: tidying up and stripping more of focus scope code.
ago%!(EXTRA string=3 years)
ocornut
9f66a3a9ed
Internals: rework FocusScope system, current scope doesn't need to be in window + child doesn't inherit.
...
Intended as part of work for input routing + blind menu processing shortcuts. Some of this commit will be stripped by next commit.
Intent was to sort windows along with focus scope to build a hierarchy, but for our needs we'd need a persistant one, so scrapping the idea. Not squashing this with next commit to keep a bit of history for future references.
ago%!(EXTRA string=3 years)
ocornut
1eac0024c0
InputText: copy and select all shortcuts don't need repeat (tho it was harmless0
ago%!(EXTRA string=3 years)
ocornut
90e9465fa5
Window: Fixed position not being clamped while auto-resizing ( #5843 )
ago%!(EXTRA string=3 years)
ocornut
6e9dfe1de1
Window: Auto-fit size takes account of work rectangle (menu bars eating from viewport). ( #5843 )
ago%!(EXTRA string=3 years)
Akira Maezawa
86f2af2bc7
Backends: OSX: Fixed mouse coordinate before clicking on the host window. ( #5842 )
ago%!(EXTRA string=3 years)