XT FUNCTIONS XtGetGC(3xt)
NAME
XtGetGC, XtReleaseGC - obtain and destroy a sharable GC
SYNTAXcc [ flag... ] file... -lXt [ library... ]
GC XtGetGC(Widget w, XtGCMask value_mask, XGCValues
*values);void XtReleaseGC(Widget w, GC gc);
ARGUMENTS gc Specifies the GC to be deallocated. values Specifies the actual values for this GC.value_mask
Specifies which fields of the values are speci-
fied. 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, itdoes not use the value_mask provided to determine which
fields of the GC a widget considers relevant. Thevalue_mask 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 aboutvalue_mask and values, see XCreateGC in the Xlib - C
Language X Interface.The XtReleaseGC function deallocate the specified shared GC.
SEE ALSO
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes: X Version 11 Last change: libXt 1.0.8 1 XT FUNCTIONS XtGetGC(3xt)__________________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|___________________________________|
| Availability | x11/library/toolkit/libxt ||_____________________________|___________________________________|
| Interface Stability | Committed ||_____________________________|___________________________________|
| MT-Level | See XtToolkitThreadInitialize(3XT)|
|_____________________________|___________________________________|
X Version 11 Last change: libXt 1.0.8 2