mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-28 11:02:36 +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);
 | |
| }
 | |
| 
 | |
| }
 | 
