19c3773cc0
Backends: Vulkan: Call vkCmdSetScissor() with a full-viewport at end of render. (#4644)
ocornut2021-10-15 12:11:11 +02:00
bbd5119a26
Backends: Vulkan: comments about user using VK_DYNAMIC_STATE_VIEWPORT / VK_DYNAMIC_STATE_SCISSOR and not calling vkCmdSetViewport() / vkCmdSetScissor(). (#4644)
ocornut2021-10-15 12:01:35 +02:00
75c54e6384
Nav: Fixed vertical scoring offset when wrapping on Y in a decorated window.
ocornut2021-10-11 14:40:42 +02:00
ba5c105c01
Menus: Fixed an assertion happening in some situations when closing nested menus (broken in 1.83). (#4640)
ocornut2021-10-11 11:37:31 +02:00
44f801186f
SetItemDefaultFocus() use ScrollToRectEx(), don't tab when Alt is held either, TabItemEx() uses ItemAdd's extra_flags, misc comments.
ocornut2021-10-07 18:25:29 +02:00
ec6ca06898
InputText: Fixed selection rectangle appearing one frame late when selecting all.
ocornut2021-10-08 13:00:47 +02:00
dde31030e9
Backends: SDL_Renderer: use SDL_RenderIsClipEnabled() to pass NULL to SDL_RenderSetClipRect (#3926, #4582, #4633)
ocornut2021-10-07 15:07:43 +02:00
30a6873a44
Backends: WebGPU: Fix missing initialization of local variable (#4634)
Basil FierzandGitHub2021-10-07 14:58:09 +02:00
31d033c9d8
Nav: refactor SetKeyboardFocusHere() into using Nav facility. Fix it for clipped items. (#343, #4079, #2352, #432)
ocornut2021-10-06 18:33:01 +02:00
fbe78b1a3a
Stack Tool: Docs (#4631) + also prevent Metrics window from displaying twice.
ocornut2021-10-06 18:16:43 +02:00
25332fa5ac
Backends: Emscripten: Update the webgpu API to be compatible with chrome 4633 (#4512)
Basil Fierzandocornut2021-09-05 23:40:01 +02:00
2de96c4bd5
Stack Tool: Added Stack Tool (ShowStackToolWindow() function and available from Demo and Metrics window). (#4631)
ocornut2021-09-30 12:15:34 +02:00
164a86d3b0
Moved !IsActiveIdUsingKey(ImGuiKey_Tab) check to UpdateTabFocus(). Added asserts to IsItemHovered() and IsWindowHovered().
ocornut2021-10-05 22:06:12 +02:00
677fe33990
Backends: DX12: use dxgiformat.h to fix using forward declared DXGI_FORMAT (#4594)
ocornut2021-09-30 11:53:20 +02:00
fc4988ffb0
Added ImGuiFocusedFlags_NoPopupHierarchy and ImGuiHoveredFlags_NoPopupHierarchy (followup #4527)
ocornut2021-09-24 14:51:14 +02:00
24a77824f2
Added ClosePopupsExceptModals() helper, unused for now (aimed at user being able to close popups on app focus loss, not necessarily a suitable default)
ocornut2021-09-22 15:50:40 +02:00
bbb95a5e06
IO: modify io.AddFocusEvent() to tolerate in/out for multi-viewports. Amend 2f40be6. (merged from docking) (#3532)
ocornut2021-08-19 17:35:27 +02:00
fba756176d
Backends: SDL_Renderer: Amend 1d2d246, various tweaks, fixes, sync to latest. (#3926)
ocornut2021-09-21 19:29:39 +02:00
15fe7ba31f
ColorPicker: Fix not being able to pick exactly (1.0f, 1.0f, 1.0f) color by dragging toward the edges of the SV square. (#3517)
Rokas Kupstysandocornut2021-04-12 12:42:04 +03:00
15132217a3
Nav: Fixed an issue with losing focus on docked windows when pressing Alt while keyboard navigation is disabled. (#4547, #4439)
ocornut2021-09-21 13:16:00 +02:00
c6ca327fb2
Backends: Added more implicit asserts to detect invalid/redundant calls to Shutdown functions. (#4562)
ocornut2021-09-20 18:43:05 +02:00
ddddabdccf
InputText: amend validation test to allow pushing Activate events remotely. (#4552, #2321)
ocornut2021-09-17 16:44:14 +02:00
2cffcbdc64
InputText: fix Space key with nav enabled interfering with input text boxes (fix bd6c9e99). made it possible to activate InputText with tweak gamepad button (why not, now that we can cancel) (#4552, #2321)
ocornut2021-09-17 15:44:43 +02:00
3973de7933
Internals: removed last parameter to IsClippedEx() + fix PVS studio warnings.
ocornut2021-09-15 16:50:20 +02:00
2d0a6a4969
Misc: moved StacSizeOnBegin out of window instance into window stack data.
ocornut2021-09-15 15:36:03 +02:00
66cd21db88
Misc: extracted ErrorCheckEndWindowRecover() out of ErrorCheckEndFrameRecover(). (#1651)
ocornut2021-09-15 15:23:55 +02:00
d366694062
Disabled: Added assert guard for mismatching BeginDisabled()/EndDisabled() blocks. (#211) + Added asserts for missing PopItemFlag() calls. Added both to ErrorCheckEndFrameRecover (#1651)
ocornut2021-09-15 15:16:58 +02:00
7b8bc864e9
Menus: Fixed vertical alignments of MenuItem() calls within a menu bar. (broken by f8fae022). (#4538)
ocornut2021-09-14 11:09:39 +02:00
82754561e2
Nav: Fixed a few widgets from not setting reference keyboard/gamepad navigation ID when activated with mouse.
ocornut2021-09-13 15:17:54 +02:00
17a7084b57
Menus: Fixed crash when navigating left inside a child window inside a sub-menu. (#4510).
ocornut2021-09-10 15:37:59 +02:00
321b84f01f
Internals: refactored IsWindowHovered()/IsWindowFocused() to make their logic more similar + change underlying value of ImGuiHoveredFlags_AllowWhenBlockedByPopup + comment out docking only flags.
ocornut2021-09-08 15:05:27 +02:00
d9b427cce0
Nav: clarified/renamed NavInputId as NavAcivateInputId, added flags shared by both.
ocornut2021-09-06 19:15:20 +02:00
755bf985d2
Backends: OpenGL3: Made our custom GL loader a bit more tolerant of use of another loader in same compilation unit. (#4445, #4514)
ocornut2021-09-07 14:48:26 +02:00
607ad8c949
Drag and Drop: Fixed using BeginDragDropSource() within a Begin()/BeginChild() that returned false. (#4515) + BeginDragDropTarget()
ocornut2021-09-06 20:42:40 +02:00
bd6c9e99fc
InputText: Allow cancelling/validating input with gamepad nav events.
ocornut2021-09-06 18:45:50 +02:00
0a154b30ad
Nav, ButtonBehavior: reworked old code which ended up 1) calling SetActiveId repeately and 2) misleadingly set g.NavActivateId (amend af38749e)
ocornut2021-09-03 17:27:17 +02:00
ade4c15eea
Nav: Tidying up, renaming + update AnyRequest flag in NavMoveRequestSubmit().
ocornut2021-09-02 18:41:00 +02:00
528104a89b
Menus: adjust closing logic to accomodate for varying font size and dpi + remove seemingly redundant use of g.NavActivateId where pressed was enough.
ocornut2021-09-03 16:34:38 +02:00
5ee40c8d34
Nav: always disable highlight if nav is disabled, fix for IMGUI_DEBUG_NAV_SCORING, minor renaming.
ocornut2021-09-01 17:36:17 +02:00
dff15acdb5
Nav: Fixed toggling menu layer with Alt exiting menu layer with Esc not moving mouse when NavEnableSetMousePos config flag is set.
ocornut2021-09-01 15:51:21 +02:00
3d9d3b49ae
Internals: folded ImGuiItemAddFlags into ImGuiItemFlags. ImGuiItemAddFlags_Focusable > ImGuiItemFlags_Inputable. One step in the big nav/tab/focus rework.
ocornut2021-09-01 14:41:24 +02:00
73a5e82e04
Nav: removed parameters from NavScoreItem(), NavProcessItem(), NavApplyItemToResult(): made little sense / misleading because pulling from other current state anyway.
ocornut2021-09-01 12:39:12 +02:00
a735a8c084
Nav: storing NavRect in LastItemData. Fix race condition where framed items (Rect != NavRect) calling SetFocusID() would store the wrong NavRectRel until next frame
ocornut2021-09-01 12:07:17 +02:00
7b913db1ce
Nav: split NavMoveRequest into NavMoveSubmitted + NavMoveScoringItems to allow operation to defer a move request and provide result immediately + fix regular scoring needlesly running during init + some renaming.
ocornut2021-08-31 17:44:58 +02:00
bb6a60b1ff
Nav: extracted sections of NavUpdate() into a NavUpdateCreateMoveRequest() function. Only clearing results when a request is activated.
ocornut2021-08-27 20:57:21 +02:00
ccfb20095e
Nav: small refactor of forwarding, clarified that MoveDir only set when RequestActive, removed one indent level in NavUpdatePageUpPageDown().
ocornut2021-08-27 20:48:01 +02:00
4351febe9f
Nav: moved enums/struct declarations in imgui_internal.h
ocornut2021-08-27 18:01:01 +02:00
20a1edef89
Nav: made EndMenuBar() use NavMoveRequestForward() for consistency. Moved forward clearing to NavMoveRequestApplyResult(). Improved/fixed comments.
ocornut2021-08-27 16:21:28 +02:00
84890a3074
Nav: simplify wrap requests code (may soon be useable for tabbing)
ocornut2021-08-27 12:31:11 +02:00
4c31c98d22
Nav: extracted code out of NavUpdate() into NavUpdateCancelRequest()
ocornut2021-08-27 12:26:42 +02:00
80ed4eba87
Backends: Vulkan: non-dispatchable handles should compare to VK_NULL_HANDLE, not NULL (#4475)
CortandGitHub2021-08-24 12:53:54 -07:00
780c1ee265
TextUnformatted: Accept null ranges including (NULL,NULL) without asserting. (#3615)
ocornut2021-08-24 19:30:02 +02:00
2b0bd40b99
Backends: Metal: Fixed a crash when clipping rect larger than framebuffer is submitted. (#4464)
Rokas Kupstysandocornut2021-08-24 18:03:52 +03:00
0608887fb5
InputTextMultiline: Fixed label size not being included into window contents rect unless the whole widget is clipped.
ocornut2021-08-23 17:07:46 +02:00
68f428b449
imgui_freetype: Fixed crash when FT_Render_Glyph() returns NULL (which apparently happens with Freetype 2.11). (#4394, #4145 ?)
ocornut2021-08-23 16:42:58 +02:00
e3e1fbcf02
Backends: OpenGL3: OpenGL: Fixed ES 3.0 shader ("#version 300 es") to use normal precision floats. (#4463)
Nicolas Nobleandocornut2021-08-23 15:03:22 +02:00
459de65477
Backends: OpenGL3: Embed our own minimal GL loader based on gl3w and use it in SDL/GLFW examples. (#4445)
Rokas Kupstysandocornut2021-08-19 12:42:15 +03:00