XtDestroyGC()XtDestroyGC()NameXtDestroyGC - Release 2 compatible function to free read-only GCs.
Synopsis
void XtDestroyGC(w, gc)
Widget w;
GC gc;
Inputs
w Specifies any object on the display for which the GC was cre‐
ated.
gc Specifies the GC to be deallocated.
AvailabilityXtDestroyGC() is superseded by XtReleaseGC().
DescriptionXtDestroyGC() deallocates a shared (read-only) Graphics Context. Ref‐
erences to sharable GCs are counted, and a free request is generated to
the server when the last user of a given GC destroys it.
Note that some earlier versions of XtDestroyGC() had only a gc argu‐
ment. Therefore, this function is not very portable. In addition,
XtDestroyGC() is only guaranteed to work properly if there is exactly
one open display in the application.
Usage
You should never use this function. Programs running under Release 3
and later should be converted to use XtReleaseGC().
See AlsoXtAllocateGC(1), XtGetGC(1), XtReleaseGC(1).
Xt - Graphics Context XtDestroyGC()