mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:52:45 +00:00 
			
		
		
		
	LibGUI: Add forwarding header
This patch adds <LibGUI/Forward.h> and uses it a bunch. It also dragged various header dependency reduction changes into it.
This commit is contained in:
		
							parent
							
								
									2e6ab58117
								
							
						
					
					
						commit
						2143da6434
					
				
					 115 changed files with 220 additions and 338 deletions
				
			
		|  | @ -26,11 +26,10 @@ | |||
| 
 | ||||
| #pragma once | ||||
| 
 | ||||
| #include <AK/Badge.h> | ||||
| #include <AK/HashMap.h> | ||||
| #include <AK/String.h> | ||||
| #include <LibCore/Object.h> | ||||
| #include <LibGUI/Event.h> | ||||
| #include <LibGUI/Forward.h> | ||||
| #include <LibGfx/Color.h> | ||||
| #include <LibGfx/Forward.h> | ||||
| #include <LibGfx/Orientation.h> | ||||
|  | @ -40,10 +39,6 @@ | |||
|     extern WidgetClassRegistration registration_##class_name; \ | ||||
|     WidgetClassRegistration registration_##class_name(#class_name, [](Widget* parent) { return class_name::construct(parent); }); | ||||
| 
 | ||||
| namespace GUI { | ||||
| class Widget; | ||||
| } | ||||
| 
 | ||||
| template<> | ||||
| inline bool Core::is<GUI::Widget>(const Core::Object& object) | ||||
| { | ||||
|  | @ -52,11 +47,6 @@ inline bool Core::is<GUI::Widget>(const Core::Object& object) | |||
| 
 | ||||
| namespace GUI { | ||||
| 
 | ||||
| class Action; | ||||
| class Layout; | ||||
| class Menu; | ||||
| class Window; | ||||
| 
 | ||||
| enum class SizePolicy { | ||||
|     Fixed, | ||||
|     Fill | ||||
|  | @ -81,8 +71,6 @@ enum class VerticalDirection { | |||
|     Down | ||||
| }; | ||||
| 
 | ||||
| class Widget; | ||||
| 
 | ||||
| class WidgetClassRegistration { | ||||
|     AK_MAKE_NONCOPYABLE(WidgetClassRegistration) | ||||
|     AK_MAKE_NONMOVABLE(WidgetClassRegistration) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling