6ba1334903
Nav: internals: renaming ImGuiInputSource so it is not specific to nav. Comments.
ocornut2021-03-10 16:27:19 +01:00
01a2bac7d5
DrawList: Replace "bool close" in drawing functions with flags.
Rokas Kupstysandocornut2021-03-09 10:28:14 +02:00
a64e0eb3a4
Nav: merged SetNavID() and SetNavIDWithRectRel() to improve sanity, moved flags overwrite off them. (#787)
ocornut2021-03-08 18:52:42 +01:00
1c9cc7c117
Nav: tweaks so docking can use same code. NavRestoreLayer restore nav id but Menu key typicallys clears it for menu layer (+ less relying on _ChildWindow flag).
ocornut2021-03-09 16:07:08 +01:00
4bb5a36f90
Nav: do not clear per-window NavId when window reappears. Process NavInit regardless of current highllight state. Consistently set g.NavLayer in SetNavID(). (#787)
ocornut2021-03-08 17:14:05 +01:00
954b06afe2
Drag and Drop: can use BeginDragDropSource() for other than the left mouse button (#1637, #3885)
ocornut2021-03-08 15:44:56 +01:00
e842b196df
Amend sanitization of format strings. Support ' without stb_printf. Simpler loops, will also be used for ImStrv branch. (8ee77f1) (#3604) Widgets: Sliders: Fix a bug where numbers after format specifier (eg. %d123) would cause RoundScalarWithFormatT() return incorrect value.
ocornut2021-03-05 18:26:30 +01:00
8ee77f1b65
Widgets: Sliders: Skip custom stb_sprintf.h format flags (', #, _) in RoundScalarWithFormatT() as they break ImAtof()/ImAtoi() and cause Drag*()/Slider*() widgets display incorrect values. (#3604) Widgets: Sliders: Fix a bug where numbers after format specifier (eg. %d123) would cause RoundScalarWithFormatT() return incorrect value.
Rokas Kupstysandocornut2020-11-19 18:01:01 +02:00
ee643b2ad9
IsItemHovered(): fixed return value false positive when used after EndChild(), EndGroup() or widgets using either... (#3851, #1370)
ocornut2021-03-04 19:59:59 +01:00
3e6dfd3c1a
ImDrawList: AddImageRounded() compare texid from cmdheader as with other functions. + Made the ImGuiMemAllocFunc / ImGuiMemFreeFunc consistent with our other typedefs (#3836)
ocornut2021-03-04 13:37:14 +01:00
8dd692c29c
Android: Amend backend and examples with minor consistency tweaks. (#3446)
ocornut2021-03-04 11:03:40 +01:00
3f5bb5939a
Examples: Fix MinGW detection in makefiles. Fix example_null build due to missing IME input libs. (#2590)
Rokas Kupstysandocornut2021-02-24 10:26:13 +02:00
9b32f7bf2d
Fix example_null Makefile for Mingw (#2590)
ocornut2021-02-22 14:44:06 +01:00
edf135c18d
Win32+MinGW: Re-enabled IME functions by default even under MinGW. (#2590, #738)
ocornut2021-02-22 14:39:44 +01:00
a8f76c23a4
Window: Shrink close button hit-testing region when it covers an abnormally high portion of the window visible area (e.g. when window is collapsed and moved in a corner)to facilitate moving the window away. (#3825)
ocornut2021-02-18 17:21:12 +01:00
0ecdf8167c
DragScalar: Fixed crash when using DragScalar() directly with ImGuiSliderFlags_AlwaysClamp + only one of either p_min or p_max set. (#3824) [@harry75369]
ocornut2021-02-18 16:12:41 +01:00
27a5bdb916
Backends: Win32: Fixed ImGui_ImplWin32_EnableDpiAwareness() attempting to get SetProcessDpiAwareness from shcore.dll on Windows 8 whereas it is only supported on Windows 8.1.
ocornut2021-02-17 19:41:02 +01:00
fb15d8c858
Improve on automatic circle segment count calculation. (#3808) Amends
ocornut2021-02-17 13:06:26 +01:00
f107693d9b
Improve on automatic circle segment count calculation. (#3808)
thedmdandocornut2021-02-17 12:55:25 +01:00
b47aa46d81
Tables: TableSetupColumn() user id uses ImGuiID as intended (typedef ImU32). internals: added GetCurrentTable(), LeftMostEnabledColumn. Demo/docs tweaks.
ocornut2021-02-16 16:53:56 +01:00
9576dfd5e7
CI: Use workflow_run to trigger scheduled builds and static analysis.
Rokas Kupstysandocornut2021-02-16 10:33:29 +02:00
647a308ad3
Backends: GLFW: Add ImGui_ImplGlfw_InitForOther() instead of ImGui_ImplGlfw_InitForWebGPU() so it can be used for e.g. DX11. (#3632)
ocornut2021-02-10 17:27:33 +01:00
f14042ca78
Viewports Added ImGui::GetMainViewport() as a way to get the bounds and work area of the host display. (#3789, #1542)
ocornut2021-02-10 14:54:59 +01:00
56f7bdae99
ImDrawList: Clarified PathArcTo() need for a_min <= a_max with an assert. Fixed PathArcToFast() handling of a_min > a_max.
ocornut2021-02-08 16:37:51 +01:00
03038df1cc
ImDrawList: fix divide by zero (for which result was unused but triggering on some archs/setup) added by f144c67676 (#3738)
ocornut2021-02-08 14:03:24 +01:00
58a0a7058c
Backends: Using SetTexID() consistently instead of assigning to ->TexID. May make the later obsolete eventually.
ocornut2021-02-03 18:30:26 +01:00
82a9b599ab
Backend: webgpu: Fixes blending issue on Chrome 90+ and makes backend forward compatible with Emscripten 2.0.14 (#3632, #3770)
Basil Fierzandocornut2021-01-30 20:25:20 +01:00
6f6d4e0b70
ListBoxHeader: In version taking height in number of items, made vertical padding consistent regardless of if (items_count <= height_in_items) or not.
ocornut2021-02-03 14:55:17 +01:00
e5cbf60def
ListBox: tweaked default height calculation. simplifying code internally (rework passing of full rect). Should have no visible side-effects + misc comments.
ocornut2021-02-03 14:16:08 +01:00
d1a9efdd8f
InputText: Fixed slightly off ScrollX tracking, noticeable with large values of FramePadding.x. Multiline: Fixed padding/cliprect not matching single-line version. (#3781)
ocornut2021-02-02 16:02:46 +01:00
a3f0393351
Menus: Fixed an issue with child-menu auto-sizing (issue introduced by 6af92b0) (#3779)
ocornut2021-02-02 13:06:51 +01:00
929563c3a7
Log/Capture: Fixes for handling \n in strings. Improve the look of various widgets. Added LogSetNextTextDecoration helper. Fixup/amend dbaf74d75.
ocornut2021-02-02 09:42:23 +01:00
dbaf74d758
Log/Capture: Fix various new line/spacing issue by using same render text position when there are both RenderText and LogRenderedText call in widget code. Also Buttons are now enclosed in bracket
Louis Schnellbachandocornut2021-01-15 11:05:25 +01:00
4dec436161
SliderInt: Fixed click/drag when v_min==v_max from setting the value to zero. (#3774)
Erwin Coumansandocornut2021-01-31 10:26:50 -08:00
24be26e00e
imgui_freetype: Add support for colored glyphs. Font: add support for untinted glyphs (#3369)
ocornut2021-01-28 17:26:41 +01:00
24aa6654df
imgui_freetype: add support for colored glyphs with ImGuiFreeTypeBuilderFlags_LoadColor (#3369)
Petr Shurgalinandocornut2021-01-28 16:57:37 +01:00
4622fa4b66
Fonts: Fixed CalcTextSize() width rounding so it behaves more like a ceil. (#3776)
ocornut2021-02-01 12:48:33 +01:00
9499afdf5e
imgui_freetype: clarify breaking changes, and add BuildFontAtlas() to be consistent with planned obsolescence. Rename mislabelled internal helper. Demo: clarify labels in nested table demo. (#3765)
ocornut2021-01-28 20:52:26 +01:00
dff0044d4e
Backends, Examples: Added support for WebGPU and corresponding example. Amend 5853fbd (#3632)
ocornut2021-01-28 12:11:26 +01:00
5853fbd68b
Backends, Examples: Added support for WebGPU and corresponding example (#3632)
Basil Fierzandocornut2021-01-28 11:37:34 +01:00
6487860aae
Backends: Vulkan: Rework support for custom function/symbol loader (#3759, #3227), add ImGui_ImplVulkan_LoadFunctions (amend 6001c54)
ocornut2021-01-27 13:23:28 +01:00
066406b9be
Backends: OSX: Fix mouse position not being reported when mouse buttons other than left one are down. (#3762)
Rokas Kupstysandocornut2021-01-27 13:24:52 +02:00
e28b51786e
Tables: Fixed PopItemWidth() or multi-components items not restoring per-colum ItemWidth correctly. (#3760) rework local stacks to facilitate modifying current value without altering the stack.
ocornut2021-01-27 12:18:48 +01:00
3867c6c5f0
Fonts: (Breaking) Rename ImGuiFreeType:: flags to ImGuiFreeTypeBuilderFlags_XXX. Remove ImGuiFreeType::BuildFontAtlas() flags. Rename ImFontConfig::RasterizerFlags to FontBuilderFlags. Add ImFontBuilderIO (opaque). Amend 53d59f3 with a dozen of small fixes.
ocornut2021-01-25 17:57:12 +01:00
9417acc20f
Fonts: if IMGUI_ENABLE_FREETYPE, use library by default for font rasterization Also renamed IMGUI_DISABLE_STB_TRUETYPE to IMGUI_ENABLE_STB_TRUETYPE
Louis Schnellbachandocornut2021-01-12 09:24:51 +01:00
6b32d0ebc7
Fixed minor title bar text clipping issue when FramePadding is small/zero and there are no close button in the window. (#3731)
ocornut2021-01-26 16:07:41 +01:00
5178c3ce21
Tables: added ImGuiTableFlags_NoHostExtendX instead of using outer_size.x == 0.0f. Changed default outer_size to (0.0f, 0.0f). (#3605)
ocornut2021-01-21 16:20:31 +01:00
3b409d2b68
BeginChild: half-fixed child window name longer than 255 conflicting, merely raised the limit by using our shared large buffer. Comments.
ocornut2021-01-20 20:53:22 +01:00
74b3b7cf58
Added experimental io.ConfigDragClickToInputText feature to enable turning DragXXX widgets into text input with a simple mouse click-release (without moving). (#3737)
ocornut2021-01-20 19:16:45 +01:00
dc0f3d982c
DragFloat, DragInt: very slightly increased mouse drag threshold + expressing it as a factor of default value + disabled experimental click-to-input on DragXXX functions. (#3737)
ocornut2021-01-20 17:38:55 +01:00
ae0d2dd614
Tables: rework submission of content size and ideal content size to outer window (now using IdealMaxPos introduced in 6af92b0).
ocornut2021-01-19 23:08:12 +01:00
f379dc28a3
ImBitArray: Rename ClearBits() to ClearAllBits() and add SetAllBits(). ImBitArraySetBitRange work on range [n..n2) instead of [n..n2]
thedmdandocornut2021-01-19 20:23:06 +01:00
3fef132f62
Tables: Clear scroll value when reactivating scroll. Assert when passing width/weight to TableSetupColumn() without an explicit sizing policy at either table or column label.
ocornut2021-01-19 21:53:35 +01:00
0ea4408fd4
Tab Bar: Requested ideal content size (for auto-fit) doesn't affect horizontal scrolling. Followup to afa01d8. (#3414)
ocornut2021-01-14 15:56:23 +01:00
6af92b05bf
Internals: Layout: maintain two content sizes, optionally writing to IdealMaxPos to distinguish used from ideal size, later is used for auto-fit. Unused in this commit, should be no-op. (#3414)
ocornut2021-01-14 15:48:28 +01:00