mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-11-04 07:10:57 +00:00 
			
		
		
		
	
		
			
	
	
		
			21 lines
		
	
	
	
		
			306 B
		
	
	
	
		
			C++
		
	
	
	
	
	
		
		
			
		
	
	
			21 lines
		
	
	
	
		
			306 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| 
								 | 
							
								#include <LibGUI/GLazyWidget.h>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								GLazyWidget::GLazyWidget(GWidget* parent)
							 | 
						||
| 
								 | 
							
								    : GWidget(parent)
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								GLazyWidget::~GLazyWidget()
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								void GLazyWidget::show_event(GShowEvent&)
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    if (m_has_been_shown)
							 | 
						||
| 
								 | 
							
								        return;
							 | 
						||
| 
								 | 
							
								    m_has_been_shown = true;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    ASSERT(on_first_show);
							 | 
						||
| 
								 | 
							
								    on_first_show(*this);
							 | 
						||
| 
								 | 
							
								}
							 |