1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:17:35 +00:00

PixelPaint: Let Layer track whether it's selected or not

This will simplify a lot of code that keeps getting more confusing.
This commit is contained in:
Andreas Kling 2020-05-26 10:12:47 +02:00
parent 18d68c8c94
commit b5788594f9
3 changed files with 16 additions and 20 deletions

View file

@ -59,12 +59,17 @@ public:
void did_modify_bitmap(Image&);
void set_selected(bool selected) { m_selected = selected; }
bool is_selected() const { return m_selected; }
private:
explicit Layer(const Gfx::Size&, const String& name);
String m_name;
Gfx::Point m_location;
RefPtr<Gfx::Bitmap> m_bitmap;
bool m_selected { false };
};
}