ed%zaphod@GARGOYLE.UCHICAGO.EDU (Ed Friedman) (09/15/88)
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. Ed Friedman ed@zaphod.uchicago.edu friedman@uchicago.bitnet
swick@athena.mit.EDU (Ralph R. Swick) (09/15/88)
Date: Wed, 14 Sep 88 23:43:58 CDT From: ed%zaphod@gargoyle.uchicago.edu (Ed Friedman) Is there any way to find out what the current values of foreground and background are in a gc? No, not in general. The Protocol does not support querying the contents of a gc.
gvr@jumbo.dec.com (Guido van Rossum) (09/25/88)
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