mirror of
https://github.com/ocornut/imgui.git
synced 2026-03-20 07:29:43 +00:00
Obsoleted PushTabStop()/PopTabStop() in favor of using new PushItemFlag()/PopItemFlag() with ImGuiItemFlags_NoTabStop.
This commit is contained in:
14
imgui.cpp
14
imgui.cpp
@@ -7624,16 +7624,6 @@ void ImGui::EndDisabledOverrideReenable()
|
||||
g.Style.Alpha = g.DisabledAlphaBackup * g.Style.DisabledAlpha;
|
||||
}
|
||||
|
||||
void ImGui::PushTabStop(bool tab_stop)
|
||||
{
|
||||
PushItemFlag(ImGuiItemFlags_NoTabStop, !tab_stop);
|
||||
}
|
||||
|
||||
void ImGui::PopTabStop()
|
||||
{
|
||||
PopItemFlag();
|
||||
}
|
||||
|
||||
void ImGui::PushTextWrapPos(float wrap_pos_x)
|
||||
{
|
||||
ImGuiWindow* window = GetCurrentWindow();
|
||||
@@ -13773,10 +13763,10 @@ void ImGui::LogButtons()
|
||||
#endif
|
||||
const bool log_to_file = Button("Log To File"); SameLine();
|
||||
const bool log_to_clipboard = Button("Log To Clipboard"); SameLine();
|
||||
PushTabStop(false);
|
||||
PushItemFlag(ImGuiItemFlags_NoTabStop, true);
|
||||
SetNextItemWidth(80.0f);
|
||||
SliderInt("Default Depth", &g.LogDepthToExpandDefault, 0, 9, NULL);
|
||||
PopTabStop();
|
||||
PopItemFlag();
|
||||
PopID();
|
||||
|
||||
// Start logging at the end of the function so that the buttons don't appear in the log
|
||||
|
||||
Reference in New Issue
Block a user