Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!ucsd!ucbvax!decwrl!jumbo!gvr From: gvr@jumbo.dec.com (Guido van Rossum) Newsgroups: comp.windows.x Subject: Re: foreground from gc Message-ID: <13357@jumbo.dec.com> Date: 24 Sep 88 23:52:16 GMT References: <8809150443.AA14400@zaphod.uchicago.edu> Reply-To: gvr@jumbo.UUCP (Guido van Rossum) Organization: DEC Systems Research Center, Palo Alto Lines: 13 In article <8809150443.AA14400@zaphod.uchicago.edu> ed%zaphod@GARGOYLE.UCHICAGO.EDU (Ed Friedman) writes: > >Is there any way to find out what the current values of foreground and >background are in a gc? I know how to set these values, but not how >to get them. I have been told that this is not the case. If you look at the header files you'll see that the information is available in the GC cache, but the contents of this cache is not part of the Xlib specs and you should not depend upon it. AI think this is unfortunate, but you'll have to keep track of what you do to a GC yourself. --Guido van Rossum, CWI