mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 02:22:43 +00:00 
			
		
		
		
	 ea9a39a9f2
			
		
	
	
		ea9a39a9f2
		
	
	
	
	
		
			
			This widget is automatically included in GStatusBar, but can be added in any other place, too. When clicked (with the left button), it initiates a window resize (using a WM request.) In this patch I also fixed up some issues with override cursors being cleared after the WindowServer finishes a drag or resize.
		
			
				
	
	
		
			18 lines
		
	
	
	
		
			512 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
	
		
			512 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <LibGUI/GWidget.h>
 | |
| 
 | |
| class GResizeCorner : public GWidget {
 | |
| public:
 | |
|     explicit GResizeCorner(GWidget* parent);
 | |
|     virtual ~GResizeCorner() override;
 | |
| 
 | |
|     virtual const char* class_name() const override { return "GResizeCorner"; }
 | |
| 
 | |
| protected:
 | |
|     virtual void paint_event(GPaintEvent&) override;
 | |
|     virtual void mousedown_event(GMouseEvent&) override;
 | |
|     virtual void enter_event(CEvent&) override;
 | |
|     virtual void leave_event(CEvent&) override;
 | |
| 
 | |
| private:
 | |
|     RetainPtr<GraphicsBitmap> m_bitmap;
 | |
| };
 |