RE: Programming book for X?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> Knute Johnson wrote:
> > Can anybody suggest a good book to learn to write X windows 
> programs? 
> >  I've done a lot of C programming in the past but no C++ or any 
> > programming under Linux.
> >
> > Thanks,
> >
I did a google search on "xlib tutorial"
and found http://tronche.com/gui/x/xlib-tutorial/ plus a bunch
of other hits.

There are a series of layers when programming X and you have to
decide where to start.  At the bottom, there is Xlib.  All the
calls the various X levels use eventually go through Xlib to get
to the X server.  They are laid out to be called from straight C
and provide the basics, XOpenDisplay, XCreateSimpleWindow, XMapWindow,
XNextEvent, etc.  The reference for this is the O'Reilly Lib manuals (booksm #1 & #2).

Above that are the intrinsics.  They provide an object oriented interface
to X lib and provide a lot of helper routines to simplify and standardize
argument passing and other housekeeping tasks.  These are books #4 and #5.

Above that are the Motif widgets, and other high level widget sets.

Most of my personal experience has been with the low level X lib calls.

I put a sample program at http://www.styma.org/pixels.tar which has the calls 
to build a simple window and display the color map if you want to look at it.

Bob Styma


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux