[mitre.windows.x] extracting GC values

barras@sdimax2.mitre.org (Barrus) (03/14/91)

Is there any method in X-windows to extract the values,
such as pixel color and linewidth (etc..)  back out of a GC
type graphics context?  They have a generic routine for setting
all the values, and various routines to set individual values,
but I've yet to see a way to take just the GC resource and
get back the actual values that went into it.

I need this functionality to write alternate routines for
XDrawPoints, XDrawLines, etc that will emulate the same 
parameter format as normal Xlib routines, but redirect
the information elsewhere.

Any help will be greatly appreciated.
Thanks
  - Frank

jg@crl.dec.com (Jim Gettys) (03/14/91)

New routine in release 4: XGetGCValues
Scheifler + Gettys, 2nd edition, page 122-123.
				- Jim