d51e5d2898
TabItem: revert support for SetNextItemOpen(true) at it creates too much ambiguity with p_open/close button vs Selected state. (#5262)
ocornut2022-06-21 17:20:06 +02:00
c4b9101759
TabBar: Tweak shrinking policy so that while resizing tabs that don't need shrinking keep their initial width more precisely.
ocornut2022-06-21 17:11:51 +02:00
4b97296148
TabBar: TabItem() now reacts to SetNextItemWidth() and SetNextItemOpen(true). (#5262)
ocornut2022-06-21 16:20:01 +02:00
d3fd2630b7
Sliders: An initial click within the knob/grab doesn't shift its position. (#1946, #5328) + Adjust default GrabMinSize.
ocornut2022-06-20 18:06:34 +02:00
f27af1b20a
Internals: SliderBehaviorT: Minor refactor, clearer 0.0/1.0 early out. Should be no-op from user's point of view.
ocornut2022-06-20 16:44:49 +02:00
07efd7cc20
Renamed IMGUI_DISABLE_METRICS_WINDOW to IMGUI_DISABLE_DEBUG_TOOLS.
ocornut2022-06-15 15:58:26 +02:00
08572189f0
MovingWindow auto-cancelled if active id is stolen (instead of ill-defined bahavior + assert in docking).
ocornut2022-06-15 14:58:44 +02:00
27343efb0b
Nav, Focus: Changed SetKeyboardFocusHere() to not behave if a drag or window moving is in progress + move KeepAliveID() call from Scrollbar() to ScrollbarEx()
ocornut2022-06-15 14:55:45 +02:00
ddcff10343
Settings: Fixed some SetNextWindowPos/SetNextWindowSize API calls not marking settings as dirty.
ocornut2022-06-15 14:30:20 +02:00
6cac48df32
Drag, Slider: rework slightly or CTRL+Click or SetKeyboardFocusHere() will show 1 change of active id in the log (rather than a set,clear,set sequence)
ocornut2022-06-15 11:51:19 +02:00
ec2c805e48
Backends: support for unity builds for dx10/dx11/dx12 backends (#5387)
Jack KnobelandGitHub2022-06-11 20:52:27 +10:00
076d8fc868
Nav: Fixed issues with nav request being transferred to another window when calling SetKeyboardFocusHere() and simultaneous changing window focus. (#4449)
ocornut2022-06-10 19:25:53 +02:00
0b1bcfcc20
Menus: Separate menu sets by nav layer. (#3496, #4797) + Demo: Remove incorrect and useless suggestion to use PushID().
Rokas Kupstysandocornut2022-06-08 12:34:35 +03:00
a35e876978
InputText: Amends and tidying up: Fixed undo/redo state corruption when editing buffer in user callback. (#4947, #4949)
ocornut2022-06-07 17:28:31 +02:00
530332dfbc
InputText: Fixed undo/redo state corruption when editing buffer in user callback. (#4947, #4949)
Joshua Webbandocornut2022-01-27 22:02:24 +11:00
23a785aeb3
Internals: wrapped used of g.TempBuffer into ImFormatStringToTempBuffer/ImFormatStringToTempBufferV helpers.
ocornut2022-06-07 19:16:00 +02:00
64d6c30562
InputText: Fixed an undo-state corruption issue when editing buffer before reactivating item. (#4947) + Metrics: Added "InputText" section.
ocornut2022-06-07 15:24:52 +02:00
74f02703e6
Misc comments + Demo: use IsItemVisible() when using direct ImDrawList calls.
ocornut2022-06-07 11:38:43 +02:00
e23c5edd5f
Settings: Fixed out-of-bounds read when .ini file on disk is empty. (#5351)
Quantumandocornut2022-05-27 01:27:25 -04:00
697ce2d67b
InputText: Fixed a one-frame display glitch where pressing Escape to revert after a deletion would lead to small garbage being displayed for one frame. (#3008)
ocornut2022-05-25 18:39:00 +02:00
ae2fb557f3
Docs: Update templates with link to Contributing guidelines. Add numerical version number in demo. Moved. (#5337)
ocornut2022-05-23 14:29:34 +02:00
ca222d30c8
Backends: OpenGL: Partially revert 1.86 change of using glBufferSubData(): now only done on Intel GPUs. (#4468, #3381, #2981, #4825, #4832, #5127)
ocornut2022-05-23 12:44:34 +02:00
7bf07d2526
Renamed CaptureMouseFromApp() and CaptureKeyboardFromApp() to SetNextFrameWantCaptureMouse() and SetNextFrameWantCaptureKeyboard(). Added demo. (#5304, #4831, #4480, #533)
ocornut2022-05-23 11:22:46 +02:00
60bea052a9
Backends: OpenGL3: Fix state corruption on OpenGL ES 2.0 due to not preserving GL_ELEMENT_ARRAY_BUFFER_BINDING and vertex attribute states. (amends)
ocornut2022-05-13 18:04:06 +02:00
b7686a88e9
Backends: OpenGL3: Fix state corruption on OpenGL ES 2.0 due to not preserving GL_ELEMENT_ARRAY_BUFFER_BINDING and vertex attribute states.
Rokas Kupstysandocornut2021-08-30 13:59:43 +03:00
507a87354b
DrawList: Circles disappear when using a radius < 0.5f (#3491)
thedmdandocornut2022-05-13 17:20:37 +02:00
9e0517a134
DrawList: Fixed divide-by-zero or glitches with Radius/Rounding values close to zero. (#5249, #5293, #3491)
ocornut2022-05-13 17:18:06 +02:00
9779cc2fe2
Internals: shallow changes to simplify diff of upcoming commits. Should have no side-effect.
ocornut2022-05-05 17:08:20 +02:00
6d27fecce1
Debug: added DebugTextEncoding() to help diagnose between text encoding issues and font loading issues. Simplified code + extracted DebugNodeFontGlyph().
ocornut2022-05-03 14:46:19 +02:00
e66fc22057
Backends: OSX: Removed ImGui_ImplOSX_HandleEvent() from backend API. Move event tracking (desktop only) to OSX backend. (#4821)
stuartcarnieandocornut2022-04-27 16:51:01 +03:00
26f817807c
Backends: Vulkan: Don't use VK_PRESENT_MODE_MAX_ENUM_KHR as specs state it isn't part of the API. (#5254)
ocornut2022-05-03 12:51:51 +02:00
d58b8414b9
Backends: OSX, Metal: Tweaks. Use preferred method of obtaining a timestamp. (#4821)
stuartcarnieandocornut2022-04-27 16:33:14 +03:00
3e5dde9a26
Tables: Fixed incorrect auto-fit of parent windows when using non-resizable weighted columns. (#5276)
ocornut2022-05-02 16:32:17 +02:00
709bc03d6f
Backends: GLFW: fixed ImGui_ImplGlfw_TranslateUntranslatedKey() for lower case letters on OSX (#5260, #5261)
cpichardandocornut2022-04-30 08:21:04 +01:00
314c7bd12f
Internals: renamed ImGuiInputReadMode to ImGuiNavReadMode (internals) to avoid ambiguity with upcoming flags. + minor tweak
ocornut2022-04-12 15:46:27 +02:00
e54db4ee70
Backends: OSX, Metal: Store backend data in a per-context struct, allowing to use these backends with multiple contexts. (#5203, #5221, #4141)
noisewuweiandocornut2022-04-20 21:31:44 +08:00
04689979b4
Examples: Emscripten+WebGPU: Fix for latest spec rename of WGPURenderPassColorAttachment::clearColor to ::clearValue (#3632)
ocornut2022-04-22 20:38:59 +02:00
088487a3d4
Nav: Fixed nav movement in a scope with only one disabled item from focusing the disabled item. (#5189)
ocornut2022-04-13 12:34:13 +02:00
fc203c7d76
Minor fix to sastisfy PVS-Studio warning. (amend, 3nd attempt: this is a false positive from PVS studio)
ocornut2022-04-12 15:19:16 +02:00
6d15a506fa
Internals: removed GetIDNoKeepAlive() now that it is the same as GetID(). (#5181)
ocornut2022-04-12 14:49:21 +02:00
90386780e3
Misc: Fixed calling GetID("label") _before_ a widget emitting this item inside a group (such as InputInt()) from causing an assertion when closing the group. (#5181).
ocornut2022-04-12 14:44:57 +02:00
88fbc31ee0
stb_truetype: fix a division by zero (unused chain of result, but triggering debuggers). (#5139, #5075)
ocornut2022-03-29 14:23:30 +02:00
2747a8ca40
Turned ImVec2 to const ref to RenderChar(), RenderText(), ColorButton(), PushClipRect(). for consistency. Comments about polygon filling winding order.
ocornut2022-03-29 11:46:30 +02:00
0dec430707
Menus: Adjusted BeginMenu() closing logic so hovering void or non-MenuItem() in parent window always lead to menu closure.
ocornut2022-03-28 11:14:07 +02:00
3587ee492b
Viewports: store Viewport field in ImGuiWindow to facilitate using code accross branches + fix PVS warnings.
ocornut2022-03-25 12:36:52 +01:00
3c07879504
Backends: OSX: Inputs: Monitor NSKeyUp events to catch missing keyUp for key when user press Cmd + key (#5128)
thedmdandocornut2022-03-22 18:45:27 +01:00
c5f67218bf
Backends: SDL: Fix multi-viewport dragging issue with SDL on some systems. (v2 for master, using bd->MouseButtonsDown == 0) (#5012, #5082)
Rokas Kupstysandocornut2022-02-25 17:18:40 +01:00
0f14933577
Tables: Fixed incorrect border height used for logic when resizing one of several synchronized instance of a same table ID, when instances have a different height. (#3955, #3565)
ocornut2022-03-01 18:45:41 +01:00
1e18da5c38
Backends, Examples: Add comments about using WndProc handler and WantCaptureXXX flags. (#5061)
ocornut2022-02-28 20:50:58 +01:00
54fb051e52
ColorEdit: Fixed text baseline alignment after a SameLine() after a ColorEdit() with visible label.
ocornut2022-02-28 16:12:43 +01:00
fa2b318dd6
IO: Fixed input queue trickling of interleaved keys/chars events when InputText() is not active. (#4921, #4858)
ocornut2022-02-22 14:36:27 +01:00