mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:22:45 +00:00 
			
		
		
		
	 f2546d15ce
			
		
	
	
		f2546d15ce
		
	
	
	
	
		
			
			This is a tiny bar at the left of the taskbar where you can put your most used apps to launch them with a single click. In a way, it's another replacement for the Launcher, in addition to the app menu. Unlike the launcher and the menu, it's not meant to be the primary way to launch apps; it's only a faster way to launch a few most often used utilities.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			478 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			478 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "WindowList.h"
 | |
| #include <LibGUI/GWidget.h>
 | |
| #include <LibGUI/GWindow.h>
 | |
| 
 | |
| class TaskbarWindow final : public GWindow {
 | |
|     C_OBJECT(TaskbarWindow)
 | |
| public:
 | |
|     TaskbarWindow();
 | |
|     virtual ~TaskbarWindow() override;
 | |
| 
 | |
|     int taskbar_height() const { return 28; }
 | |
| 
 | |
| private:
 | |
|     void create_quick_launch_bar();
 | |
|     void on_screen_rect_change(const Rect&);
 | |
|     NonnullRefPtr<GButton> create_button(const WindowIdentifier&);
 | |
| 
 | |
|     virtual void wm_event(GWMEvent&) override;
 | |
| };
 |