mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-16 00:54:19 +00:00
RetWindowCollapsed() to IsWindowCollapsed() for consistency. Kept inline indirection.
This commit is contained in:
parent
0539be7067
commit
df37df821e
2 changed files with 13 additions and 12 deletions
|
|
@ -136,6 +136,7 @@
|
|||
Occasionally introducing changes that are breaking the API. The breakage are generally minor and easy to fix.
|
||||
Here is a change-log of API breaking changes, if you are using one of the functions listed, expect to have to fix some code.
|
||||
|
||||
- 2015/05/31 (1.39) - renamed GetWindowCollapsed() to IsWindowCollapsed() for consistency. Kept inline redirection function (will obsolete).
|
||||
- 2015/05/31 (1.39) - renamed IsRectClipped to IsRectVisible for consistency. Note that return value is opposite! Kept inline redirection function (will obsolete).
|
||||
- 2015/05/27 (1.39) - removed the third 'repeat_if_held' parameter from Button() - sorry! it was rarely used and inconsistent. Use PushButtonRepeat(true) / PopButtonRepeat() to enable repeat on desired buttons.
|
||||
- 2015/05/11 (1.39) - changed BeginPopup() API, takes a string identifier instead of a bool. ImGui needs to manage the open/closed state of popups. Call OpenPopup() to actually set the "opened" state of a popup. BeginPopup() returns true if the popup is opened.
|
||||
|
|
@ -4421,10 +4422,9 @@ void ImGui::SetWindowCollapsed(bool collapsed, ImGuiSetCond cond)
|
|||
SetWindowCollapsed(window, collapsed, cond);
|
||||
}
|
||||
|
||||
bool ImGui::GetWindowCollapsed()
|
||||
bool ImGui::IsWindowCollapsed()
|
||||
{
|
||||
ImGuiWindow* window = GetCurrentWindow();
|
||||
return window->Collapsed;
|
||||
return GImGui->CurrentWindow->Collapsed;
|
||||
}
|
||||
|
||||
void ImGui::SetWindowCollapsed(const char* name, bool collapsed, ImGuiSetCond cond)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue