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

4762 Commits

Author SHA1 Message Date
ocornut
a05d547ae8 Windows: separating WindowItemStatusFlags from ChildItemStatusFlag, because IsItemXXX _after_ BeginChild()>Begin() shouldn't return last status emitted by e.g. EndChild()
As IsItemXXX() after is specced as returning title bar data we don't want to lock ourselves up from adding them to child window (e.g. MDI idea using windows to host child windows).
2025-01-27 14:39:26 +01:00
ocornut
134fbe1245 Windows: Fixed IsItemXXXX() functions not working on append-version of EndChild(). (#8350)
Also made some of the fields accessible after BeginChild() to match Begin() logic.
2025-01-27 12:41:31 +01:00
ocornut
5a28f188ff Fixed parameter names to SetLastItemData() to align with current names. 2025-01-27 12:27:15 +01:00
ocornut
8a1613a382 Fonts: OversampleH/OversampleV value defaults to 0 for automatic selection. 2025-01-24 19:32:30 +01:00
ocornut
53244aaac7 Amend 9bc5b04 with a shadowed variable warning fix. 2025-01-24 15:00:21 +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
71da34c48c Debug Tools: Tweaked font preview + indent "Glyphs" block. 2025-01-22 16:56:18 +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
fdca6c08ad Inputs: added IsMouseReleasedWithDelay() helper. (#8337, #8320) 2025-01-22 11:28:47 +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
487d7f9a29 Font: Internals: make used page maps smaller. Since it's extremely rarely used and for iterations only. ~34->16 bytes with ImWchar32. 2025-01-16 22:30:43 +01:00
ocornut
f2262eb81a Windows: latch FontRefSize at time of Begin(), consistent with e.g. TitleBarHeight, and to avoid calling CalcFontSize() on non-current window. 2025-01-16 19:46:54 +01:00
ocornut
b7c27c5333 Windows: legacy SetWindowFontScale() is properly inherited by nested child windows. (#2701, #8138, #1018) 2025-01-16 19:08:39 +01:00
ocornut
100075f2be Backends: DirectX12: Texture upload use the command queue provided in ImGui_ImplDX12_InitInfo instead of creating its own.
+ minor tweaks to faciliate branch merging.
2025-01-15 12:15:24 +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
a604d4f717 Fixed IsItemDeactivated(), IsItemDeactivatedAfterEdit() to work when interrupted before/after the active id is submitted. (#5184, #5904, #6766, #8303, #8004) 2025-01-13 14:09:41 +01:00
ocornut
a28ffa81c4 Docs: added more references to IsKeyDown(), InFlags. (#8317) 2025-01-13 13:35:26 +01:00
ocornut
940d9540f3 Fixed MinGW builds uses UTF-8 friendly _wfopen(). (#8300)
Amend bbd0a37bd, 40db2ca09
2025-01-09 15:28:48 +01:00
ocornut
1c67a3412e BeginChild: also caller to manually set ImGuiNextWindowDataFlags_HasChildFlags / ChildFlags. (#8280) 2025-01-08 14:55:51 +01:00
ocornut
2b8545684c Refactor: moved Window Focus related functions to a dedicated section. 2025-01-08 14:22:37 +01:00
ocornut
bbbdc70f26 Refactor: moved FindBlockingModal() in its section. 2025-01-08 14:22:04 +01:00
ocornut
a0f907933d Happy new year! 2025-01-06 14:07:06 +01:00
ocornut
18929bd6d6 Internals: merge ScaleWindowsInViewport() from docking branch. 2024-12-20 23:26:21 +01:00
ocornut
2a600bddcb ImGuiDebugLogFlags_EventFont should not be set by default (had no effect on master tho) 2024-12-20 23:11:37 +01:00
ocornut
7219fa65c0 Revert "Fonts: Allowing PushFont()/PopFont() to be called outside the imgui frame scope. (#3621)"
This reverts commit 61d4bf95dc5345c77b97b279011fce2c46efcaa8.
2024-12-20 17:20:57 +01:00
ocornut
61d4bf95dc Fonts: Allowing PushFont()/PopFont() to be called outside the imgui frame scope. (#3621) 2024-12-20 17:17:40 +01:00
ocornut
d30e102f3a Scrollbar, TestEngine: for consistency, scrollbars are registered in _Menu layer.
Amend f31d530.
2024-12-20 15:22:34 +01:00
ocornut
91e8f2b0fe Debug Tools: Debug Log: hovering 0xXXXXXXXX values in log is allowed even if a popup is blocking mouse access to the debug log window. (#5855) 2024-12-20 15:13:49 +01:00
ocornut
eed9502795 Error Handling: Fixed bugs recovering from within a table that created a child window, and from nested child windows. (#1651) 2024-12-20 14:28:04 +01:00
Raffaello Bertini
cd6c83cdcc Fixes GCC warnings (#8241) 2024-12-18 17:58:19 +01:00
ocornut
f31d53093b TestEngine: for consistency, title bar / window items are registered in _Menu layer. 2024-12-18 13:02:48 +01:00
ocornut
13c4084362 Nav: Fixed an issue where Alt key would clear current active item on windows with the ImGuiWindowFlags_NoNavInputs flag. (#8231) 2024-12-16 10:51:33 +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
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
c3ffd4c53e Misc: Added IMGUI_USE_LEGACY_CRC32_ADLER to use old tables. (#8169, #4933) 2024-12-11 12:13:28 +01:00
slowriot
2671f68f7f Don't enable SSE4 under Emscripten (#8213, #8169, #4933)
Amend 326dc95f9
2024-12-09 12:14:43 +01:00
ocornut
2d660108b2 Misc: amend crc32 to use _mm_crc32_u32. (#8169, #4933) 2024-11-27 12:34:16 +01:00
Teselka
326dc95f9c Misc: use native crc32 instructions on SEE 4.2 targets. (#8169, #4933) 2024-11-27 12:23:27 +01:00
Teselka
e6dd8f626a Misc: changed CRC32 table to use crc32c polynomial in order to be compatible with SSE 4.2 instructions. (#8169, #4933) 2024-11-27 12:20:00 +01:00
ocornut
20360e00ce Merge miscellaneous small changes to reduce drift with texture update branch.
- ImGuiDebugLogFlags_EventFont is yet unused.
2024-11-20 21:46:47 +01:00
ocornut
8be0723fb7 Amend Changelog to better document how changing button behavior of InputInt/InputFloat step buttons affected some mis-uses (#8149) 2024-11-13 16:55:06 +01:00
ocornut
e97b97467e Error Handling: fixed cases where recoverable error handling would crash. (#1651) 2024-11-12 19:09:00 +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
3543dfda95 Docs: document removal of ImFont const qualifier as potentially breaking. 2024-11-06 18:14:44 +01:00
ocornut
df0776e931 (Breaking) Removed ImGuiKey_COUNT. (#4921) 2024-11-06 17:55:00 +01:00