Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

XtGetGC(3Xt)

Name

XtGetGC, XtReleaseGC − obtain and destroy a shareable GC

Syntax

GC XtGetGC(w, value_mask, values)
      Widget w;
      XtGCMask value_mask;
      XGCValues *values;

void XtReleaseGC(w, gc)
      Widget w;
      GC gc;

Arguments

gcSpecifies the GC to be deallocated. 

valuesSpecifies the actual values for this GC. 

value_maskSpecifies which fields of the values are specified. 

wSpecifies the widget. 

Description

The XtGetGC function returns a shareable, 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 value_mask provided to determine which fields of the GC a widget considers relevant. The value_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 about value_mask and values, see XCreateGC in the Guide to the Xlib Library. 

The XtReleaseGC function deallocates the specified shared GC.

See Also

Guide to the XUI Toolkit Intrinsics
Guide to the Xlib Library

Subroutines

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