1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:48:14 +00:00

QuickShow: Rotate image left and right, flip vertical and horizontal

This commit is contained in:
Hüseyin ASLITÜRK 2020-04-12 16:03:31 +03:00 committed by Andreas Kling
parent 2689fdf1d8
commit d79c81a179
3 changed files with 65 additions and 0 deletions

View file

@ -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;