mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:32:44 +00:00 
			
		
		
		
	LibGUI: Add GMenu* and GApplication classes.
This commit is contained in:
		
							parent
							
								
									8d0bfa62fd
								
							
						
					
					
						commit
						9483b39227
					
				
					 9 changed files with 131 additions and 0 deletions
				
			
		
							
								
								
									
										23
									
								
								LibGUI/GApplication.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								LibGUI/GApplication.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | |||
| #include <LibGUI/GApplication.h> | ||||
| #include <LibGUI/GEventLoop.h> | ||||
| #include <LibGUI/GMenuBar.h> | ||||
| 
 | ||||
| GApplication::GApplication(int argc, char** argv) | ||||
| { | ||||
|     m_event_loop = make<GEventLoop>(); | ||||
| } | ||||
| 
 | ||||
| GApplication::~GApplication() | ||||
| { | ||||
| } | ||||
| 
 | ||||
| int GApplication::exec() | ||||
| { | ||||
|     return m_event_loop->exec(); | ||||
| } | ||||
| 
 | ||||
| void GApplication::set_menubar(OwnPtr<GMenuBar>&& menubar) | ||||
| { | ||||
|     m_menubar = move(menubar); | ||||
| } | ||||
| 
 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling