summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/Selection.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications/PixelPaint/Selection.h')
-rw-r--r--Userland/Applications/PixelPaint/Selection.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/Selection.h b/Userland/Applications/PixelPaint/Selection.h
index e852f07da4..1322a14563 100644
--- a/Userland/Applications/PixelPaint/Selection.h
+++ b/Userland/Applications/PixelPaint/Selection.h
@@ -6,6 +6,7 @@
#pragma once
+#include <LibCore/Timer.h>
#include <LibGfx/Rect.h>
namespace PixelPaint {
@@ -15,7 +16,7 @@ class ImageEditor;
// Coordinates are image-relative.
class Selection {
public:
- Selection() { }
+ explicit Selection(ImageEditor&);
bool is_empty() const { return m_rect.is_empty(); }
void clear() { m_rect = {}; }
@@ -23,8 +24,13 @@ public:
void paint(Gfx::Painter&, ImageEditor const&);
+ void draw_marching_ants(Gfx::Painter&, Gfx::IntRect const&) const;
+
private:
+ ImageEditor& m_editor;
Gfx::IntRect m_rect;
+ RefPtr<Core::Timer> m_marching_ants_timer;
+ int m_marching_ants_offset { 0 };
};
}