mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 06:47:34 +00:00
PixelPaint: Make selection changes undoable
Using the Rectangle Select Tool will now generate undo/redo commands like any other tool. :^)
This commit is contained in:
parent
d571159aeb
commit
49deb936be
4 changed files with 12 additions and 0 deletions
|
@ -49,6 +49,7 @@ public:
|
|||
[[nodiscard]] u8 get_selection_alpha(Gfx::IntPoint const& point) const { return get_selection_alpha(point.x(), point.y()); }
|
||||
|
||||
Mask const& mask() const { return m_mask; }
|
||||
void set_mask(Mask);
|
||||
|
||||
void begin_interactive_selection() { m_in_interactive_selection = true; }
|
||||
void end_interactive_selection() { m_in_interactive_selection = false; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue