2496b973f9
Backends: SDL2,SDL3: Accept SDL_GetPerformanceCounter() not returning a monotonically increasing value. (#6189, #6114, #3644)
Adam Kewleyandocornut2023-02-23 13:06:07 +01:00
e9743d85dd
Drag and Drop: Clear state on EndDragDropTarget() with delivery + fixed handling of overlapping targets when smaller one is submitted before and can accept the same data type. (#6183, #5817)
ocornut2023-02-21 21:22:15 +01:00
a1b8457cb5
Moved the optional "courtesy maths operators" (#define IMGUI_DEFINE_MATH_OPERATORS) implementation from imgui_internal.h in imgui.h. (#6164, #6137, #5966, #2832)
ocornut2023-02-15 19:14:22 +01:00
5d74891285
Backends: Win32: Use WM_NCMOUSEMOVE / WM_NCMOUSELEAVE to track mouse positions over non-client area (OS decorations) when app is not focused. (#6045, #6162)
ocornut2023-02-15 17:17:34 +01:00
fa0852f9e5
ColorEdit, ColorPicker: Fixed hue/saturation preservation logic from interfering with the displayed value (but not stored value) of others widgets instances. (#6155)
ocornut2023-02-14 15:20:01 +01:00
092b6825ac
Fonts: Assert that in each GlyphRanges[] pairs first is <= second.
ocornut2023-02-14 15:00:12 +01:00
f0ac68ad35
Internal: Settings: amend 0b86513 revert to use FindWindowSettingsByID().
ocornut2023-02-10 17:01:14 +01:00
082b20e46b
Internals: Settings: added ClearWindowSettings(). Extract part of CreateNewWindow() into InitOrLoadWindowSettings().
ocornut2023-02-10 15:59:01 +01:00
b2ebd03b16
Internals: Settings: moved Windows setting to their sub-section.
ocornut2023-02-10 15:51:26 +01:00
0b865136e3
Internals: Settings: Added FindWindowSettingsByName() (replacing old version by ID) FindWindowSettingsByWindow() + remove unnecessary FindOrCreateWindowSettings().
ocornut2023-02-10 15:33:33 +01:00
13fbd99491
Backends: SDL3: update to run with SDL3. Examples: Add SDL3+Gl example. Remove some version checks. (#6146)
ocornut2023-02-07 13:49:37 +01:00
d9bf80f655
Backends: SDL3: copied imgui_impl_sdl2 into imgui_impl_sdl3 and ONLY replaced strings (1/2). (#6146)
ocornut2023-02-07 13:26:24 +01:00
e816bc6723
Merge misc changes from docking branch to reduce small drift.
ocornut2023-02-07 12:24:42 +01:00
d6ea56dfd9
Tables: amend f799a29 with a better solution + fix potential overflow (#6140)
ocornut2023-02-03 22:50:43 +01:00
ea39841fcd
Examples: (Again, but better) made SDL+GL and GLFW+GL examples build with Emscripten. (#2492, #2494, #3699, #3705)
ocornut2023-02-03 22:23:23 +01:00
f43c6ea6a4
Revert most of "Examples: refactor all examples with a MainLoopStep() function..." (#2492, #3699)"
ocornut2023-02-03 20:54:44 +01:00
f799a293c8
Tables: Solved an ID conflict issue with multiple-instances of a same table. Storing instance id for convenience. (#6140)
ocornut2023-02-03 19:20:18 +01:00
265b88273e
Backends: Fixed pragma warning with old GCC.
ocornut2023-02-03 16:14:49 +01:00
d0b1aaa076
Backends: GLFW: Registering custom low-level mouse wheel handler to get more accurate scrolling impulses on Emscripten. (#4019, #6096)
ocornut2023-02-03 15:00:41 +01:00
6584de4a78
Backends: SDL: Avoid calling SDL_SetCursor() when cursor has not changed. (#6113)
ocornut2023-02-02 21:28:28 +01:00
1f1861dae6
Backends: Added support for SDL 2.0.18+ preciseX/preciseY mouse wheel data for smooth scrolling + scaling for Emscripten. (#4019, #6096)
ocornut2023-02-02 18:33:04 +01:00
ce6e6da510
Examples: Made example_sdl_opengl3 and example_glfw_opengl3 build with Emscripten. Removed dedicated examples. (#2492, #2494, #3699, #3705)
ocornut2023-02-02 18:08:17 +01:00
96ab68eee0
Examples: refactor all examples with a MainLoopStep() function, to facilitate use with Emscripten. (#2492, #3699)
ocornut2023-02-02 16:27:33 +01:00
b51919dce1
Examples: Emscripten+GLFW: revert to use a shell_minimal.html closer to vanilla one, as our fullscreen + misc tweaks to Emscripten+SDL example to match other version.
ocornut2023-02-02 15:02:18 +01:00
0370856d78
Backends: GLFW: Removed mouse-wheel value scaling for Emscripten. (#4019, #6096, #6081)
ocornut2023-02-02 14:37:15 +01:00
3617a96372
Backends, Inputs: Made horizontal scroll wheel and horizontal scroll direction consistent accross backends/os. (#4019, #6096, #1463)
ocornut2023-02-01 20:50:45 +01:00
8d29665ae1
Backends: OSX: Fixed scroll wheel scaling for devices emitting events with hasPreciseScrollingDeltas==false (e.g. non-Apple mices).
ocornut2023-02-01 19:42:22 +01:00
2efebe3315
ShowFontAtlas, Demo: optionally use style text color for tint. (#6129)
nahkhiirandocornut2023-01-31 18:05:30 +01:00
5a3f82e2f4
Examples: SDL+SDL_Renderer: Added call to SDL_RenderSetScale() to display is correct on a Retina display (albeit lower-res as our other unmodified examples). (#6121, #6065, #5931).
ocornut2023-01-31 15:49:54 +01:00
867bdbecb3
Text: fixed issue in RenderText() leading to IM_ASSERT_PARANOID() triggering if enabled. (#6132, #5720, #5919)
ocornut2023-01-31 14:39:45 +01:00
f142887088
Combo: Allow SetNextWindowSize() to alter combo popup size. (#6130)
ocornut2023-01-31 11:23:24 +01:00
259560aa26
Demo: moved sections around in prevision for adding nicer separators.
ocornut2023-01-27 19:01:30 +01:00
27f2dd56d6
Internals: move "%s" skip-formatting logic to ImFormatStringToTempBuffer() function, meaning Text() and all the *V() functions can also benefit from it. (#3466)
ocornut2023-01-27 15:24:23 +01:00
fc50532213
InputText: On OSX, inhibit usage of Alt key to toggle menu when active (used for work skip).
ocornut2023-01-25 21:44:25 +01:00
5741cbae45
Internals: ImFileOpen: fixed misleading use of ImWchar (would allocate more when ImWchar=ImWchar32) + update version for previous changes namely tab bar ones.
ocornut2023-01-25 20:04:19 +01:00
f4ef420c01
InputText: Added support for Ctrl+Delete to delete up to end of word. (#6067)
AJ Weeksandocornut2023-01-10 16:20:20 +01:00
07490618ae
Misc: Tolerate zero delta-time under Emscripten. (#6114, #3644)
ocornut2023-01-25 14:13:12 +01:00
fe0a24f38a
Examples: Win32: Fixed examples using RegisterClassW() since 1.89 to also call DefWindowProcW(). (#5725, #5961, #5975)
Mark Reidandocornut2022-12-06 13:33:53 -08:00
739a79b1e9
ImDrawList: Added missing early-out in AddPolyline() and AddConvexPolyFilled() when color alpha is zero. Window: Avoid rendering shapes for hidden resize grips.
ocornut2023-01-24 17:30:22 +01:00
f6db9e2f39
Menus: Fixed layout of MenuItem()/BeginMenu() when label contains a '\n'. (#6116)
ocornut2023-01-24 16:11:38 +01:00
e8421de23c
imgui_single_file: include imgui_freetype.cpp if the define is set.
ocornut2023-01-24 16:04:55 +01:00
91667430a8
Tables: increase table columns limit from 64 to 512 using bit array allocated in contiguous memory +. (#6094, #5305, #4876, #3572)
ocornut2023-01-20 22:25:45 +01:00
14908cba8f
Internals: ImBitArray, ImBitVector: using macro helper for common op + disable stack checks on MSVC agressive debug builds.
ocornut2023-01-20 22:23:32 +01:00
db55422870
Tables: removed hot RequestOutputMaskByIndex bit-array as majority of code-paths are already touching the cold parts.
ocornut2023-01-20 17:55:50 +01:00
e06bbe05e1
Revert most/part of "Shortcut: added Shortcut() function and ImGuiInputFlags in public API + Demo." (#456, #2637)
ocornut2023-01-05 15:21:48 +01:00
83429abf4a
Internals: simplify ButtonBehavior(), also to allow easily adding a mouse_button_down thing.
ocornut2023-01-05 12:01:16 +01:00
57a5b73a4c
InputText: fixed cursor navigation when pressing Up Arrow on the last character of a multiline buffer which doesn't end with a carriage return. (#6000)
ocornut2023-01-04 17:58:07 +01:00
1f6e62a4ae
Backends: GLFW: Fixed mods state on Linux with Alt-GR text input (e.g. German keyboard layout), (#6034)
ocornut2023-01-04 15:42:20 +01:00
9150c23c04
imgui_freetype: fixed a packing issue which in some occurrences would prevent large amount of glyphs from being packed correctly. (#5788, #5829)
ocornut2023-01-04 15:17:21 +01:00
9c1dac3ff0
Examples: DirectX10, DirectX11: try WARP software driver if hardware driver is not available. (#5924, #5562)
ocornut2023-01-04 12:14:53 +01:00
4b39c1f654
Docs: adding Tests badge + more references to Test Engine.
ocornut2023-01-03 20:26:26 +01:00
156e0a8070
Demo: amend Selectable() + BeginPopupContextItem() demo to maintain and update selection state when popup is open. (#6032)
ocornut2023-01-02 18:01:57 +01:00
e5d51866c6
Backends; Vulkan: do not set VkDescriptorSetLayoutBinding::pImmutableSamplers, allow changing sampler. (#6001, #5502, #914)
Martin Ejdestigandocornut2022-12-16 16:48:36 +01:00
e57871bb95
imstb_truetype: Add missing return keyword in error case of stbtt__cid_get_glyph_subrs (#6007)
Neil Bickfordandocornut2022-12-19 09:13:29 -08:00
f1ddf63027
ScrollToRectEx: Fix bug where scrolling horizontally to an always-centered element that is not visible but could be would take the item's Y coordinate into account.
Neil Bickfordandocornut2022-12-19 09:11:33 -08:00
59b63defe5
Misc shallow merge/sync from docking designed to faciliate cross-merging between docking and string_view.
ocornut2022-12-08 20:25:25 +01:00
317b33d647
Tables: fixed matching width of synchronized tables when only some (not all) instances have a vertical scrollbar. (#5920)
ocornut2022-12-08 19:53:57 +01:00
0949acb6e6
Shortcut: added Shortcut() function and ImGuiInputFlags in public API + Demo. (#456, #2637)
ocornut2022-12-08 18:15:00 +01:00
1dae7df26f
Misc: added GetItemID() in public API.
ocornut2022-12-08 18:26:25 +01:00
48215231f9
Demo: moved WantCapture overrides items + various comments related to ImGuiKey, ImGuiMod
ocornut2022-12-08 16:47:53 +01:00
9d08506dce
Tables, Nav: frozen columns are not part of menu layer and can be crossed over. (#5143, #3692)
ocornut2022-12-06 22:11:51 +01:00