Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought




XtGetGC(3Xt) XtGetGC(3Xt)
NAME XtGetGC, XtReleaseGC - get and release a sharable GC SYNOPSIS GC XtGetGC(w, value-mask, values) Widget w; XtGCMask value-mask; XGCValues * values; void XtReleaseGC(w, gc) Widget w; GC gc; DESCRIPTION The XtGetGC function returns a sharable, read-only graphics context (GC) structure. 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 value-mask provid- ed to determine which members of the GC a widget considers relevant. The value-mask is used only to tell the server which members should be filled in with widget data and which it should fill in with default values. For further informa- tion about value-mask and values, see XCreateGC in Xlib - C Language Interface. The XtReleaseGC function deallocates the specified shared GC. Arguments These functions accept the following arguments: gc Specifies the GC to be deallocated. values Specifies the actual values for this GC. value-mask Specifies the members for which values are speci- fied. w Specifies the widget. SEE ALSO X Toolkit Intrinsics - C Language Interface
Xlib - C Language Interface
November, 1990 1

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026