XtGetGC(Xt) X Version 11 (Release 5) 6 January 1993 XtGetGC(Xt) Name XtGetGC - obtain and destroy a sharable GC Syntax GC XtGetGC(w, value_mask, values) Widget w; XtGCMask value_mask; XGCValues *values; void XtReleaseGC(w, gc) Widget w; GC gc; Arguments gc Specifies the GC to be deallocated. values Specifies the actual values for this GC. valuemask Specifies which fields of the values are specified. w Specifies the widget. Description The XtGetGC function returns a sharable, read-only GC. The parameters to this function are the same as those for XCreateGC except that a widget is passed instead of a display. XtGetGC shares only GCs in which all values in the GC returned by XCreateGC are the same. In particular, it does not use the valuemask provided to determine which fields of the GC a widget considers relevant. The valuemask is used only to tell the server which fields should be filled in with widget data and which it should fill in with default values. For further information about valuemask and values, see XCreateGC(XS) in the Xlib - C Language X Interface. The XtReleaseGC function deallocates the specified shared GC. See also XCreateGC(XS) and XtAllocateGC(Xt). X Toolkit Intrinsics - C Language Interface Xlib - C Language X Interface