henry was once rumoured to have said:
> Dear List :
>
> There is a picture of stucture in my mind :
>
> gnome,kde , -----> windows manager ,App
> |
> gtk,xt,motif -----> (higher-level) programming interface
> |
> Xlib ------> (lower-level) programming interface
> |
> video drivers
>
> Is the picture as above is right ?
Vaugely Correct.
the bottow bit is more like
XLib
|
X11 Protocol
via Unix Domain Sockets
or TCP/IP
|
v
X Server
|
v
Hardware
> if so,
> Could you linux-hobbists tell me where can I find source of Xlib ?
> or by ? keyword ,like xxx.c
"Don't bother".
Xlib is a large and complicated beast. Unless you have a lot of time
free, or are insanely brave, I suggest that you avoid dealing with it
directly.
Its source-code is a standard part of the X11R6 source distribution,
and hence can be found in the XFree86 Source Code. Its exact location
in that tree is left as an exercise to the reader.
If your desire to learn how to program using Xlib, you should refer to
souce code from simple X11 programs, the X11 programming manuals, and
to any XLib tutorial material you can find. (There is a book about
XLib and Motif programming by Jan Newmarch which I learnt the basics
of XLib programming from)
C.
--
--==============================================--
Crossfire | This email was brought to you
[EMAIL PROTECTED] | on 100% Recycled Electrons
--==============================================--
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug