mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:57:35 +00:00
PixelPaint: Add delete selection behavior
The delete key can now be used to erase the pixels on the active layer contained within the selection rectangle. Closes #11861
This commit is contained in:
parent
d3e7ec5a56
commit
d3dfb957a6
3 changed files with 17 additions and 0 deletions
|
@ -61,6 +61,8 @@ public:
|
|||
|
||||
Image const& image() const { return m_image; }
|
||||
|
||||
void erase_selection(Selection const&);
|
||||
|
||||
private:
|
||||
Layer(Image&, NonnullRefPtr<Gfx::Bitmap>, String name);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue