1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 06:37:35 +00:00

PixelPaint: Support saving/loading masks to project file

This commit is contained in:
Tobias Christiansen 2022-03-08 23:23:20 +01:00 committed by Andreas Kling
parent 0dd5f5672c
commit 51be2283f5
3 changed files with 17 additions and 2 deletions

View file

@ -54,6 +54,7 @@ public:
void set_name(String);
void set_content_bitmap(NonnullRefPtr<Gfx::Bitmap> bitmap);
void set_mask_bitmap(NonnullRefPtr<Gfx::Bitmap> bitmap);
void did_modify_bitmap(Gfx::IntRect const& = {});
@ -72,7 +73,7 @@ public:
void erase_selection(Selection const&);
bool is_masked() { return !m_mask_bitmap.is_null(); }
bool is_masked() const { return !m_mask_bitmap.is_null(); }
enum class EditMode {
Content,