Adobe® Digital Editions software.This eBook requires the free
Before downloading this DRM-encrypted PDF, be sure to:
X Window Programming From Scratch shows how to create a graphical user interface and accomplish graphic rendering using the X Window System software. It offers a unique approach to skill development by leading you through basic to very advanced concepts. This book provides a guide to the Linux operating system for application development, step-by-step instruction to the correct usage and syntax of C, a comprehensive introduction of the X Window System for interface creation and graphic rendering, and a complete structured project to "learn by doing."
Section One: Starting Points.
I. ABSOLUTE ZERO.1. UNIX for Developers.
The man Command. Organization and Navigation.
Directories. Permissions. chmod. The cd Command.
The C Compiler. Object Files. Source Files. The vi Editor. The make Utility.
The cc Command. Makefile.
System Tools and Useful Commands.
grep, Pipes, Redirection, and more. The find Command.
Next Steps.2. Programming Constructs.
The if Statement. The else Statement. Types of Conditions. The if else Statement. The case Statement.
The for Loop. The while Loop. The do while Loop.
Declarations. Return Type. Function Name. Parameters. Definition. The return Statement.
Data Types. Next Steps.3. A Word on C.
Comment Tokens. The Function main. Code Bodies. Variable Scope. Built-In Functions. Memory Management. Dynamic Memory Allocation. Memory Leaks. Definitions and Macros.
Conclusion. Next Steps.
II. THE PIECES OF X.4. Windowing Concepts.
Origins of the X Window System. The Pieces of X.
Client/Server Model. Window Hierarchy.
Next Steps.5. Widget Sets.
The Power and Convenience of Using Widget Sets. The Athena Widget Set.
The Core Widget. Widgets That Manage Other Widgets. The Motif Widgets.
Next Steps.6. Components of an X Window Application.
Connecting to the X Server.
Employing Widget Resources Using Variable Argument Lists.
Creating the Application Interface.
Creating Buttons. Creating Pixmap Icons. Assigning Actions.
Managing Windows. Processing Events. Summary. Next Steps.7. Xlib Graphic Primitives.
The Graphics Context.
The GC Function. GCForeground and GCBackground. GCLineWidth. GCTile.
Graphic Primitive Functions.
XDrawPoint. XDrawLine. XDrawRectangle. XDrawArc. Filled Graphics.