@ -5054,6 +5054,9 @@ void ImGui::RenderWindowDecorations(ImGuiWindow* window, const ImRect& title_bar
ImGuiStyle & style = g . Style ;
ImGuiWindowFlags flags = window - > Flags ;
// Ensure that ScrollBar doesn't read last frame's SkipItems
window - > SkipItems = false ;
// Draw window + handle manual resize
// As we highlight the title bar when want_focus is set, multiple reappearing windows will have have their title bar highlighted on their reappearing frame.
const float window_rounding = window - > WindowRounding ;
@ -9754,7 +9757,10 @@ void ImGui::ShowMetricsWindow(bool* p_open)
ImGui : : BulletText ( " %s: NULL " , label ) ;
return ;
}
if ( ! ImGui : : TreeNode ( window , " %s '%s', %d @ 0x%p " , label , window - > Name , ( window - > Active | | window - > WasActive ) , window ) )
bool open = ImGui : : TreeNode ( window , " %s '%s', %d @ 0x%p " , label , window - > Name , ( window - > Active | | window - > WasActive ) , window ) ;
if ( ImGui : : IsItemHovered ( ) & & window - > WasActive )
ImGui : : GetForegroundDrawList ( ) - > AddRect ( window - > Pos , window - > Pos + window - > Size , IM_COL32 ( 255 , 255 , 0 , 255 ) ) ;
if ( ! open )
return ;
ImGuiWindowFlags flags = window - > Flags ;
NodeDrawList ( window , window - > DrawList , " DrawList " ) ;
@ -9763,7 +9769,7 @@ void ImGui::ShowMetricsWindow(bool* p_open)
( flags & ImGuiWindowFlags_ChildWindow ) ? " Child " : " " , ( flags & ImGuiWindowFlags_Tooltip ) ? " Tooltip " : " " , ( flags & ImGuiWindowFlags_Popup ) ? " Popup " : " " ,
( flags & ImGuiWindowFlags_Modal ) ? " Modal " : " " , ( flags & ImGuiWindowFlags_ChildMenu ) ? " ChildMenu " : " " , ( flags & ImGuiWindowFlags_NoSavedSettings ) ? " NoSavedSettings " : " " ,
( flags & ImGuiWindowFlags_NoMouseInputs ) ? " NoMouseInputs " : " " , ( flags & ImGuiWindowFlags_NoNavInputs ) ? " NoNavInputs " : " " , ( flags & ImGuiWindowFlags_AlwaysAutoResize ) ? " AlwaysAutoResize " : " " ) ;
ImGui : : BulletText ( " Scroll: (%.2f/%.2f,%.2f/%.2f) " , window - > Scroll . x , window - > ScrollMax . x , window - > Scroll . y , window - > ScrollMax . y ) ;
ImGui : : BulletText ( " Scroll: (%.2f/%.2f,%.2f/%.2f) Scrollbar:%s%s " , window - > Scroll . x , window - > ScrollMax . x , window - > Scroll . y , window - > ScrollMax . y , window - > ScrollbarX ? " X " : " " , window - > ScrollbarY ? " Y " : " " ) ;
ImGui : : BulletText ( " Active: %d/%d, WriteAccessed: %d, BeginOrderWithinContext: %d " , window - > Active , window - > WasActive , window - > WriteAccessed , ( window - > Active | | window - > WasActive ) ? window - > BeginOrderWithinContext : - 1 ) ;
ImGui : : BulletText ( " Appearing: %d, Hidden: %d (CanSkip %d Cannot %d), SkipItems: %d " , window - > Appearing , window - > Hidden , window - > HiddenFramesCanSkipItems , window - > HiddenFramesCannotSkipItems , window - > SkipItems ) ;
ImGui : : BulletText ( " NavLastIds: 0x%08X,0x%08X, NavLayerActiveMask: %X " , window - > NavLastIds [ 0 ] , window - > NavLastIds [ 1 ] , window - > DC . NavLayerActiveMask ) ;
@ -9821,7 +9827,7 @@ void ImGui::ShowMetricsWindow(bool* p_open)
} ;
Funcs : : NodeWindows ( g . Windows , " Windows " ) ;
if ( ImGui : : TreeNode ( " DrawList " , " Active DrawLists (%d) " , g . DrawDataBuilder . Layers [ 0 ] . Size ) )
if ( ImGui : : TreeNode ( " DrawList s " , " Active DrawLists (%d) " , g . DrawDataBuilder . Layers [ 0 ] . Size ) )
{
for ( int i = 0 ; i < g . DrawDataBuilder . Layers [ 0 ] . Size ; i + + )
Funcs : : NodeDrawList ( NULL , g . DrawDataBuilder . Layers [ 0 ] [ i ] , " DrawList " ) ;