PixelPaint: Move selection from ImageEditor to Image

This is preparation for making selection state undoable.
This commit is contained in:
Andreas Kling 2022-08-25 20:50:15 +02:00
commit d571159aeb
Notes: sideshowbarker 2024-07-17 07:44:05 +09:00
8 changed files with 70 additions and 32 deletions

View file

@ -37,6 +37,7 @@ ErrorOr<NonnullRefPtr<Image>> Image::try_create_with_size(Gfx::IntSize const& si
Image::Image(Gfx::IntSize const& size)
: m_size(size)
, m_selection(*this)
{
}