mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:32:46 +00:00 
			
		
		
		
	QuickShow: Rotate image left and right, flip vertical and horizontal
This commit is contained in:
		
							parent
							
								
									2689fdf1d8
								
							
						
					
					
						commit
						d79c81a179
					
				
					 3 changed files with 65 additions and 0 deletions
				
			
		|  | @ -27,6 +27,7 @@ | |||
| #pragma once | ||||
| 
 | ||||
| #include <LibGUI/Frame.h> | ||||
| #include <LibGfx/Bitmap.h> | ||||
| #include <LibGfx/FloatPoint.h> | ||||
| 
 | ||||
| class QSLabel; | ||||
|  | @ -46,6 +47,8 @@ public: | |||
|     const Gfx::Bitmap* bitmap() const { return m_bitmap.ptr(); } | ||||
|     const String& path() const { return m_path; } | ||||
| 
 | ||||
|     void flip(Gfx::Orientation); | ||||
|     void rotate(Gfx::RotationDirection); | ||||
|     void navigate(Directions); | ||||
|     void load_from_file(const String&); | ||||
| 
 | ||||
|  | @ -63,6 +66,7 @@ private: | |||
|     virtual void drop_event(GUI::DropEvent&) override; | ||||
| 
 | ||||
|     void relayout(); | ||||
|     void resize_window(); | ||||
| 
 | ||||
|     String m_path; | ||||
|     RefPtr<Gfx::Bitmap> m_bitmap; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Hüseyin ASLITÜRK
						Hüseyin ASLITÜRK