mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +00:00
PixelPaint: Add actions to rotate image left/right
This also required adding a new hook to `ImageClient`, since there wasn't a way of telling the ImageEditor that the full rect of the image has changed (as when we rotate).
This commit is contained in:
parent
6a8c408856
commit
ca6c9be94c
5 changed files with 46 additions and 0 deletions
|
@ -453,6 +453,12 @@ void ImageEditor::image_did_change(Gfx::IntRect const& modified_image_rect)
|
|||
update(m_editor_image_rect.intersected(enclosing_int_rect(image_rect_to_editor_rect(modified_image_rect))));
|
||||
}
|
||||
|
||||
void ImageEditor::image_did_change_rect(Gfx::IntRect const& new_image_rect)
|
||||
{
|
||||
m_editor_image_rect = enclosing_int_rect(image_rect_to_editor_rect(new_image_rect));
|
||||
update(m_editor_image_rect);
|
||||
}
|
||||
|
||||
void ImageEditor::image_did_change_title(String const& path)
|
||||
{
|
||||
if (on_image_title_change)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue