Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ubvax!igor!drk From: drk@igor.Rational.COM (David R. Kaelbling) Newsgroups: comp.windows.x Subject: How to make XClearRegion? Keywords: XClearArea,Regions Message-ID: <521@igor.Rational.COM> Date: 2 Feb 89 21:26:18 GMT Organization: Rational, Santa Clara, CA Lines: 18 I want to use XClearRegion. Since it doesn't exist, I'm soliciting suggestions on a good way to implement it myself on top of X. There is no way I can see to accurately query the contents of a Region (i.e., I can't find anything which decomposes a Region into Rects again), so I abandoned the simple "iterate over the contents and call XClearArea" approach. I'm looking at to creating a special GC for use with XSetRegion, but it isn't immediately obvious to me where to get all of information necessary (where do I get the window backgroud pixel/pixmap)? This doesn't seem like too unusal a thing to want, so I'm assuming I just missed the relevant section of TFM. Can anyone give me a clue? Thanks, David David Kaelbling (408) 496-3600 c/o Rational; 3320 Scott Boulevard; Santa Clara, CA 95054-3197 drk@Rational.COM, drk@igor.uu.net, ...!{uunet,ubvax,amdcad}!igor!drk