Re: learning X programming



Allan Adler writes:

I have the following documents:

(1) Xlib - C Language X Interface
X Consortium Standard
X Version 11, Release 6.4
(2) X Toolkit Intrinsics -- C Language Interface
X Window System
X Version 11, Release 6.4
First Revision - April 1994

The former is 466 pages, the latter about 291 pages. Which of them
should I read first?

Neither. They all describe fairly low-level aspects of X. You will need to spend the rest of your life writing anything useful, at this level.

If there is something I should read before either of them, which is
probably likely, that would be good to know. Also, neither of them
seems to spend any time on programming examples. A source that shows
how to get started with X programming under Linux would also be welcome.

Most likely I would be doing this in C, but I also have my eye on the

For C, the practical choice would be Gnome. Look for books about GTK programming. With C++, another choice is the Qt toolkit, although personally I prefer GTK.


Attachment: pgpHQ3DMbR3fi.pgp
Description: PGP signature



Relevant Pages

  • Re: learning X programming
    ... X Toolkit Intrinsics -- C Language Interface ... Look for books about GTK ... I've seen programs in C that work directly with ...
    (comp.os.linux.misc)
  • Re: learning X programming
    ... X Toolkit Intrinsics -- C Language Interface ... Those books would be appropriate if you wanted to design an X ... server or a GUI toolkit (like GTK or QT) from scratch. ...
    (comp.os.linux.misc)