mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:12:43 +00:00 
			
		
		
		
	LibGUI: Add a Widget::did_layout() that gets called after layout
This will allow widgets to implement post-layout behaviors.
This commit is contained in:
		
							parent
							
								
									7aa62665a3
								
							
						
					
					
						commit
						f4fa758959
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		|  | @ -245,6 +245,7 @@ void Widget::do_layout() | ||||||
|     if (!m_layout) |     if (!m_layout) | ||||||
|         return; |         return; | ||||||
|     m_layout->run(*this); |     m_layout->run(*this); | ||||||
|  |     did_layout(); | ||||||
|     update(); |     update(); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -283,6 +283,7 @@ protected: | ||||||
| 
 | 
 | ||||||
|     virtual void custom_layout() {} |     virtual void custom_layout() {} | ||||||
|     virtual void did_change_font() {} |     virtual void did_change_font() {} | ||||||
|  |     virtual void did_layout() {} | ||||||
|     virtual void paint_event(PaintEvent&); |     virtual void paint_event(PaintEvent&); | ||||||
|     virtual void resize_event(ResizeEvent&); |     virtual void resize_event(ResizeEvent&); | ||||||
|     virtual void show_event(ShowEvent&); |     virtual void show_event(ShowEvent&); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling