mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 09:47:34 +00:00
PixelPaint: Support saving/loading masks to project file
This commit is contained in:
parent
0dd5f5672c
commit
51be2283f5
3 changed files with 17 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue