Chapter 15. Common Object Definition

In this chapter

  • Line Object Data Structure

  • Text Object Data Structure

  • Arc Object Data Structure

  • Common Object Data Structure

  • Next Steps

Following the detailed look provided in Chapter 14,"Program Flow," of the Graphics Editor program flow and, specifically, the X Event hooks important to the editor project, you are ready to advance the structure of the Graphics Editor. This chapter presents the common object definition from which all objects supported by the editor are created.


All the data structures introduced in this chapter are targeted for inclusion in the gxGraphics.h header file.

Chapter 9,"Object Bounds Checking," page 203, introduced the idea that the objects supported by the Graphics Editor are divided ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.