Path: utzoo!attcan!uunet!husc6!bloom-beacon!cwi.nl!guido From: guido@cwi.nl (Guido van Rossum) Newsgroups: comp.windows.x Subject: Re: inverting areas Message-ID: <8805191105.AA03190@piring.cwi.nl> Date: 19 May 88 12:05:46 GMT References: <19880518120052.7.RWS@KILLINGTON.LCS.MIT.EDU> Sender: daemon@bloom-beacon.MIT.EDU Organization: CWI (Centre for Mathematics and Computer Science), Amsterdam Lines: 16 I asked: >> 1) is it kosher to retrieve the fg and bg pixels using gc->values? Robert Scheifler replied: >No. The GC structure is supposed to be opaque, and is not guaranteed to >be identical in all implementations. Then perhaps the protocol and/or Xlib should be extended to allow retrieval of GC values. It strikes me as odd that I would have to maintain copies of information that's already stored somewhere (except for efficiency, but that's where Xlib's caching scheme should help, too). After all, there are primitives to get all the information you want about windows; why not about GC's ? -- Guido van Rossum, Centre for Mathematics and Computer Science (CWI), Amsterdam guido@piring.cwi.nl or mcvax!piring!guido or guido%piring.cwi.nl@uunet.uu.net