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 Schnellbachandocornut2020-09-17 11:32:56 +02:00
c47bcb25ed
Fix popup and tooltip positioning when not fitting in the screen. Amend fa42ccea8.
ocornut2020-09-17 11:00:56 +02:00
b7b08f52a4
Fix popup and tooltip positioning when not fitting in the screen.
Rokas Kupstysandocornut2020-05-13 14:56:13 +03:00
645a6e0342
Bypass unnecessary formatting when using the TextColored()/TextWrapped()/TextDisabled() helpers with a "%s" format string. (#3466)
ocornut2020-09-16 18:36:42 +02:00
a8f409a848
Examples: DX12: Enable breaking on any warning/error when debug interface is enabled. (#3462, #3472) + misc comments & minor fixes.
omar2020-09-16 10:28:58 +02:00
d8d58b038e
Backends, Examples: DX12: Clarify support for 32-bit building in project files and comments. (#301)
omar2020-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 Lesoinneandomar2020-09-08 16:47:06 +02:00
8a9ee9cded
Add const qualifier for parameter ImFontConfig of ImFont::AddGlyph (#3461)
HALX99andGitHub2020-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.
omar2020-09-08 11:39:56 +02:00
36af398056
Sliders: Fixed using ImGuiSliderFlags_ClampOnInput with reverse sliders. (#3432, #3449)
omar2020-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 Kupstysandomar2020-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.
omar2020-09-07 12:19:50 +02:00
b25756be4a
Examples: Vulkan: Switch validation layer. Fix CMakeLists to find Vulkan the standard way. (#3459)
Michel Lesoinneandomar2020-05-08 17:58:05 -06:00
751d153ca9
InputText: Fixed callback's helper DeleteChars() function when cursor is inside the deleted block. (#3454).
ocornut2020-09-03 19:09:57 +02:00
70289ab42c
Scrolling: Fixed edge snapping being applied prior to knowing ContentSize. (#3452)
ocornut2020-09-03 17:38:51 +02:00
f4d062fa11
Nav: Added debug logging, extract bits of code into NavUpdateInitResult().
ocornut2020-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)
ocornut2020-09-01 15:24:24 +02:00
13f718337a
Internals: Added support for overriding locale decimal point, undocumented. (#2278) + Misc doc update.
ocornut2020-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.
ocornut2020-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.
ocornut2020-08-27 12:19:13 +02:00
093afd4f7f
Internals: Added Name to ImGuiDataTypeInfo + minor misc comments in BeginGroup().
ocornut2020-08-26 20:50:19 +02:00
45499b8f2f
Window: Fixed using non-zero pivot in SetNextWindowPos() when the window is collapsed. (#3433)
ocornut2020-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 Schnellbachandocornut2020-08-26 12:18:02 +02:00
b30d33378d
Nav: Activate InputSource as Gamepad when pressing any of the digital d-pad button.
ocornut2020-08-26 12:41:05 +02:00
833eb771f2
Nav: Fix navigation resuming on first visible item when using gamepad.
Rokas Kupstysandocornut2020-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.
ocornut2020-08-26 11:28:35 +02:00
4448734041
ImVector: added max_size() to facilitate usage with sol2 binding generator (#3429)
ocornut2020-08-26 11:03:55 +02:00
32be6c064b
InputText: Fixed using ImGuiInputTextFlags_Password with InputTextMultiline(). (#3427, #3428)
ocornut2020-08-25 20:08:24 +02:00
5919a6fa89
Tab Bar: Keep tab item close button visible while dragging a tab (independent of hovering state).
ocornut2020-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 Kupstysandocornut2020-08-25 13:13:03 +03:00
08108cf9ee
Tab Bar: Hide tab item close button while dragging a tab.
ocornut2020-08-25 11:49:16 +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).
omar2020-08-24 14:13:18 +02:00
7b0570d6ba
Revert "Drags, Sliders: internal ReadOnly flag gets forwarded properly to temp InputText()."
ocornut2020-08-21 20:15:07 +02:00
fdf952108d
Drags, Sliders: internal ReadOnly flag gets forwarded properly to temp InputText().
ocornut2020-08-21 19:16:59 +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.
ocornut2020-08-20 16:19:53 +02:00
4c201994d4
DragFloat, DragScalar: Fixed ImGuiSliderFlags_ClampOnInput not being honored in the special case where v_min == v_max. (#3361)
ocornut2020-08-20 11:21:15 +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 Carterandocornut2020-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.
omar2020-07-24 13:41:14 +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)
omar2020-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)
omar2020-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)
omar2020-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)
omar2020-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 Carterandocornut2020-06-02 15:36:20 +09:00
209a6a751c
Revert "Examples: Switch most VS projects to enable Edit & Continue by default (may need to upgrade projects to latest toolchain)"
omar2020-08-10 11:33:30 +02:00
90b152f265
ImFontAtlas: Fixed multiple rebuild with same inputs erroneously increased ConfigDataCount. CI: Update Ubuntu 18.04 > 20.04 (motivated by #3369)
ocornut2020-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)
ocornut2020-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.
omar2020-08-06 16:35:29 +02:00
8074b49148
Selectable: Fixed highlight/hit extent when used with horizontal scrolling (in or outside columns). (#3187, #3386)
omar2020-08-05 19:23:00 +02:00
fc61018b1c
Demo: Renamed "Layout" -> "Layout & Scrolling". Fixed usage of local struct as template class (c++11).
omar2020-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".
omar2020-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)
omar2020-08-05 14:58:44 +02:00
db886f3953
Demo: Rework Clipping section. Fix for static analysis. Added bindings in Readme.
omar2020-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).
omar2020-08-03 21:19:12 +02:00
912c45ab23
Demo: Improve "Custom Rendering"->"Canvas" demo with a grid, scrolling and context menu.
omar2020-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().
omar2020-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.
omar2020-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.
omar2020-08-02 11:54:34 +02:00
218ff3a2a5
Internals: Backport one ->WasActive test in NavRestoreLastChildNavWindow() from 9bf6509c6 + minor/shallow bits from docking branch.
omar2020-07-29 15:04:29 +02:00
bbd061538c
Internals: Drag/Sliders: simplified some code.
omar2020-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)
omar2020-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)
omar2020-07-23 18:18:30 +02:00