mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-06 06:25:54 +01:00
(Breaking) Commented out legacy names/functions which were obsoleted in 1.91.1 (Sept 2024).
This commit is contained in:
parent
93a14c8fda
commit
1ff218165d
@ -55,6 +55,13 @@ Autumn cleanup of stuff marked obsolete more than two years ago:
|
||||
- `PopButtonRepeat()` --> `PopItemFlag()`
|
||||
- `PushTabStop(bool tab_stop)` --> `PushItemFlag(ImGuiItemFlags_NoTabStop, !tab_stop);`
|
||||
- `PopTabStop()` --> `PopItemFlag()`
|
||||
- Commented out legacy names/functions which were obsoleted in 1.91.1 (Sept 2024);
|
||||
- `io.GetClipboardTextFn` --> `platform_io.Platform_GetClipboardTextFn`
|
||||
- `io.SetClipboardTextFn` --> `platform_io.Platform_SetClipboardTextFn`
|
||||
- `io.ClipboardUserData` --> `platform_io.Platform_ClipboardUserData`
|
||||
|
||||
Please also try to get rid of calls to `GetContentRegionMax()`, `GetWindowContentRegionMin()`
|
||||
and `GetWindowContentRegionMax()`: you do NOT need those functions. See #7838.
|
||||
|
||||
|
||||
Other Changes:
|
||||
|
||||
11
imgui.cpp
11
imgui.cpp
@ -405,6 +405,9 @@ IMPLEMENTING SUPPORT for ImGuiBackendFlags_RendererHasTextures:
|
||||
- `PopButtonRepeat()` --> `PopItemFlag()`
|
||||
- `PushTabStop(bool tab_stop)` --> `PushItemFlag(ImGuiItemFlags_NoTabStop, !tab_stop);`
|
||||
- `PopTabStop()` --> `PopItemFlag()`
|
||||
- `io.GetClipboardTextFn` --> `platform_io.Platform_GetClipboardTextFn`
|
||||
- `io.SetClipboardTextFn` --> `platform_io.Platform_SetClipboardTextFn`
|
||||
- `io.ClipboardUserData` --> `platform_io.Platform_ClipboardUserData`
|
||||
2026/10/07 (1.93.0) - large cleanup/refactor of ImDrawList. many issues and inconsistencies fixed! (#9504)
|
||||
BELOW IS A SIMPLIFIED/SHORTENED RECAP OF CHANGES. READ CHANGELOG AND LINKS ABOVE FOR MORE DETAILS!
|
||||
useful links:
|
||||
@ -11254,10 +11257,10 @@ static void ImGui::ErrorCheckNewFrameSanityChecks()
|
||||
}
|
||||
|
||||
// Remap legacy clipboard handlers (OBSOLETED in 1.91.1, August 2024)
|
||||
if (g.IO.GetClipboardTextFn != NULL && (g.PlatformIO.Platform_GetClipboardTextFn == NULL || g.PlatformIO.Platform_GetClipboardTextFn == Platform_GetClipboardTextFn_DefaultImpl))
|
||||
g.PlatformIO.Platform_GetClipboardTextFn = [](ImGuiContext* ctx) { return ctx->IO.GetClipboardTextFn(ctx->IO.ClipboardUserData); };
|
||||
if (g.IO.SetClipboardTextFn != NULL && (g.PlatformIO.Platform_SetClipboardTextFn == NULL || g.PlatformIO.Platform_SetClipboardTextFn == Platform_SetClipboardTextFn_DefaultImpl))
|
||||
g.PlatformIO.Platform_SetClipboardTextFn = [](ImGuiContext* ctx, const char* text) { return ctx->IO.SetClipboardTextFn(ctx->IO.ClipboardUserData, text); };
|
||||
//if (g.IO.GetClipboardTextFn != NULL && (g.PlatformIO.Platform_GetClipboardTextFn == NULL || g.PlatformIO.Platform_GetClipboardTextFn == Platform_GetClipboardTextFn_DefaultImpl))
|
||||
// g.PlatformIO.Platform_GetClipboardTextFn = [](ImGuiContext* ctx) { return ctx->IO.GetClipboardTextFn(ctx->IO.ClipboardUserData); };
|
||||
//if (g.IO.SetClipboardTextFn != NULL && (g.PlatformIO.Platform_SetClipboardTextFn == NULL || g.PlatformIO.Platform_SetClipboardTextFn == Platform_SetClipboardTextFn_DefaultImpl))
|
||||
// g.PlatformIO.Platform_SetClipboardTextFn = [](ImGuiContext* ctx, const char* text) { return ctx->IO.SetClipboardTextFn(ctx->IO.ClipboardUserData, text); };
|
||||
|
||||
// Remap legacy CurveTessellationTol into CurveTessellationMaxError (OBSOLETED in 1.93.0, August 2026)
|
||||
if (g.Style.CurveTessellationTol != 0.0f)
|
||||
|
||||
6
imgui.h
6
imgui.h
@ -2682,9 +2682,9 @@ struct ImGuiIO
|
||||
|
||||
// [Moved in 1.91.1] Clipboard functions were stored in ImGuiIO instead of ImGuiPlatformIO.
|
||||
// As this is will affect all users of custom engines/backends, we are providing proper legacy redirection (will obsolete).
|
||||
const char* (*GetClipboardTextFn)(void* user_data);
|
||||
void (*SetClipboardTextFn)(void* user_data, const char* text);
|
||||
void* ClipboardUserData;
|
||||
//const char* (*GetClipboardTextFn)(void* user_data); // --> `platform_io.Platform_GetClipboardTextFn`
|
||||
//void (*SetClipboardTextFn)(void* user_data, const char* text); // --> `platform_io.Platform_SetClipboardTextFn`
|
||||
//void* ClipboardUserData; // --> `platform_io.Platform_ClipboardUserData`
|
||||
|
||||
//void ClearInputCharacters() { InputQueueCharacters.resize(0); } // [Obsoleted in 1.89.8] Clear the current frame text input buffer. Now included within ClearInputKeys(). Removed this as it is ambiguous/misleading and generally incorrect to use with the existence of a higher-level input queue.
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user