mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:47: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:
parent
18d68c8c94
commit
b5788594f9
3 changed files with 16 additions and 20 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue