On Sun, 31 Mar 2002, Bobakitoo wrote:

> hi,
>       I whant to know how xfree is handling the window stack.
> Is it an tree list? array? In what source file sould i check?
> 
> That because i'm working on a gui inside an window to be use
> in games(but not limited to) for exemple. i have a lot of
> probleme whit my current desing. i belive xfree is using an
> fast and robust way to handle them.
> 
> Detailed technique and path to revelant source file is appreciate.
> 

   At a high level, the algorithms are straightforward, however,
there is alot of code dealing with cliplist math.  In X, a
Window has a pointer to its first (topmost) and last (bottommost) 
child.  Each window has a pointer to its next and previous sibling,
so it is a tree list.

xc/programs/Xserver/include/windowstr.h     WindowRec
xc/programs/Xserver/mi/miwindow.c           Most high level window code
xc/programs/Xserver/mi/miregion.c           Cliplist math

   People on this list know how this stuff works.  If you need
to do cliplist management you may want to steal the miregion code,
but you're probably better off doing the highlevel functionality
from scratch, using the way X does it only as a reference.  I expect
X11 has alot more functionality in there than you need, and it may
be difficult to "see" the basics in the code without alot of 
contemplation.


                        Mark.

_______________________________________________
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert

Reply via email to