mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 15:20:58 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			422 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			422 B
		
	
	
	
		
			C++
		
	
	
	
	
	
/*
 | 
						|
 * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
 | 
						|
 * Copyright (c) 2022, the SerenityOS developers.
 | 
						|
 *
 | 
						|
 * SPDX-License-Identifier: BSD-2-Clause
 | 
						|
 */
 | 
						|
 | 
						|
#include <LibGUI/LazyWidget.h>
 | 
						|
 | 
						|
REGISTER_WIDGET(GUI, LazyWidget)
 | 
						|
 | 
						|
namespace GUI {
 | 
						|
 | 
						|
void LazyWidget::show_event(ShowEvent&)
 | 
						|
{
 | 
						|
    if (m_has_been_shown)
 | 
						|
        return;
 | 
						|
    m_has_been_shown = true;
 | 
						|
 | 
						|
    VERIFY(on_first_show);
 | 
						|
    on_first_show(*this);
 | 
						|
}
 | 
						|
 | 
						|
}
 |