- C++ Windows Programming
- Stefan Bj?rnander
- 184字
- 2021-07-14 10:03:20
Chapter 4. Working with Shapes and Figures
In this chapter, we develop a program capable of drawing lines, arrows, rectangles, and ellipses. The application can be viewed as a more advanced version of the circle application. Similar to the circle application, we have a list of figures and we catch the user's mouse actions. However, there are four different kinds of figures: lines, arrows, rectangles, and ellipses. They are defined in a class hierarchy that is similar to but more advanced than the hierarchy in the Tetris game. Moreover, we also introduce cut, copy, paste, cursor control, and registry handling:

The user can add new figures, move one or several figures, modify figures by grabbing their endpoints, mark and unmark figures by pressing the mouse button and the Ctrl key, and mark several figures by enclosing them by a rectangle. When a figure is marked, it becomes annotated with small black squares. The user can modify the shape of a figure by grabbing one of the squares. The user can also move a figure by grabbing some other part of the figure.
- 精通Nginx(第2版)
- Python 3.7網(wǎng)絡(luò)爬蟲快速入門
- 微信公眾平臺與小程序開發(fā):從零搭建整套系統(tǒng)
- JavaScript Unlocked
- Learning C++ Functional Programming
- Windows Server 2012 Unified Remote Access Planning and Deployment
- Mastering RStudio:Develop,Communicate,and Collaborate with R
- Advanced Oracle PL/SQL Developer's Guide(Second Edition)
- JavaScript應(yīng)用開發(fā)實踐指南
- 編程可以很簡單
- Windows Phone 8 Game Development
- Building Business Websites with Squarespace 7(Second Edition)
- 超好玩的Scratch 3.5少兒編程
- ASP.NET開發(fā)寶典
- Spring Boot從入門到實戰(zhàn)