SetNextWindowCached(key): opt-in cached windows on top of the refresh policy (skip contents while idle), t_cached_window test, README snippet
Build & Release / build (push) Canceled after 0s
Build & Release / build (push) Canceled after 0s
This commit is contained in:
+5
-1
@@ -1236,7 +1236,9 @@ function ImGuiNextWindowData()
|
||||
SizeCallbackUserData = nil,
|
||||
BgAlphaVal = nil,
|
||||
MenuBarOffsetMinVal = ImVec2(),
|
||||
RefreshFlagsVal = nil
|
||||
RefreshFlagsVal = nil,
|
||||
CacheKeySet = false, -- [Port] SetNextWindowCached()
|
||||
CacheKeyVal = nil
|
||||
}, IMGUI_NEXT_WINDOW_DATA)
|
||||
end
|
||||
|
||||
@@ -2408,6 +2410,8 @@ function ImGuiWindow(ctx, name)
|
||||
SkipItems = false,
|
||||
|
||||
SkipRefresh = false,
|
||||
CacheSnap = nil, -- [Port] SetNextWindowCached(): state at the last refresh
|
||||
CacheSkipItemsBackup = nil,
|
||||
|
||||
Appearing = false,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user