Home > Store

X Window Programming From Scratch

Register your product to gain access to bonus material or receive a coupon.

X Window Programming From Scratch

eBook (Adobe DRM)

  • Sorry, this book is no longer in print.
  • About Adobe DRM eBooks
  • This eBook requires the free Adobe® Digital Editions software.

    Before downloading this DRM-encrypted PDF, be sure to:


    • Install the free Adobe Digital Editions software on your machine. Adobe Digital Editions only works on Macintosh and Windows, and requires the Adobe Flash Player. Please see the official system requirements.
    • Authorize your copy of Adobe Digital Editions using your Adobe ID (select AdobeID as the eBook vendor). If you don't already have an Adobe ID, you can create one here.
Not for Sale

Description

  • Copyright 2003
  • Pages: 800
  • Edition: 1st
  • eBook (Adobe DRM)
  • ISBN-10: 0-7686-5657-5
  • ISBN-13: 978-0-7686-5657-2

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."

Sample Content

Table of Contents



Introduction.

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.

Decisions.

The if Statement. The else Statement. Types of Conditions. The if else Statement. The case Statement.

Loops.

The for Loop. The while Loop. The do while Loop.

Functions.

Declarations. Return Type. Function Name. Parameters. Definition. The return Statement.

Data.

Data Types. Next Steps.

3. A Word on C.

Hello World.

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.

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.