Chapter 28. Extending the Graphics Editor

In this chapter

  • Attributes

  • Rotating Objects

  • Next Steps

The Graphics Editor project, although able to draw, move, scale, and delete objects, requires many more capabilities before it is considered complete.

This chapter introduces features that the project structure lends itself to but that are left for you to implement.

Attributes

The definition of the common object data structure in Chapter 15,"Common Object Definition" , provided fields within the structure to store the foreground and background colors as well as the line width and line style attributes of the editor objects.

These fields were included in the Save and Restore function of the editor application introduced in Chapter 19, in the section "Common ...

Get X Window Programming from Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.