You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/CHANGELOG.txt
+5
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,11 @@ Breaking changes:
57
57
(Because PlatformOpenInShellFn and PlatformSetImeDataFn were introduced very recently and
58
58
often automatically set by core library and backends, we are exceptionally not maintaining
59
59
a legacy redirection symbol for those two.)
60
+
- Commented the old ImageButton() signature obsoleted in 1.89 (~August 2022). (#5533, #4471, #2464, #1390)
61
+
- old ImageButton() used ImTextureId as item id (created issue with e.g. multiple buttons in same scope, transient texture id values, opaque computation of ID)
62
+
- new ImageButton() requires an explicit 'const char* str_id'
63
+
- old ImageButton() had frame_padding' override argument.
64
+
- new ImageButton() always use style.FramePadding, which you can freely override with PushStyleVar()/PopStyleVar().
Copy file name to clipboardexpand all lines: docs/TODO.txt
+1
Original file line number
Diff line number
Diff line change
@@ -190,6 +190,7 @@ It's mostly a bunch of personal notes, probably incomplete. Feel free to query i
190
190
- tree node/opt: could avoid formatting when clipped (flag assuming we don't care about width/height, assume single line height? format only %s/%c to be able to count height?)
191
191
192
192
- settings: write more decent code to allow saving/loading new fields: columns, selected tree nodes?
193
+
- settings: facilitate extension lazily calling AddSettingsHandler() while running and still getting their data call the ReadXXX handlers immediately.
193
194
- settings: api for per-tool simple persistent data (bool,int,float,columns sizes,etc.) in .ini file (#437)
194
195
- settings/persistence: helpers to make TreeNodeBehavior persist (even during dev!) - may need to store some semantic and/or data type in ImGuiStoragePair
- access those via GetPlatformIO() instead of GetIO().
440
440
some were introduced very recently and often automatically setup by core library and backends, so for those we are exceptionally not maintaining a legacy redirection symbol.
441
+
- commented the old ImageButton() signature obsoleted in 1.89 (~August 2022). As a reminder:
442
+
- old ImageButton() before 1.89 used ImTextureId as item id (created issue with e.g. multiple buttons in same scope, transient texture id values, opaque computation of ID)
443
+
- new ImageButton() since 1.89 requires an explicit 'const char* str_id'
444
+
- old ImageButton() before 1.89 had frame_padding' override argument.
445
+
- new ImageButton() since 1.89 always use style.FramePadding, which you can freely override with PushStyleVar()/PopStyleVar().
441
446
- 2024/07/25 (1.91.0) - obsoleted GetContentRegionMax(), GetWindowContentRegionMin() and GetWindowContentRegionMax(). (see #7838 on GitHub for more info)
442
447
you should never need those functions. you can do everything with GetCursorScreenPos() and GetContentRegionAvail() in a more simple way.
// OBSOLETED in 1.87 (from February 2022 but more formally obsoleted April 2024)
3553
3551
IMGUI_API ImGuiKey GetKeyIndex(ImGuiKey key); // Map ImGuiKey_* values into legacy native key index. == io.KeyMap[key]. When using a 1.87+ backend using io.AddKeyEvent(), calling GetKeyIndex() with ANY ImGuiKey_XXXX values will return the same value!
// Legacy API obsoleted in 1.89. Two differences with new ImageButton()
1111
-
// - new ImageButton() requires an explicit 'const char* str_id' Old ImageButton() used opaque imTextureId (created issue with: multiple buttons with same image, transient texture id values, opaque computation of ID)
1112
-
// - new ImageButton() always use style.FramePadding Old ImageButton() had an override argument.
1113
-
// If you need to change padding with new ImageButton() you can use PushStyleVar(ImGuiStyleVar_FramePadding, value), consistent with other Button functions.
1111
+
// - old ImageButton() used ImTextureId as item id (created issue with multiple buttons with same image, transient texture id values, opaque computation of ID)
1112
+
// - new ImageButton() requires an explicit 'const char* str_id'
1113
+
// - old ImageButton() had frame_padding' override argument.
1114
+
// - new ImageButton() always use style.FramePadding.
0 commit comments