Critical Requirements
The critical requirements for this project include constructing a framework for manipulating objects on the screen, including detecting mouse events on the objects, deleting objects and creating copies of objects. The current framework provides a way to specify rectangles, ovals, hearts and images, but the approach can accommodate other shapes and this is an important lesson of the chapter.
The objective is for the drag and drop operations to be reasonably precise: not merely moving something from one region of the window to another. I will re-visit this topic in the Chapters 8 and 9 on making jigsaw puzzles.
I also made the decision to control the look of the cursor. The cursor when the mouse is not on the canvas is the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access