XGContextFromGC − obtain the GContext (resource ID) associated with the specified graphics context.
Synopsis
GContext XGContextFromGC(gc)
GC gc;
Arguments
gcSpecifies the graphics context of the desired resource ID.
Description
XGContextFromGC() extracts the resource ID from the GC structure. The GC structure is Xlib’s local cache of GC values and contains a field for the GContext ID. This function is essentially a macro that accesses this field, since the GC structure is intended to be opaque. A GContext is needed to set a field of the XVisualInfo structure prior to calling XGetVisualInfo().
See Also
DefaultGC(), XChangeGC(), XCopyGC(), XCreateGC(), XFreeGC(), XSetArcMode(), XSetBackground(), XSetClipMask(), XSetClipOrigin(), XSetClipRectangles(), XSetDashes(), XSetFillRule(), XSetFillStyle(), XSetForeground(), XSetFunction(), XSetGraphicsExposures(), XSetLineAttributes(), XSetPlaneMask(), XSetState(), XSetStipple(), XSetSubwindowMode(), XSetTSOrigin().
Copyright O’Reilly & Assoc. —