ocornut
4925695ae8
InputText: optimize InputTextCalcTextLenAndLineCount() for inactive multiline path. ( #7925 )
2024-09-16 14:52:42 +02:00
ocornut
7ac50bf77d
InputText: more tidying up of selection search loop.
2024-09-16 14:42:58 +02:00
ocornut
aef07aea27
InputText: minor tidying up of selection search loop (no need to imply it runs in single line mode)
2024-09-16 14:36:25 +02:00
ocornut
b53d91a4c4
InputText: optimization for large text: using memchr() instead of strchr() shaves 0.2 ms on 865k multi-line text case. Approximately 20%. ( #7925 )
2024-09-16 14:15:43 +02:00
ocornut
44a74509af
Backends: Win32: fixed direct calls to platform_io.Platform_SetWindowPos()/Platform_SetWindowSize() on windows created by application (typically main viewport).
2024-09-16 13:56:25 +02:00
ocornut
510b6adc9b
CI: disable month-long PVS Studio warning about expiring licence.
2024-09-16 12:09:14 +02:00
ocornut
8040c02b32
Viewports: fixed an issue where a window manually constrained to the main viewport while crossing over main viewport bounds isn't translated properly. ( #7985 )
...
Amend 967073ba3
2024-09-16 12:05:25 +02:00
ocornut
dab63231d8
Misc: Made it accepted to call SetMouseCursor() with any out-of-bound value, as a way to allow hacking in custom cursors if desirable.
2024-09-16 11:19:05 +02:00
ocornut
8326dabe5e
Merge branch 'master' into docking
2024-09-12 23:19:26 +02:00
ocornut
4d00bf8add
MultiSelect+Tables: fixed an issue where box-select would skip items while drag-scrolling in a table with outer borders. ( #7970 , #7821 ).
...
See "widgets_multiselect_boxselect_2" test.
2024-09-12 23:13:32 +02:00
Yan Pujante
6dcb7be35f
CI: amend build tests for emscripten ( #7965 )
...
+ Backends: GLFW: minor preemptive fix.
2024-09-12 20:23:01 +02:00
Yan Pujante
ac2ad79812
Backends: GLFW+Emscripten: use OSX behaviors automatically when using contrib glfw port. ( #7965 , #7915 )
2024-09-12 19:50:50 +02:00
RT2
484764860d
Backends: SDL3: added support for viewport->ParentViewportId field to support parenting windows at OS level. ( #7973 )
2024-09-12 19:35:31 +02:00
David Briscoe
52a6ab44b1
Doc: Fix typo. ( #7974 )
2024-09-12 19:24:37 +02:00
ocornut
dc6346b763
Fonts: fixed ellipsis "..." rendering width miscalculation bug introduced in 1.91.0. ( #7976 )
...
Amend 0f63d3e9
2024-09-12 19:22:09 +02:00
ocornut
8807b01b28
InputText: amends: now can use memchr()/strchr() for line counting. Much faster! ( #7925 )
2024-09-11 14:46:29 +02:00
ocornut
19accb14a9
InputText: amends: fixed undo-stack reconcile. fixed metrics crash. fixes character filtering. ( #7925 )
...
Refer to imgui_test_suite for tests.
2024-09-11 14:46:29 +02:00
ocornut
3d1e593b5b
InputText: amends: fixed next/prev word implementation. ( #7925 )
...
+ replace IMSTB_TEXTEDIT_GETPREVCHARINDEX code with ImTextFindPreviousUtf8Codepoint().
2024-09-11 14:46:29 +02:00
ocornut
e240bc151a
InputText: amends: add note about STB_TEXTEDIT_GETCHAR. tweak InputTextCalcTextSize() to use similar debug-friendly logic as ImFont:CalcTextSizeA(). misc small tidying up. ( #7925 )
2024-09-11 14:46:29 +02:00
ocornut
1674fe96ff
InputText: amends: add stb_textedit_text() api. ( #7925 )
...
It seems sensible to push this change in stb_textedit repo eventually.
2024-09-11 14:46:29 +02:00
ocornut
d1b7817959
InputText: amends: renames, coding style. ( #7925 )
2024-09-11 14:46:29 +02:00
alektron
abd07f6d30
InputText: added native support for UTF-8 text editing and god rid of the wchar buffer. ( #7925 )
...
WIP (requires subsequent commits for fixes)
2024-09-11 14:46:29 +02:00
ocornut
68aa9a86ec
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_sdl2.cpp
2024-09-10 16:29:14 +02:00
ocornut
67cd4ead65
Added io.ConfigDebugHighlightIdConflicts debug feature! ( #7961 , #7669 )
...
Also #74 , #96 , #480 , #501 , #647 , #654 , #719 , #843 , #894 , #1057 , #1173 , #1390 , #1414 , #1556 , #1768 , #2041 , #2116 , #2330 , #2475 , #2562 , #2667 , #2807 , #2885 , #3102 , #3375 , #3526 , #3964 , #4008 , #4070 , #4158 , #4172 , #4199 , #4375 , #4395 , #4471 , #4548 , #4612 , #4631 , #4657 , #4796 , #5210 , #5303 , #5360 , #5393 , #5533 , #5692 , #5707 , #5729 , #5773 , #5787 , #5884 , #6046 , #6093 , #6186 , #6223 , #6364 , #6387 , #6567 , #6692 , #6724 , #6939 , #6984 , #7246 , #7270 , #7375 , #7421 , #7434 , #7472 , #7581 , #7724 , #7926 , #7937 and probably more.. Tagging to increase visibility!
2024-09-10 15:40:37 +02:00
Pascal Thomet
a8eec24405
Demo: fix some id conflicts. ( #7961 )
2024-09-09 21:07:29 +02:00
scribam
4236bc088f
Backends: SDL2: use SDL_Vulkan_GetDrawableSize with Vulkan instead of SDL_GL_GetDrawableSize. ( #7967 , #3190 )
2024-09-09 17:33:28 +02:00
ocornut
7694e89e89
Merge branch 'master' into docking
...
# Conflicts:
# imgui.cpp
2024-09-09 16:54:40 +02:00
ocornut
15cb7d61f9
InputText: moved imstb_textedit.h include to imgui_widgets.cpp
2024-09-09 16:52:16 +02:00
ocornut
ca5701d458
InputText: moved all ImGuiInputTextState functions to not be inline.
2024-09-09 16:29:47 +02:00
ocornut
21d03edcb0
InputText: renamed namespace from stb_texture structure and added an indirection.
2024-09-09 16:22:55 +02:00
ocornut
a2366f9022
TextLinkOpenURL: display a verb in front the link. Update Gallery & other links. ( #7885 , #7660 )
2024-09-06 11:45:32 +02:00
ocornut
a5cf4fe374
InputText: added CJK double-width punctuation to list of separators considered for CTRL+Arrow.
2024-09-05 20:45:07 +02:00
ocornut
d16cb171c6
Nav: pressing any keyboard key while holding Alt disable toggling nav layer on Alt release. ( #4439 , extend #370 , #369 )
2024-09-05 20:16:37 +02:00
ocornut
193c1e2366
Version 1.91.2 WIP
2024-09-05 20:03:23 +02:00
ocornut
d0b742efde
CI: build with Clang C++26 on Linux. ( #7954 )
2024-09-05 15:30:29 +02:00
ocornut
4a1a38f7ed
CI: Amend 943fd21
.
2024-09-05 15:28:41 +02:00
ocornut
943fd216ec
CI: Amend e3cb016
.
2024-09-05 15:19:04 +02:00
ocornut
e3cb016328
CI: upgrade Ubuntu version to get newer Clang. Add C++26 build test. ( #7954 )
2024-09-05 15:15:49 +02:00
CrackedMatter
41eebc87a0
Fixed C++26 invalid enum operation ( #7954 )
2024-09-05 12:04:28 +02:00
ocornut
f63c95a076
Merge branch 'master' into docking
...
# Conflicts:
# backends/imgui_impl_sdl3.cpp
# docs/CHANGELOG.txt
# imgui.cpp
# imgui.h
# imgui_internal.h
2024-09-04 16:58:44 +02:00
ocornut
1dfbb100d6
Version 1.91.1
2024-09-04 16:53:43 +02:00
ocornut
f75cf62d2f
Tables: fixed resizing columns when using multiple synched instances that are layed out at different X positions. ( #7933 )
...
TableGetMaxColumnWidth() was using MinX from previous column. Storing info in column. Still incorrect interleaved data for multi-instances but it covers majority of use cases.
2024-09-04 15:46:24 +02:00
ocornut
8dd33839f0
Tables: fixed an issue detecting hovering column/row when using multiple synched instances layed out at different X positions. ( #7933 )
...
Was reading ClipRect from last frame.
2024-09-04 15:24:22 +02:00
ocornut
722a2a12fb
Tables: comments. ( #7937 )
2024-09-04 14:42:00 +02:00
ocornut
776813416b
PlotHistogram, PlotLines: use ButtonBehavior() to be idiomatic. ( #7935 , #3072 )
2024-09-03 21:55:26 +02:00
ocornut
afb15e9795
PlotHistogram, PlotLines: register item ID in a more idiomatic manner. ( #7935 , #3072 )
2024-09-03 21:49:35 +02:00
ocornut
f99febfd6f
Made BeginItemTooltip() and IsItemHovered() with delay flag infer an implicit ID using Pos only. ( #7945 , #1485 , #143 )
...
Perhaps a better approach would be to: store last non-zero ID + count successive zero ID and combine then.
2024-09-03 21:19:25 +02:00
ocornut
a93f7db875
Misc merge/small stuff from docking to reduce drift.
...
Among other things:
- merged cfd23957
(#7940 , #7823 ), also see ac64b6563
(#6716 ): moved above on 2023/08/14 in both branches.
- moving the RenderDimmedBackgrounds() call, from f422e782
, see 676497fe
intently undoing ac64b65
-> confusing. (#6716 )
2024-09-03 20:55:00 +02:00
ocornut
6d70c2dc73
Viewports: fixed misuse of inset_max.y, which typically would have broken using BeginViewportSideBar() with ImGuiDir_Down, regression from 1.91.0. ( #7940 , #7823 )
...
Amend cfd23957f
2024-09-03 20:02:04 +02:00
Yan Pujante
30dcdcbe73
Backends: GLFW: Emscripten: use OpenURL() when available and using EMSCRIPTEN_USE_PORT_CONTRIB_GLFW3. Fixes popup blocked in some browsers. ( #7915 , #7660 )
2024-09-03 19:32:00 +02:00