| 
									
										
										
										
											2019-03-21 15:54:19 +01:00
										 |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <AK/AKString.h>
 | 
					
						
							| 
									
										
										
										
											2019-04-03 17:22:14 +02:00
										 |  |  | #include <AK/Badge.h>
 | 
					
						
							| 
									
										
										
										
											2019-04-03 19:38:44 +02:00
										 |  |  | #include <AK/Function.h>
 | 
					
						
							| 
									
										
										
										
											2019-03-21 15:54:19 +01:00
										 |  |  | #include <SharedGraphics/Rect.h>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-03 17:22:14 +02:00
										 |  |  | class GEventLoop; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-21 15:54:19 +01:00
										 |  |  | class GDesktop { | 
					
						
							|  |  |  | public: | 
					
						
							|  |  |  |     static GDesktop& the(); | 
					
						
							| 
									
										
										
										
											2019-04-03 16:50:08 +02:00
										 |  |  |     GDesktop(); | 
					
						
							| 
									
										
										
										
											2019-03-21 15:54:19 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     String wallpaper() const; | 
					
						
							| 
									
										
										
										
											2019-06-02 14:58:02 +02:00
										 |  |  |     bool set_wallpaper(const StringView& path); | 
					
						
							| 
									
										
										
										
											2019-03-21 15:54:19 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-03 17:22:14 +02:00
										 |  |  |     Rect rect() const { return m_rect; } | 
					
						
							|  |  |  |     void did_receive_screen_rect(Badge<GEventLoop>, const Rect&); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-03 19:38:44 +02:00
										 |  |  |     Function<void(const Rect&)> on_rect_change; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-21 15:54:19 +01:00
										 |  |  | private: | 
					
						
							|  |  |  |     Rect m_rect; | 
					
						
							|  |  |  | }; |