Commit Graph

  • fbf70070bb InputText: Fixed minor inconsistency when pressing Down on the last line when it doesn't have a carriage return (it used to move to the end of the line) Louis Schnellbachandocornut 2020-09-17 11:32:56 +02:00
  • c47bcb25ed Fix popup and tooltip positioning when not fitting in the screen. Amend fa42ccea8. ocornut 2020-09-17 11:00:56 +02:00
  • b7b08f52a4 Fix popup and tooltip positioning when not fitting in the screen. Rokas Kupstysandocornut 2020-05-13 14:56:13 +03:00
  • 825f699bde Backends: OpenGL3: Amends (#3467, #1985) ocornut 2020-09-17 09:33:48 +02:00
  • 2460f2abe3 Backends: OpenGL3: Fix to avoid calling glBindSampler() with version <= 3.2 (#3467, #1985) Julian Webbandocornut 2020-09-10 13:02:45 -05:00
  • 645a6e0342 Bypass unnecessary formatting when using the TextColored()/TextWrapped()/TextDisabled() helpers with a "%s" format string. (#3466) ocornut 2020-09-16 18:36:42 +02:00
  • d2939ce0a1 Columns: Make sure the ClipRect is valid. (#3475) Bartosz Szrederandocornut 2020-09-16 15:17:45 +02:00
  • a1597cff08 Backends: DX12: Fix D3D12 Debug Layer warning if scissor rect is 0 width or 0 height. (#3472, #3462) Pierre-Loup Pagniezandomar 2020-09-15 12:39:55 +02:00
  • a8f409a848 Examples: DX12: Enable breaking on any warning/error when debug interface is enabled. (#3462, #3472) + misc comments & minor fixes. omar 2020-09-16 10:28:58 +02:00
  • e8447dea45 Backends: Vulkan: Removed unused shader code. Fix leaks. Avoid unnecessary pipeline creation for main viewport. Amend 41e2aa2. (#3459) omar 2020-09-08 22:39:53 +02:00
  • d8d58b038e Backends, Examples: DX12: Clarify support for 32-bit building in project files and comments. (#301) omar 2020-09-08 20:02:28 +02:00
  • 41e2aa2e7a Backends: Vulkan: Separate the pipeline of the dear imgui created windows from the one created with the user's render-pass. (#3455, #3459) Michel Lesoinneandomar 2020-09-08 16:47:06 +02:00
  • 6a546a500f ImVector: fix max_size() for signed int value. Amend 444873404 (#3429, #3460) xndcnandomar 2020-09-08 11:49:30 +08:00
  • 8a9ee9cded Add const qualifier for parameter ImFontConfig of ImFont::AddGlyph (#3461) HALX99andGitHub 2020-09-08 03:18:28 -07:00
  • 206d78a524 InputText: Fixed minor glitch when erasing trailing lines in InputTextMultiline(). Fixed cursor being partially covered after using Ctrl+End key. omar 2020-09-08 11:39:56 +02:00
  • 36af398056 Sliders: Fixed using ImGuiSliderFlags_ClampOnInput with reverse sliders. (#3432, #3449) omar 2020-09-07 19:52:11 +02:00
  • b2039aac67 Slider: Fixed to reach maximum value with inverted integer min/max ranges, both with signed and unsigned types. Added reverse Sliders to Demo. (#3432, #3449) Rokas Kupstysandomar 2020-09-07 17:38:56 +02:00
  • 6461fd40ab Examples: Fixed SDL+OpenGL2 and SDL+Vulkan examples not processing SDL_WINDOWEVENT_CLOSE events which tends to be needed in multi-viewport setting. omar 2020-09-07 12:19:50 +02:00
  • b25756be4a Examples: Vulkan: Switch validation layer. Fix CMakeLists to find Vulkan the standard way. (#3459) Michel Lesoinneandomar 2020-05-08 17:58:05 -06:00
  • 751d153ca9 InputText: Fixed callback's helper DeleteChars() function when cursor is inside the deleted block. (#3454). ocornut 2020-09-03 19:09:57 +02:00
  • 70289ab42c Scrolling: Fixed edge snapping being applied prior to knowing ContentSize. (#3452) ocornut 2020-09-03 17:38:51 +02:00
  • 8db94cd992 Internals: Scroll related, comments & shallow tweaks. ocornut 2020-09-03 16:11:01 +02:00
  • b73305be11 Examples: Vulkan: Reworked buffer resize handling, amend df89a16d (#3390, #2626) ocornut 2020-09-02 12:43:05 +02:00
  • 9a9ee7f813 NavInitWindow: Change IMGUI_DEBUG_LOG to IMGUI_DEBUG_LOG_NAV (#3450) Valentin VanelslandeandGitHub 2020-09-01 16:19:33 -05:00
  • f4d062fa11 Nav: Added debug logging, extract bits of code into NavUpdateInitResult(). ocornut 2020-09-01 18:33:51 +02:00
  • a456d17dfc Internals: Begin: update ->Hidden flags only on first begin of the frame. (ignore whitespace to see simple diff) ocornut 2020-09-01 15:24:24 +02:00
  • ce230fc370 Internals: TabBar renaming and shuffling stuff around. ocornut 2020-08-31 17:25:16 +02:00
  • 13f718337a Internals: Added support for overriding locale decimal point, undocumented. (#2278) + Misc doc update. ocornut 2020-08-28 16:49:46 +02:00
  • 901d432cb7 Nav: Fixed using Alt to toggle the Menu layer when inside a Modal window. (#787) Tidying up todo items. ocornut 2020-08-27 19:51:25 +02:00
  • 302896d488 Basic optimization for ShadeVertsLinearColorGradientKeepAlpha() - especially for debug overhead - since it's used massively by some of our experiments. ocornut 2020-08-27 12:19:13 +02:00
  • 093afd4f7f Internals: Added Name to ImGuiDataTypeInfo + minor misc comments in BeginGroup(). ocornut 2020-08-26 20:50:19 +02:00
  • 45499b8f2f Window: Fixed using non-zero pivot in SetNextWindowPos() when the window is collapsed. (#3433) ocornut 2020-08-26 20:18:54 +02:00
  • 8c80d533d9 Tab Bar: Fixed a small bug where toggling a tab bar from Reorderable to not Reorderable would leave tabs reordered in the tab list popup. Louis Schnellbachandocornut 2020-08-26 12:18:02 +02:00
  • b30d33378d Nav: Activate InputSource as Gamepad when pressing any of the digital d-pad button. ocornut 2020-08-26 12:41:05 +02:00
  • 8d71bc2132 Internals: Nav: shallow refactor. ocornut 2020-08-26 12:39:29 +02:00
  • 833eb771f2 Nav: Fix navigation resuming on first visible item when using gamepad. Rokas Kupstysandocornut 2020-08-26 12:21:37 +03:00
  • 1e8b9f84da Nav: Removed stateful NavMoveFromClampedRefRect and made it more explicit that nav move request from gamepad start from a clipped location. ocornut 2020-08-26 11:28:35 +02:00
  • 4448734041 ImVector: added max_size() to facilitate usage with sol2 binding generator (#3429) ocornut 2020-08-26 11:03:55 +02:00
  • 32be6c064b InputText: Fixed using ImGuiInputTextFlags_Password with InputTextMultiline(). (#3427, #3428) ocornut 2020-08-25 20:08:24 +02:00
  • 5919a6fa89 Tab Bar: Keep tab item close button visible while dragging a tab (independent of hovering state). ocornut 2020-08-25 19:28:20 +02:00
  • 021c28ae39 Nav: Fix ScrollToBringRectIntoView() not bringing entire item into view when nav moves to the left. Correct some comments. Rokas Kupstysandocornut 2020-08-25 13:13:03 +03:00
  • 08108cf9ee Tab Bar: Hide tab item close button while dragging a tab. ocornut 2020-08-25 11:49:16 +02:00
  • 2e50d0706b Selectable: Tweaks. Added internal ImGuiSelectableFlags_NoPadWithHalfSpacing. omar 2020-08-24 16:26:47 +02:00
  • d451f6cc30 Nav tweaks. Demo: Fixed drag and drop demo state (broken by f152fac4f1). Fixed incorrect format string (which would work without IMGUI_DISABLE_OBSOLETE_FUNCTIONS). omar 2020-08-24 14:13:18 +02:00
  • 7b0570d6ba Revert "Drags, Sliders: internal ReadOnly flag gets forwarded properly to temp InputText()." ocornut 2020-08-21 20:15:07 +02:00
  • fdf952108d Drags, Sliders: internal ReadOnly flag gets forwarded properly to temp InputText(). ocornut 2020-08-21 19:16:59 +02:00
  • df89a16d26 Examples: Vulkan: Reworked buffer resize handling, fix for Linux/X11. (#3390, #2626) ocornut 2020-08-07 15:34:25 +02:00
  • 9b50e691ed TreeNode: Made clicking on arrow toggle toggle the open state on the Mouse Down event. Amend 05420ea2c. ocornut 2020-08-20 22:26:10 +02:00
  • 97dad66516 Metrics: Various tweaks, listing windows front-to-back, greying inactive items when possible. ocornut 2020-08-20 16:49:11 +02:00
  • 9262609eaf Version 1.79 WIP ocornut 2020-08-20 12:19:39 +02:00
  • 05a25e5f36 BeginMenuBar: Fixed minor bug where CursorPosMax gets pushed to CursorPos prior to calling BeginMenuBar(), so e.g. calling the function at the end of a window would often add +ItemSpacing.y to scrolling range. ocornut 2020-08-20 16:19:53 +02:00
  • fc9ccad6b9 InputText: Add ImGuiInputTextFlags_CallbackEdit, selection helpers in ImGuiInputTextCallbackData(). Add simple InputText() callbacks demo. ocornut 2020-08-20 11:25:39 +02:00
  • 024993adf9 Revert leftovers from 4c201994d4 ocornut 2020-08-20 11:25:05 +02:00
  • 4c201994d4 DragFloat, DragScalar: Fixed ImGuiSliderFlags_ClampOnInput not being honored in the special case where v_min == v_max. (#3361) ocornut 2020-08-20 11:21:15 +02:00
  • 5dc5610ad5 Docs: TODO, FAQ ocornut 2020-08-19 13:25:56 +02:00
  • 95c99aaa4b Version 1.78 ocornut 2020-08-18 17:50:45 +02:00
  • c6b01e8e1d Drag, Sliders: Merged ImGuiDragFlags back into ImGuiSliderFlags. (#3361, #1823, #1316, #642, #1829, #3209) ocornut 2020-08-18 17:02:58 +02:00
  • 14539b3ed2 Update Emscripten readme about emrun (#3412) omarandGitHub 2020-08-18 12:34:19 +02:00
  • d3fcc37e9e Update Emscripten readme about local XHR requests (#3412) omarandGitHub 2020-08-18 12:27:40 +02:00
  • 3c65b650e8 Merge branch 'features/logarithmic_sliders' ocornut 2020-08-17 22:11:09 +02:00
  • f32663b33c Drags, Sliders: Removed locking behavior with min > max (added in 1.73) omar 2020-07-27 16:23:38 +02:00
  • 7f8f0096d8 Internals: Renamed SliderCalcRatioFromValueT() -> ScaleRatioFromValueT(), SliderCalcValueFromRatioT() -> ScaleValueFromRatioT(). omar 2020-07-27 15:34:14 +02:00
  • fb0f2ebd41 Drags, Sliders: Tweaks. omar 2020-07-27 15:15:09 +02:00
  • fa279a6aa0 Drags, Sliders: Added deadzone to make selecting 0.0 on linear sliders easier, slider navigation delta accumulation. (#3361, #1823, #1316, #642) Ben Carterandocornut 2020-07-26 11:42:06 +09:00
  • f75b29e7be Drags, Sliders: Added ImGuiDragFlags_NoInput/ImGuiSliderFlags_NoInput to disable turning widget into a text input with CTRL+Click or Nav Enter. omar 2020-07-24 13:41:14 +02:00
  • 8018623c5b Drags, Sliders: Added ImGuiDragFlags_NoRoundToFormat / ImGuiSliderFlags_NoRoundToFormat flags (#642) omar 2020-07-23 23:01:10 +02:00
  • 170d02bd99 Drags, Sliders: Added ImGuiDragFlags_ClampOnInput/ImGuiSliderFlags_ClampOnInput flags to force clamping value when using CTRL+Click to type in a value manually. (#1829, #3209) omar 2020-07-23 17:39:22 +02:00
  • 7607aea018 Drags, Sliders: Removed power features. Old entry points will pass-through if power=1.0f, otherwise assert + safe fallback. Remove 3 redirection functions (#3361, #1823, #1316, #642) omar 2020-07-22 19:33:03 +02:00
  • 43c099f31e Drags, Sliders: Logarithmic: Moved flags to internals, allowing 1.0f to pass by. (#3361, #1823, #1316, #642) omar 2020-07-22 18:00:50 +02:00
  • 152dae9e2a Drags, Sliders: Logarithmic: Split back flags into drag/slider flags. Moved to an obsolete section. (#3361, #1823, #1316, #642) omar 2020-07-22 14:52:26 +02:00
  • 9f98b4e7f2 Drags, Sliders: Logarithmic: Added logarithmic mode support to drag widgets, extended API to add flags to drag/sliders (#3361, #1823, #1316, #642) Ben Carterandocornut 2020-06-02 15:36:20 +09:00
  • a252a287bf Drags, Sliders: Logarithmic: WIP experiments with trying to make logarithmic sliders sensible (#3361, #1823, #1316, #642) Ben Carterandocornut 2020-05-24 18:05:09 +09:00
  • 46d75202b8 Tab Bar: Allow calling SetTabItemClosed() after a tab has been submitted (will process next frame). ocornut 2020-08-17 12:55:42 +02:00
  • 0e5b1ea297 CI: imscripten fastcomp backend is now deprecated (#3402) Louis SchnellbachandGitHub 2020-08-12 16:26:42 +02:00
  • 214dd68ec1 Comments, clarifying ClosePopupsOverWindow(). omar 2020-08-10 22:05:26 +02:00
  • a4dd4d60b4 CI: moved static analysis to a separate project + fix (uninitialized variable, was harmless in this case). omar 2020-08-10 17:34:14 +02:00
  • 8241cd6284 Make moving window prevent its active id from being stolen (#3392, #3243, #1738) omar 2020-08-10 16:28:46 +02:00
  • 009276b6cb Backends: Allegro 5: Fixed horizontal scrolling direction with mouse wheel / touch pads (#3394, #2424, #1463) [@nobody-special666] omar 2020-08-10 15:31:48 +02:00
  • 209a6a751c Revert "Examples: Switch most VS projects to enable Edit & Continue by default (may need to upgrade projects to latest toolchain)" omar 2020-08-10 11:33:30 +02:00
  • 89ac87cd91 Internals: Added SetLastItemData, rename ImGuiItemHoveredDataBackup to ImGuiLastItemDataBackup. omar 2020-08-10 11:30:19 +02:00
  • 90b152f265 ImFontAtlas: Fixed multiple rebuild with same inputs erroneously increased ConfigDataCount. CI: Update Ubuntu 18.04 > 20.04 (motivated by #3369) ocornut 2020-08-07 16:26:16 +02:00
  • ede8825fb2 Examples: Vulkan: Fixed GLFW+Vulkan and SDL+Vulkan clear color not being set. Broken by a06eb833 (#3390) ocornut 2020-08-07 15:24:00 +02:00
  • b15b25bccd TabBar: made a change to that declared ideal width (for auto-resize) won't lag by an extra frame. omar 2020-08-06 16:35:29 +02:00
  • 8074b49148 Selectable: Fixed highlight/hit extent when used with horizontal scrolling (in or outside columns). (#3187, #3386) omar 2020-08-05 19:23:00 +02:00
  • fc61018b1c Demo: Renamed "Layout" -> "Layout & Scrolling". Fixed usage of local struct as template class (c++11). omar 2020-08-05 17:10:06 +02:00
  • 473a01adb0 Scrolling: Avoid SetScroll, SetScrollFromPos functions from snapping on the edge of scroll limits. (#3379) + Demo: Rename "Layout" to "Layout & Scrolling". omar 2020-08-05 17:09:40 +02:00
  • a24578ec09 Examples: Switch most VS projects to enable Edit & Continue by default (may need to upgrade projects to latest toolchain) omar 2020-08-05 14:58:44 +02:00
  • db886f3953 Demo: Rework Clipping section. Fix for static analysis. Added bindings in Readme. omar 2020-08-04 12:05:15 +02:00
  • 963839373c Demo tweaks + general removal of the word dummy were possible with no issues (kept the API call). omar 2020-08-03 21:19:12 +02:00
  • 55041ac3be Demo: Removed thin triangle and aligned code. omar 2020-08-03 19:25:41 +02:00
  • 912c45ab23 Demo: Improve "Custom Rendering"->"Canvas" demo with a grid, scrolling and context menu. omar 2020-08-03 19:13:42 +02:00
  • 4929a8e4a5 InvisibleButton: Made public a small selection of ImGuiButtonFlags (previously in imgui_internal.h) and allowed to pass them to InvisibleButton(). omar 2020-08-03 18:37:19 +02:00
  • a876ad877d Window: Fixed clicking over an item which hovering has been disabled (e.g inhibited by a popup) from marking the window as moved. omar 2020-08-03 18:04:58 +02:00
  • 5d87941451 Fixed ImFontConfig::GlyphExtraSpacing and ImFontConfig::PixelSnapH settings being pulled from the merged/target font settings when merging fonts, instead of being pulled from the source font settings. omar 2020-08-02 11:54:34 +02:00
  • 76ddacd2a1 Internals: Backport HoveredWindowUnderMovingWindow code from Docking branch. omar 2020-07-29 15:26:31 +02:00
  • 218ff3a2a5 Internals: Backport one ->WasActive test in NavRestoreLastChildNavWindow() from 9bf6509c6 + minor/shallow bits from docking branch. omar 2020-07-29 15:04:29 +02:00
  • c7f5876f8a Internals: backport window HitTestHole code from docking branch + RenderRectFilledWithHole() helper. (#1512, #3368) omar 2020-07-29 14:44:58 +02:00
  • bbd061538c Internals: Drag/Sliders: simplified some code. omar 2020-07-24 13:00:56 +02:00
  • b8c22bdb28 DragFloatRange2, DragIntRange2: Fixed an issue allowing to drag out of bounds when both min and max value are on the same value. (#1441) omar 2020-07-23 19:03:48 +02:00
  • fdc526e8f8 Stop advertisting for Drag v_min>v_max which was introduced in 1.73 likely for 0537ac00 then made unnecessary with 32c33c66, added undocumented ImGuiItemFlags_ReadOnly as possible replacement (unused), (#211) omar 2020-07-23 18:18:30 +02:00