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

PixelPaint: Add GuideTool for editing Guides

This patch adds the logic for the GuideTool. Pulling in from outside the
image creates a new Guide, moving a Guide outside of the image deletes
it and a Guide can be deleteted via the context menu.
A Guide is considered clicked when the cursor is less than 20 pixels
away from the line.
This commit is contained in:
Tobias Christiansen 2021-08-05 14:57:38 +02:00 committed by Ali Mohammad Pur
parent d4cf4b74c1
commit 7923929a4d
3 changed files with 171 additions and 0 deletions

View file

@ -17,6 +17,7 @@ set(SOURCES
CreateNewLayerDialog.cpp
EllipseTool.cpp
EraseTool.cpp
GuideTool.cpp
Image.cpp
ImageEditor.cpp
Layer.cpp