>    You should know that data, after all, you're the one who set it.
> That's why there are no functions to retrieve that or any other GC state.
> There is a copy of that info in the library but it's private to the
> library.  Xlib only keeps that info around so that it doesn't have
> to call the X-server every time you change something.  It buffers
> up state changes and then only flushes them when the GC is next
> used for something.  Its cache isn't end-user accessible.
    Glad to finally found someone who knows X11 up and down.
    Ok, here's the thing: I'm trying to port a GUI from Win32 GDI to X11.
Don't ask... ;-)
    I had a lot of problems with incompatibilities between the two and this
clipbox stuff is the latest. In Win32 there is a function called GetClipBox,
that does the following (quote from MSDN):

    'The GetClipBox function retrieves the dimensions of the tightest
bounding rectangle that can be drawn around the current visible area on the
device. The visible area is defined by the current clipping region or clip
path, as well as any overlapping windows.'

    Is there anything similar in X11? I mean some way to retrieve the
bounding rectangle of the region that must be updated/repainted/refreshed
after, let's say some window was moved from atop another and the later must
be redraw? (I hope this makes sense)

    The fact is that there are some major differences between the 2: in X11
drawing is done in a Drawable (a Window), while in Win32, the drawing is
done in a DC (device context) which is attached (or has attached) to a (a)
Window.
    What do you advice?

Dany.




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

Reply via email to