Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtDestroyGC(3) — OSF1 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtGetGC(1)

XtReleaseGC(1)

 

Name

XtDestroyGC — Release 2 compatible function to free
              read-only GCs.

Synopsis

void XtDestroyGC(gc)

    GC gc;

Arguments

wSpecifies the widget. 

gcSpecifies the GC to be deallocated. 

Description

XtDestroyGC is superseded by XtReleaseGC.  XtDestroyGC deallocates a shared (read-only) Graphics Context.  References to shareable 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 argument.  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. 

Programs running under Release 3 and later should be converted to use XtReleaseGC. 

See Also

XtGetGC(1), XtReleaseGC(1). 

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