Commit Graph

  • cf994317e4
    Merge 93d05ee4f9a565bfff86b3e44e4b765c09a5f76d into 6aa6626f29227dd4b998c458cee52e41ba7fdf83 Micon Frink ~ Lemur 2026-10-12 17:36:36 +00:00
  • 93d05ee4f9 Adding slider thickness (rebased 2026/10/12) (3599) ocornut 2026-10-12 19:36:20 +02:00
  • 5639db380c Adding slider contrast (rebased 2026/10/12) (3599) -> doesn't look good under grab? Micon Frink 2020-11-17 10:19:03 +00:00
  • 6aa6626f29 DrawList: improved handling of very small circles. Mikko Mononen 2026-10-07 20:48:27 +02:00
  • dc09bbee1e Examples: GLFW/SDL2/SDL3+WebGPU: better select surface format instead of using surface_capabilities.formats[0]. (#9576) Yan Pujante 2026-10-12 13:11:36 +02:00
  • 906c6838ad Debug: fixed DebugNodeTexture()->FormatTextureRefForDebugDisplay() truncating displayed value to 32-bits. (#9578) ocornut 2026-10-12 12:56:19 +02:00
  • b0438d27a4 add guard against div-by-0 when processing SDL pinch events brentfpage 2026-10-11 10:33:14 -07:00
  • 8c8802ed31 fix whitespace brentfpage 2026-10-11 10:31:29 -07:00
  • 7d41093d4f Fix integer overflow in size calculations pikachu364 2026-10-11 17:18:07 +09:00
  • 00d89d33dd imgui_dwrite: some stylistic improvements Leonard Hecker 2026-09-10 14:30:04 +02:00
  • 371b894c31 imgui_dwrite: add a DirectWrite font loader Leonard Hecker 2026-09-10 01:43:37 +02:00
  • 8d9e73f1a1
    Widgets: Sliders & Drags display the value in a tooltip on touchscreens. Pascal Thomet 2026-10-08 14:47:02 +02:00
  • 778992face Backends: Metal, Metal4: fixed build for multi-viewports. Amend 5cf9cef. (#9574) ocornut 2026-10-07 20:36:32 +02:00
  • 5cf9cefbe3 Backends: Metal, Metal4: fixed build for multi-viewports. Amend f502f9c. (#9574) ocornut 2026-10-07 20:08:13 +02:00
  • 2859f6723c Docs: fixed various comments. ocornut 2026-10-07 19:50:23 +02:00
  • bfc66a64e8 Demo: added variety of usage scenarios, hooking Alt, Mouse Wheel, Home, CTRL+Tab demos. features/demo_input_owner_and_routing ocornut 2022-09-20 19:50:12 +02:00
  • 7a9aa3b81e Demo: added SetKeyOwner(), ImGuiInputFlags_LockThisFrame, ImGuiInputFlags_LockUntilRelease demo. ocornut 2022-09-20 19:48:54 +02:00
  • b35bca825b
    Merge 4c93eaa5549b5533b83e98a31e878d659fda841b into 0cb6f6501cc1dd7e20679f4a133092da0396529e TaiseiHamaya 2026-10-07 19:15:31 +02:00
  • 0cb6f6501c Merge branch 'master' into docking ocornut 2026-10-07 19:11:40 +02:00
  • b2ade5f3ad DrawList: AddRectFilled: add support for ImDrawFlags_StrokeLegacy to handle inverted coordinates + non-AA path. ocornut 2026-10-06 18:02:37 +02:00
  • 75ac1ab2c3 DrawList: AddCircle: fixed issue not clearing path in unlikely case where Path.Size<3. ocornut 2026-10-06 20:36:23 +02:00
  • cbf4f05419 DrawList: added io.ConfigDebugDrawListDefaultsToStrokeLegacy. (#9504) ocornut 2026-10-02 13:04:33 +02:00
  • 9e5e0bf9b2 DrawList: added explanation for IM_POLYLINE_CONVEX_POLY_MAX_BEVELS. Mikko Mononen 2026-08-06 19:52:54 +03:00
  • d23a638613 Demo: Custom Rendering: added zig-zag concave shape, tweak color, tidy up section. ocornut 2026-08-06 15:58:15 +02:00
  • f84d77c424 DrawList: changed _GetStrokePos() to a macro. ocornut 2026-08-06 18:09:43 +02:00
  • cb66fcdaac DrawList: rename ImDrawFlags_MiterOnly->ImDrawFlags_JoinMiter, ImDrawFlags_SquareCap->ImDrawFlags_CapSquare. ocornut 2026-08-05 23:05:42 +02:00
  • 7bccc3bc1e DrawList: AddCircle, AddCircleFilled: fixed large circles being under-tessellated (when above ~140 with default CircleTessellationMaxError). ocornut 2026-08-05 16:55:48 +02:00
  • 475b793baa Docs: reworked Changelog, comments. ocornut 2026-07-31 19:44:00 +02:00
  • 0e756a649d (Breaking) DrawList: renamed ImDrawFlags_RoundCornersXXX to ImDrawFlags_RoundXXX. (#9504) ocornut 2026-10-06 16:33:42 +02:00
  • c52f84c719 DrawList: rework _SelectFringeTexture() for use by third-party extensions + rename to _SelectLineTexture(). ocornut 2026-08-04 15:33:54 +02:00
  • 7415edbad1 DrawList: fixed ImFontAtlasBuildUpdateTexDataCorners() packing vs render to match. ocornut 2026-07-31 21:49:55 +02:00
  • dee0e34504 DrawList: amend PushDrawFlag() to report reaching capacity. ocornut 2026-07-31 21:47:46 +02:00
  • 451e107b3f DrawList: removed ImDrawFlags_UseTexForStrokeLegacy as it doesn't have any use now that legacy code is out of the way. ocornut 2026-07-31 21:36:28 +02:00
  • 230cd6feb0 DrawList: simplify ImFontAtlasBuildUpdateTexDataCorners() by merging fill/strokes loops. ocornut 2026-07-31 17:52:34 +02:00
  • 3dbb849acf DrawList: fixed PathArcTo to not emit small segments. Mikko Mononen 2026-07-31 16:45:01 +03:00
  • c6c352f77d DrawList: fixed too many detailed line textures being created. Mikko Mononen 2026-07-31 12:39:29 +03:00
  • 91dc4f456a DrawList: fixed rendering issues on small and degenerate shapes. Mikko Mononen 2026-07-31 11:45:41 +03:00
  • 475660f53c DrawList: fixed overdraw issue for filled baked corner rendering. Mikko Mononen 2026-07-31 11:39:16 +03:00
  • 640e931284 DrawList: fixed passing large thickness value (e.g. 1e20f) to thickness crashing the code. thedmd 2026-07-30 21:25:37 +02:00
  • a547deed9b DrawList: fixed AddRectFilled() path for minimum dimension. ocornut 2026-07-30 18:12:53 +02:00
  • 059017188d DrawList: baking half-texel in TexUvLines[] now that AddPolylineLegacy() was removed. ocornut 2026-07-30 17:56:04 +02:00
  • deb9c70ace DrawList: ImDrawFlags_AALineEnds also requires ImDrawFlags_AALine, which makes it easier for widgets to opt-in AAEnds. ocornut 2026-07-30 15:02:53 +02:00
  • 20f17eeb6f DrawList: fixed using ImDrawFlags_UseTexForRoundCorners when ImFontAtlasFlags_NoBakedRoundCorners has also been set. ocornut 2026-07-30 14:48:28 +02:00
  • a597beaf95 DrawList: fixed dropping prim flags in some paths (most for ImDrawFlags_AAXXX flags). ocornut 2026-07-30 14:37:23 +02:00
  • ba918bc45c DrawList: fixed filled rect baked AA. Mikko Mononen 2026-07-29 19:02:14 +03:00
  • 7a510274ce DrawList: Comments. Atlas's NoBakedLines automatically disable AA at Style level. Fix passing non-Legacy stroke mask to PushDrawFlag(). Demo: Custom Rendering: use LiveEdit everywhere. ocornut 2026-07-29 17:26:42 +02:00
  • ee66cfcdf3 TabBar: simpify TabItem rendering using stroke flags. ocornut 2026-07-29 16:27:29 +02:00
  • b220bffdbb Checkbox, Menus: check marks use anti-aliased ends. ocornut 2026-07-29 15:02:15 +02:00
  • eb02a7f24c DrawList: support altering RoundCorners flags in scope as an undocumented trick/hack. (#9489) ocornut 2026-07-29 14:16:21 +02:00
  • 46e4c26095 DrawList: removed AddPolylineLegacy(), AddConvexPolyFilledLegacy(). ocornut 2026-07-28 18:29:52 +02:00
  • 5181e95a46 DrawList: removed g_LEGACY_STROKES. ocornut 2026-07-28 18:27:36 +02:00
  • 67bcd9d545 DrawList: moved no-AA handling into _SelectFringeTexture(). ocornut 2026-07-28 19:01:43 +02:00
  • f511ce18f9 DrawList: tweak _SelectFringeTexture(). move more-unlikely screen_thickness tests within already-unlikely block. re-add removed asserts. ocornut 2026-07-28 18:51:22 +02:00
  • bd0f638d8b Docs: update changelog. ocornut 2026-07-28 16:16:54 +02:00
  • 2fdcf895c8 DrawList: moved _GetStrokePos() to a local inline function. ocornut 2026-07-28 16:35:56 +02:00
  • f2cd901be6 DrawList: added PushDrawFlag(), PopDrawFlag(), ImSmallStack_<>. (#9504) ocornut 2026-07-28 15:48:40 +02:00
  • 7e87cb984d DrawList: consistently support scope flags (ImDrawFlags::Flags) + primitive flags. ocornut 2026-07-28 11:24:48 +02:00
  • 008e0990b3 DrawList: comment about ImFontAtlasFlags_NoBakedLines. Demo: amend test bed to exercices more flags. ocornut 2026-07-27 21:26:10 +02:00
  • 7ccc8348bc (Breaking) Obsoleted style.AntiAliasedLinesUseTex which now only makes sense for legacy strokes. Added style.AntiAliasedLineEnds. ocornut 2026-07-27 21:41:18 +02:00
  • 02adb46a9f (Breaking) DrawList: removed ImDrawListFlags_in favor of using ImDrawFlags. ocornut 2026-06-08 12:48:52 +02:00
  • cf85b48e55 DrawList: new ImDrawFlags API (yet unused in this commit) ocornut 2026-06-05 19:09:14 +02:00
  • eb75c8056e DrawList: inverted ImDrawFlags_NoAAEnds into ImDrawFlags_AAEnds. ocornut 2026-07-27 19:57:03 +02:00
  • 9b608ba079 DrawList: fixed warnings, added macro to facilitate visualizing rounded corner texture usage. ocornut 2026-07-27 19:35:30 +02:00
  • 10aa5d92e6 DrawList: Optimize AddNgon() Mikko Mononen 2026-06-15 22:23:38 +03:00
  • 145b838818 DrawList: Optimize AddRectFilled() Mikko Mononen 2026-06-15 21:07:08 +03:00
  • c5c76dcda5 DrawList: Optimize _SelectFringeTexture() Mikko Mononen 2026-06-15 21:00:20 +03:00
  • d9378b71c5 DrawList: surround _GetStrokePos() in IM_MSVC_RUNTIME_CHECKS_OFF macro. ocornut 2026-06-05 18:37:52 +02:00
  • 230249ad58 ImFontAtlas: moved TexUv buffers and configurable defines to internals. ocornut 2026-06-05 16:40:11 +02:00
  • efb5c0e1da DrawList: Added some comments and amended existing ones Mikko Mononen 2026-06-05 09:58:47 +03:00
  • b181739cea DrawList: Revert texture selection to simple round() in _SelectFringeTexture Mikko Mononen 2026-06-05 09:19:33 +03:00
  • d24d23fb40 DrawList: No AA ends when line AA is disabled Mikko Mononen 2026-06-04 15:57:43 +03:00
  • f272141a4d DrawList: merged _AddPolyline back into AddPolyline. Mikko Mononen 2026-06-04 11:17:16 +03:00
  • 9be9c998d7 DrawList: removed vertex offset overflow (for 16-bit ImDrawIdx support) handling. Mikko Mononen 2026-06-04 11:13:40 +03:00
  • 478813c359 DrawList: restored non-AA rendering mode. Mikko Mononen 2026-06-04 10:30:04 +03:00
  • a5d8450a0f DrawList: fixed overdraw of transparent rounded rectangles Mikko Mononen 2026-06-04 10:28:18 +03:00
  • 2edac09d9f DrawList: fixed baked corners to better match polyline corners Mikko Mononen 2026-06-04 01:11:37 +03:00
  • 002e2a5f00 DrawList: added macro to have consistent check for rounding Mikko Mononen 2026-06-04 00:57:20 +03:00
  • ed50e4790b Demo: added rounding slider+animate to allow better test range of rounding values. Mikko Mononen 2026-06-04 00:44:19 +03:00
  • ec510539c7 DrawList: increase detailed line textures from 3px to 4px to better hide the texture change. Mikko Mononen 2026-06-04 00:43:36 +03:00
  • f2055fe160 DrawList: fixed reserve counts in _AddPolyline(). Mikko Mononen 2026-06-03 00:28:23 +03:00
  • c6e5d8c85f DrawList: Debug build optimizations: add non-template ImMin/ImMax/ImClamp for int/float to avoid missing out on IM_MSVC_RUNTIME_CHECKS_OFF. ocornut 2026-06-02 16:54:44 +02:00
  • 16860367b3 DrawList: Debug build optimizations: disable over zealous stack checks in PrimReserve, PrimUnreserve, PrimRect, PrimRectUV, PrimQuadUV, _CalculateCenterBiasedOffset, ImAlphaMultiply, _SelectFringeTexture ocornut 2026-06-02 15:58:50 +02:00
  • ea638a4a11 DrawList: added vertex offset 16-bit ImDrawIdx support for _AddPolyline Mikko Mononen 2026-06-02 16:37:36 +02:00
  • a5a4bed3ca DrawList: improved worst case vertex count for AddConvexPolyFilled, convex polys can have only 2 bevels verts. Mikko Mononen 2026-06-02 14:41:58 +03:00
  • fc8f5e66d4 DrawList: fixed indices when AllowVtxOffset is on Mikko Mononen 2026-06-02 12:27:39 +03:00
  • 130be3be42 DrawList: Optimization: added specialized 2 point polyline _AddLine(). Mikko Mononen 2026-06-02 11:11:28 +03:00
  • 6856b3e06b DrawList: added _InvFringeScale to use in cases of 1/_FringeScale. Mikko Mononen 2026-06-02 10:05:54 +03:00
  • b484a90846 DrawList: minor render optimizations. Mikko Mononen 2026-06-02 09:52:26 +03:00
  • 7ec1bc17fd DrawList: debug build optimizations. Mikko Mononen 2026-06-01 20:35:16 +03:00
  • e8c8a10a2d DrawList: amends/review legacy stroke paths + minor tweaks. ocornut 2026-06-01 17:20:34 +02:00
  • c59367efcb DrawList: renamed ImDrawFlags_StrokeCenterAligned to ImDrawFlags_StrokeCenterBiased. ocornut 2026-06-01 17:20:17 +02:00
  • e9246e6ad3 DrawList: Fixed vertex count calculation in_AddRectTinyRounding() Mikko Mononen 2026-05-29 16:08:49 +03:00
  • 3fca7ef414 DrawList: skip PathLineTo/PathStroke calls for common AddLine() functions. (#4091) ocornut 2026-05-28 15:26:32 +02:00
  • 5410a04db4 DrawList: fixed out of bounds access of baked corner based on thickness Mikko Mononen 2026-05-28 10:44:37 +03:00
  • 20110d751d Docs: update changelog. ocornut 2026-05-19 16:07:47 +02:00
  • 68b5bf4466 DrawList: use straight floats when possible in _AddRectTinyRounding(). ocornut 2026-05-26 21:15:55 +02:00
  • d453a59b9c DrawList: avoid using output references in _SelectFringeTexture() + misc tweaks, comments. ocornut 2026-05-26 21:05:00 +02:00
  • ed8ed8bb71 DrawList: fixed thin lines appearing too bright. Mikko Mononen 2026-05-26 22:10:25 +03:00
  • 90e45bdde0 DrawList: extend the detailed stroke textures up stroke thickness 4. Mikko Mononen 2026-05-26 17:37:50 +03:00
  • 9f5bfdf83b DrawList: AddQuad() defaults to ImDrawFlags_StrokeInside. ocornut 2026-05-26 16:26:14 +02:00