XGContextFromGC() XGContextFromGC()
Name
XGContextFromGC - obtain the GContext (resource ID) associated with the specified graphics context.
Synopsis
GContext XGContextFromGC(gc)
GC gc;
Arguments
gc Specifies the graphics context of the desired resource ID.
Returns
The GContext.
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
XDefaultGC(), XChangeGC(), XCopyGC(), XCreateGC(), XFreeGC(), XSetArcMode(), XSetBackground(), XSetClipMask(), XSetClipOrigin(), XSet-
ClipRectangles(), XSetDashes(), XSetFillRule(), XSetFillStyle(), XSetForeground(), XSetFunction(), XSetGraphicsExposures(), XSetLineAt-
tributes(), XSetPlaneMask(), XSetState(), XSetStipple(), XSetSubwindowMode(), XSetTSOrigin().
Xlib - Graphics Context XGContextFromGC()