Chapter 17. Utilities and Tools

In this chapter

  • Common Object Creation

  • Creating a Graphics Context

  • Using the Cursor as State Indicator

  • Next Steps

Chapter 16presented functions used by the Graphics Editor that employ the common or generic features of the graphic objects.

In this chapter, I introduce and discuss utility routines necessary to manage the graphical user interface as well as behind-the-scenes tool functions.

Common Object Creation

As a software developer, code redundancy should set off sirens in your analytical mind. For that reason, when an object is created in the Graphics Editor, a central gx_create_obj routine is used to create the object and assign the default attributes of the object rather than allowing each of the object-specific ...

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.