Chapter 14. Program Flow

In this chapter

  • Processing Events

  • X Event Hooks

  • Next Steps

Chapter 13,"Application Structure," focused on structuring the application and creating the graphical user interface. This chapter explains in more depth the nature of event-driven programming and the interaction between the application and the X Window System.

When the Graphics Editor is built and executed from the source code presented in Chapter 13, control is quickly relinquished to the XtAppMainLoop function.

Beyond the creation of the graphical user interface and initialization of global variables for use during program execution, the program does not follow the conventional program flow that you might have experienced in the past.

After the XtAppMainLoop ...

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.