Appendix B. Application Layout Code Listing

This appendix provides the complete source code listing from Chapter 6,"Components of an X Window Application."

The code is sufficient to create the initial layout of the Graphics Editor project. The intent is to

  • Illustrate proper coding structure and C syntax

  • Introduce the Graphics Editor application layout

  • Show concise modular programming techniques

  • Provide examples of X Toolkit Intrinsics programming

Figure B.1 shows the code structure as captured from my development environment.

Project directory structure.

Figure B.1. Project directory structure.

The directory 2d-editor is the root directory for the project; it contains a source directory ...

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.