MirBSD manpage: XtGetGC(3), XtReleaseGC(3)


XtGetGC(3Xt)              XT FUNCTIONS               XtGetGC(3Xt)

NAME

     XtGetGC, XtReleaseGC - obtain and destroy a sharable GC

SYNTAX

     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, 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 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

XFree86                   Version 4.5.0                         1

Generated on 2021-12-07 11:07:08 by $MirOS: src/scripts/roff2htm,v 1.103 2021/01/23 20:24:35 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2021 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.