1
0
mirror of https://github.com/ocornut/imgui.git synced 2025-02-02 12:37:20 +01:00

1189 Commits

Author SHA1 Message Date
ocornut
ae6cfd32a0 Tables, Menus: Fixed tables or child windows submitted inside BeginMainMenuBar() being unable to save their settings. (#8356)
Amend error handling (fa178f4) to avoid us setting ImGuiWindowFlags_NoSavedSettings on the wrong window.
2025-01-30 14:34:51 +01:00
ocornut
fa178f4235 Error Handling: Recovery from missing EndMenuBar() call. (#1651) 2025-01-30 14:30:14 +01:00
ocornut
dabc990189 Rename internal id for standardizing naming convention. "##menubar" -> "##MenuBar", "###NavWindowingList" -> "###NavWindowingOverlay"
"###NavUpdateWindowing" one should have zero side effect on anyone.
2025-01-29 19:59:41 +01:00
ocornut
a71191515a EndMainMenuBar doesn't attempt to restore focus when there's an active id. (#8355)
I don't have a specific issue in mind but it seems sane to add that test.
2025-01-29 19:07:28 +01:00
ocornut
ea0da0bf47 Extracted PushPasswordFont() out of InputText code. 2025-01-27 18:04:44 +01:00
ocornut
9c4948a4d1 TabBar: Internals: added TabItemSpacing(). (#8349, #3291) 2025-01-27 15:41:24 +01:00
ocornut
ed7551c1d4 Selectable: Fixed horizontal label alignment when combined with using ImGuiSelectableFlags_SpanAllColumns. (#8338) 2025-01-24 14:59:37 +01:00
ocornut
bbf957875b Amend 9bc5b04 to avoid using GImGui mid-function. 2025-01-24 14:43:16 +01:00
ocornut
9bc5b0406d Windows, Style: Fixed small rendering issues with menu bar, resize grip and scrollbar when using thick border sizes. (#8267, #7887)
Amend e.g. 742b5f4c.
2025-01-24 14:39:07 +01:00
ocornut
6906ac979e ColorEdit, ColorPicker: (Breaking) redesigned how alpha is displayed in the preview square. (#8335, #1578, #346)
Added ImGuiColorEditFlags_AlphaOpaque, ImGuiColorEditFlags_AlphaNoBg.
Removed ImGuiColorEditFlags_AlphaPreview.
2025-01-22 12:12:07 +01:00
ocornut
7ae7c90790 Tabs, Style: reworked selected overline rendering to better accommodate for rounded tabs. (#8334) 2025-01-21 13:55:44 +01:00
ocornut
c59a2267d0 Version 1.91.8 WIP 2025-01-15 11:58:47 +01:00
ocornut
5c1d2d1e4c Version 1.91.7 2025-01-14 13:29:25 +01:00
ocornut
9f8481a842 (Breaking) TreeNode: renamed ImGuiTreeNodeFlags_SpanTextWidth to ImGuiTreeNodeFlags_SpanLabelWidth. (#6937) 2025-01-14 13:14:50 +01:00
ocornut
290e402a02 TreeNode, Tables: added ImGuiTreeNodeFlags_LabelSpanAllColumns. (#8318, #3565) 2025-01-13 18:55:09 +01:00
ocornut
00f12b9a09 InputText: Fixed not calling CallbackEdit on revert/clear with Escape key. (#8273) + rework comments.
Seems like there is no reason to not run that path. Amend ancient 9501cd99, f3ab5e625
2025-01-13 15:25:20 +01:00
ocornut
80aafbc81b Data types: moved ImGuiDataType_String to public API as a convenience enum value only. (#8266) 2025-01-06 14:22:03 +01:00
ocornut
c147a59bb0 Clarified alternative for ImGuiButtonFlags_Repeat being ImGuiItemFlags_ButtonRepeat. (#8293) 2025-01-06 13:58:02 +01:00
ocornut
6982ce43f5 InputText: fixed badly broken clipboard copy/bug (#8254, #8242)
Broken by 32f1140
2024-12-22 17:53:09 +01:00
ocornut
fd93229770 Tables, MultiSelect: Fixed an issue where column width may be mismeasured when calling BeginMultiSelect() while inside a table. (#8250) 2024-12-19 18:14:22 +01:00
ocornut
9b0e61aaaa InputText: sanity checks to e.g. detect non zero-terminated buffers + removed a redundant strlen() call during activation. 2024-12-19 15:13:22 +01:00
ocornut
457fae24e7 Silence more zealous GCC warning. (#8241) 2024-12-18 18:13:55 +01:00
Raffaello Bertini
cd6c83cdcc Fixes GCC warnings (#8241) 2024-12-18 17:58:19 +01:00
ocornut
32f11402f9 InputText: use TextSrc more consistently to facilitate accessing user buffer in text processing code. (#8242)
Followup to e900571
Removed SetClipboardText() trick used in abd07f6d (#7925)
2024-12-18 16:53:38 +01:00
ocornut
e900571ac2 InputText: Fixed issue when activating a ReadOnly field when the underlying value is being modified. (#8242) 2024-12-18 16:17:14 +01:00
ocornut
f5f11e94be InputText: Fixed a bug where character replacements performed from a callback were not applied when pasting from clipbard. (#8229) 2024-12-15 15:46:33 +01:00
ocornut
324d4bb140 InputText: calling ReloadUserBuf doesn't clear undo stack. (#2890) 2024-12-12 19:03:09 +01:00
ocornut
8237ab450e Drags, Sliders: store initial value on activation, as a convenience for some mods. (#8223) 2024-12-12 18:52:07 +01:00
ocornut
4ad5496474 Drags: Added ImGuiSliderFlags_NoSpeedTweaks flag to disable keyboard modifiers altering the tweak speed. (#8223) 2024-12-12 18:39:28 +01:00
ocornut
f9f4e22f6f InputText: some tidying up. (#7925) 2024-12-12 18:30:57 +01:00
ocornut
4cc464eadc BeginListBox(): Comments (#8220) 2024-12-12 16:44:20 +01:00
ocornut
f25665f360 Version 1.91.7 WIP 2024-12-11 15:37:16 +01:00
ocornut
993fa34749 Version 1.91.6 2024-12-11 15:05:36 +01:00
ocornut
d78e823449 InputText: added ImGuiInputTextFlags_ElideLeft. (#1442, #1440, #4391, #7208, #8216) 2024-12-09 15:00:04 +01:00
ocornut
d2645423de InputText: reactivating last activated InputText() doesn't restore horizontal scrolling.
Honestly not sure if the opposite is preferable or not (added commented out in the inactivate render path to test that).
Current behavior added along with recycling: f9928e96c7c762f97bbdf8cf48e04097b56da84a
2024-12-09 14:31:15 +01:00
ocornut
3f3c62a3c9 ScrollbarEx: clarify use of flags and make them optional. (#8215) 2024-12-09 11:43:00 +01:00
Diego Mateos
9b26743c6b
SliderAngle: only write back to value v_rad on value_changed. (#8193) 2024-11-29 13:31:11 +01:00
ocornut
9b27329437 Comments on ImageButton(). (#8165) + comments on Emscripten -sSINGLE_FILE option. (#8153) 2024-11-25 19:11:40 +01:00
ocornut
3381ab423b Version 1.91.6 WIP + fixed typo in tooltip. 2024-11-12 11:56:21 +01:00
ocornut
f401021d5a Version 1.91.5 2024-11-07 19:57:33 +01:00
ocornut
419a9ada16 Ignore clang warning Wnontrivial-memaccess (#8129, #8135)
Amend 88e2327
Use void* cast in backend where the memset are infrequent.
2024-11-07 19:08:37 +01:00
ocornut
63234f8dd0 InputText: Internals: rename CurLenA->TextLen, InitialTextA->TextToRevertTo.
Follow the refactors in #7925.
2024-11-05 11:32:02 +01:00
ocornut
82d0584e7b InputText: using CurLenA instead of TextA.Size for correctness. (#7925)
Was harmless because TextA is always zero-terminated, and TextA.Size >= CurLenA + 1.
2024-11-04 20:28:02 +01:00
ocornut
75f83de52a InputText: fixed a bug (regression in 1.91.2) where modifying text buffer within a callback would sometimes prevents further appending to the buffer. (#7925)
There's a confusion between TextA.Size and CurLenA we should be merging them.
Amend 19accb14a
2024-11-04 20:22:10 +01:00
ocornut
f37a9a27e5 Log/Capture: reworked scope + decorating menus, tabs. 2024-10-30 15:38:58 +01:00
ocornut
9a0dff1bc5 Buttons: using ImGuiItemFlags_ButtonRepeat makes default button behavior use PressedOnClick instead of PressedOnClickRelease when unspecified. 2024-10-29 14:26:02 +01:00
ocornut
81cfe09657 Selectable, Style: selected Selectable() use _Header color instead of an arbitrary lerp between _Header and _HeaderHovered. (#8106, #1861) 2024-10-28 15:45:46 +01:00
ocornut
41f02825fc Version 1.91.5 WIP 2024-10-23 12:16:28 +02:00
ocornut
83b64b8be2 Version 1.91.4 2024-10-18 21:45:36 +02:00
ocornut
ab9ce2a927 Nav: added io.ConfigNavCursorVisibleAuto, io.ConfigNavCursorVisibleAlways. (#1074, #2048, #7237, #8059, #3200, #787)
Note: the NavCursorHideFrames addition is to support 88a354585 even though ConfigNavCursorVisibleAlways is set.
2024-10-18 18:54:46 +02:00