Commit Graph

  • a3ebd160cb Fix unused variable warning in ImGui::EndListBox() (#3897) C.EvenandGitHub 2021-03-11 17:04:50 +08:00
  • 6ba1334903 Nav: internals: renaming ImGuiInputSource so it is not specific to nav. Comments. ocornut 2021-03-10 16:27:19 +01:00
  • 01a2bac7d5 DrawList: Replace "bool close" in drawing functions with flags. Rokas Kupstysandocornut 2021-03-09 10:28:14 +02:00
  • a64e0eb3a4 Nav: merged SetNavID() and SetNavIDWithRectRel() to improve sanity, moved flags overwrite off them. (#787) ocornut 2021-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). ocornut 2021-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) ocornut 2021-03-08 17:14:05 +01:00
  • 954b06afe2 Drag and Drop: can use BeginDragDropSource() for other than the left mouse button (#1637, #3885) ocornut 2021-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. ocornut 2021-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 Kupstysandocornut 2020-11-19 18:01:01 +02:00
  • fdebb2e093 Internals: removed HoveredRootWindow, tweak IsWindowHovered(). ocornut 2021-03-05 15:56:59 +01:00
  • f5bc5e8630 Freetype: Enable FreeType bitmap glyphs. (#3879) TAiGAandocornut 2021-03-05 11:16:30 +08:00
  • ee643b2ad9 IsItemHovered(): fixed return value false positive when used after EndChild(), EndGroup() or widgets using either... (#3851, #1370) ocornut 2021-03-04 19:59:59 +01:00
  • b53b8f58df Demo: Use correct string formats on non-windows platforms. Rokas Kupstysandocornut 2021-03-04 16:27:43 +02:00
  • 3e6dfd3c1a ImDrawList: AddImageRounded() compare texid from cmdheader as with other functions. + Made the ImGuiMemAllocFunc / ImGuiMemFreeFunc consistent with our other typedefs (#3836) ocornut 2021-03-04 13:37:14 +01:00
  • 8dd692c29c Android: Amend backend and examples with minor consistency tweaks. (#3446) ocornut 2021-03-04 11:03:40 +01:00
  • fb85c0341b Add Android backend and example (#3446) duddelandGitHub 2021-03-04 10:35:44 +01:00
  • d8c88bd943 Tables: Fixed unaligned accesses when using TableSetBgColor(ImGuiTableBgTarget_CellBg). (#3872) ocornut 2021-03-04 09:52:00 +01:00
  • 1ddaff83d8 Demo: Tweak inputs display. ocornut 2021-03-03 18:45:52 +01:00
  • 662535f357 Backends: DX9: Fix handling of colored textures (#3844, #3868) ocornut 2021-03-03 18:34:07 +01:00
  • 25679a411e Window, Nav: Fixed crash when calling SetWindowFocus(NULL) as the time a new window appears. (#3865) ocornut 2021-03-02 18:22:01 +01:00
  • 4537d98d46 Backends: DX9: Fix to support colored glyphs, using newly introduced 'TexPixelsUseColors' info. (#3369, #3844) ocornut 2021-03-02 15:03:16 +01:00
  • eb57484935 Backends: DX9: add missing IMGUI_USE_BGRA_PACKED_COLOR support. Remove dinput.h headers. (#3844) Xiliushaandocornut 2021-02-26 10:40:22 +08:00
  • 23ab4978e4 ImFontAtlas: Added 'bool TexPixelsUseColors' output to help backend decide of underlying texture format. (#3369, #3844) ocornut 2021-03-02 14:08:36 +01:00
  • cdf1926f21 Fix a typo in the demo text (#3840) chirszandGitHub 2021-02-25 20:33:47 +08:00
  • 5aaab7424f Update FAQ.md omarandGitHub 2021-02-25 13:10:02 +01:00
  • 760c394707 Added links to Discussions. Closed Discord, yeah! (#2748) ocornut 2021-02-25 00:40:23 +01:00
  • 3776ba565f Internals: TabBar: minor tweaks and renaming. ocornut 2021-02-24 16:05:47 +01:00
  • 6f4b9c65ae Added commentary about DLL boundaries. Added GetAllocatorFunctions(). Tidying up. (#3836) ocornut 2021-02-24 19:34:42 +01:00
  • 3f5bb5939a Examples: Fix MinGW detection in makefiles. Fix example_null build due to missing IME input libs. (#2590) Rokas Kupstysandocornut 2021-02-24 10:26:13 +02:00
  • 9b32f7bf2d Fix example_null Makefile for Mingw (#2590) ocornut 2021-02-22 14:44:06 +01:00
  • edf135c18d Win32+MinGW: Re-enabled IME functions by default even under MinGW. (#2590, #738) ocornut 2021-02-22 14:39:44 +01:00
  • ece854564a Log/Capture: Added LogTextV, a va_list variant of LogText. (#3828) David MaasandGitHub 2021-02-22 04:58:51 -06: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) ocornut 2021-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] ocornut 2021-02-18 16:12:41 +01:00
  • c154629152 Backends: Win32: Added ImGui_ImplWin32_EnableAlphaCompositing() helper. (#2766, #3447) ocornut 2021-02-18 15:51:07 +01:00
  • 6a161b8789 Examples: Reworked setup of clear color to be compatible with transparent values. (#2693, #2764, #2766, #2873, #3447, #3813, #3816) ocornut 2021-02-17 19:29:39 +01:00
  • bda12e5fdd Backends: Rework blending equation to preserve alpha in output buffer accross all backends. (#2693, #2764, #2766, #2873, #3447, #3813, #3816) ocornut 2021-02-17 19:29:07 +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. ocornut 2021-02-17 19:41:02 +01:00
  • fb15d8c858 Improve on automatic circle segment count calculation. (#3808) Amends ocornut 2021-02-17 13:06:26 +01:00
  • f107693d9b Improve on automatic circle segment count calculation. (#3808) thedmdandocornut 2021-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. ocornut 2021-02-16 16:53:56 +01:00
  • 9576dfd5e7 CI: Use workflow_run to trigger scheduled builds and static analysis. Rokas Kupstysandocornut 2021-02-16 10:33:29 +02:00
  • 30b7545841 Version 1.82 WIP ocornut 2021-02-15 18:10:14 +01:00
  • 61b19489f1 Made a change to CalcWindowSizeAfterConstraint() which MSVC optimizer seems to trip on. (read on) ocornut 2021-02-12 16:34:22 +01:00
  • 4df57136e9 Version 1.81 ocornut 2021-02-10 18:47:46 +01:00
  • 647a308ad3 Backends: GLFW: Add ImGui_ImplGlfw_InitForOther() instead of ImGui_ImplGlfw_InitForWebGPU() so it can be used for e.g. DX11. (#3632) ocornut 2021-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) ocornut 2021-02-10 14:54:59 +01:00
  • 3b4d3a9b73 Simplify CI scripts (#3764) Oleh Prypinandocornut 2021-01-27 00:45:13 +01:00
  • 56f7bdae99 ImDrawList: Clarified PathArcTo() need for a_min <= a_max with an assert. Fixed PathArcToFast() handling of a_min > a_max. ocornut 2021-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) ocornut 2021-02-08 14:03:24 +01:00
  • b898281e3c Demo: Added 'Examples->Fullscreen Window' demo. (#3789) + repack and zero-clear ImDrawData. ocornut 2021-02-05 12:24:23 +01:00
  • 58a0a7058c Backends: Using SetTexID() consistently instead of assigning to ->TexID. May make the later obsolete eventually. ocornut 2021-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 Fierzandocornut 2021-01-30 20:25:20 +01:00
  • 03d74a293d ListBox: renamed ListBoxHeader>BeginListBox, ListBoxFooter>EndListBox. Added demo bits. ocornut 2021-02-03 16:30:23 +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. ocornut 2021-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. ocornut 2021-02-03 14:16:08 +01:00
  • 90a518c501 Fixed typos (#3782) freddiiandocornut 2021-02-03 02:50:57 +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) ocornut 2021-02-02 16:02:46 +01:00
  • a3f0393351 Menus: Fixed an issue with child-menu auto-sizing (issue introduced by 6af92b0) (#3779) ocornut 2021-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. ocornut 2021-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 Schnellbachandocornut 2021-01-15 11:05:25 +01:00
  • 9d576a96a5 Tables: added internal TableSetColumnEnabled() helper. Comments. ocornut 2021-02-01 17:35:29 +01:00
  • 4dec436161 SliderInt: Fixed click/drag when v_min==v_max from setting the value to zero. (#3774) Erwin Coumansandocornut 2021-01-31 10:26:50 -08:00
  • 24be26e00e imgui_freetype: Add support for colored glyphs. Font: add support for untinted glyphs (#3369) ocornut 2021-01-28 17:26:41 +01:00
  • 24aa6654df imgui_freetype: add support for colored glyphs with ImGuiFreeTypeBuilderFlags_LoadColor (#3369) Petr Shurgalinandocornut 2021-01-28 16:57:37 +01:00
  • 4622fa4b66 Fonts: Fixed CalcTextSize() width rounding so it behaves more like a ceil. (#3776) ocornut 2021-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) ocornut 2021-01-28 20:52:26 +01:00
  • dff0044d4e Backends, Examples: Added support for WebGPU and corresponding example. Amend 5853fbd (#3632) ocornut 2021-01-28 12:11:26 +01:00
  • 5853fbd68b Backends, Examples: Added support for WebGPU and corresponding example (#3632) Basil Fierzandocornut 2021-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) ocornut 2021-01-27 13:23:28 +01:00
  • 6001c54598 Backends: Vulkan: Support for custom function/symbol loader (#3759, #3227) Hossein Noroozpourandocornut 2021-01-26 21:04:12 +03:30
  • 066406b9be Backends: OSX: Fix mouse position not being reported when mouse buttons other than left one are down. (#3762) Rokas Kupstysandocornut 2021-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. ocornut 2021-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. ocornut 2021-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 Schnellbachandocornut 2021-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) ocornut 2021-01-26 16:07:41 +01:00
  • a8d2d8ee97 Fixed uninitialized variable, amend f3f2578. (#3753) ocornut 2021-01-26 15:26:41 +01:00
  • f3f2578e8f Internals: Added context hook removal support (#3580, #3626, #3753) Sammy Fatnassiandocornut 2021-01-26 15:14:56 +01:00
  • f139846750 Backends: Win32: dynamically load XInput library (amends) (#3646, #3645, #3248, #2716) ocornut 2021-01-25 16:19:43 +01:00
  • 633d1033af Backends: Win32: dynamically load XInput library (#3646, #3645, #3248, #2716) Kuanlanandocornut 2021-01-23 13:23:59 +08:00
  • 2ed47e5822 Version 1.81 WIP ocornut 2021-01-25 16:30:37 +01:00
  • 695a4bd1a9 Backends: Metal: Fixed texture storage mode when building on Mac Catalyst. (#3748) Belinsky-L-Vandocornut 2021-01-22 17:04:54 +01:00
  • f144c67676 ImDrawList: fixed AddCircle, AddCircleFilled buffer read overflow with (rad > 0.0f && rad < 1.0f && num_segments == 0). (#3738) ocornut 2021-01-25 14:58:52 +01:00
  • 58075c4414 Version 1.80 ocornut 2021-01-21 16:59:34 +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) ocornut 2021-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. ocornut 2021-01-20 20:53:22 +01:00
  • 6737037743 Tab Bar: fix 0ea4408 (#3414) ocornut 2021-01-20 19:35:10 +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) ocornut 2021-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) ocornut 2021-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). ocornut 2021-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] thedmdandocornut 2021-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. ocornut 2021-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) ocornut 2021-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) ocornut 2021-01-14 15:48:28 +01:00
  • 6470681d87 Use GitHub URL for Tracy Profiler. (#3721) Bartosz TaudulandGitHub 2021-01-15 22:39:27 +01:00
  • 4d419d1211 Tables: fixed ColumnsAutoFitWidth for resizable fixed columns reporting ideal width. ocornut 2021-01-15 17:48:15 +01:00
  • 3e712631da Tables: more moving of code in EndTable(), should have no side-effect. ocornut 2021-01-15 14:03:15 +01:00
  • 626e3e2b3b Tables: fix reported inner-width for scrolling tables off by a small padding amount + moved code. ocornut 2021-01-15 12:11:34 +01:00
  • 3edfc042ff Tables: Internals: Renaming, tweaks preparing ahead for trickier changes (should be all no-op). ocornut 2021-01-15 10:36:20 +01:00
  • 9e281c12a8 Tables: Fixed very small tables edge cases: inverted clip rect with freezing + scroll, missing borders. ocornut 2021-01-14 17:41:00 +01:00