🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x.pex
Article #169

Re: Drawing into DrawingArea widget

#169
From: Rich Thomson
Date: Fri, 06 Nov 1992 22:10
61 lines
2658 bytes
In article <100874@bu.edu>
	kiki@bass.bu.edu (Keith Baccki) writes:
>P.S. It works with XCreateGC, but to be consistent I tried using
>     the Xt version - however, I couldn't find it in out Xt ref.
>     manual. What's the proper syntax?

The two calls I found in my Xt man pages are XtGetGC and XtReleaseGC.

XtGetGC(3Xt)        RISC/os Reference Manual         XtGetGC(3Xt)

NAME
     XtGetGC, XtReleaseGC - obtain and destroy a sharable GC

SYNTAX
     GC XtGetGC(w, value mask, values)
           Widget w;
           XtGCMask value mask;
           XGCValues *values;

     void XtReleaseGC(w, gc)
           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

                         Printed 11/6/92  1 September 1988 Page 1

-- 
		      Don't blame me; I voted Libertarian
Disclaimer: I speak for myself, except as noted; Copyright 1992 Rich Thomson
UUCP: ...!uunet!dsd.es.com!rthomson			Rich Thomson
Internet: rthomson@dsd.es.com	IRC: _Rich_		PEXt Programmer
Technical Details
Message-ID: <1992Nov6.221031.11491@dsd.es.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!orca!mesa!rthomson
References: <100607@bu.edu> <1992Nov6.011714.21164@colorado.edu> <100874@bu.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.x.pex
Path: arc1-ca.pugleaf.net!sparky!uunet!orca!mesa!rthomson
From: rthomson@mesa.dsd.es.com (Rich Thomson)
Subject: Re: Drawing into DrawingArea widget
Message-ID: <1992Nov6.221031.11491@dsd.es.com>
Sender: usenet@dsd.es.com
Nntp-Posting-Host: 130.187.85.21
Reply-To: rthomson@dsd.es.com (Rich Thomson)
Organization: Design Systems Division, Evans & Sutherland, SLC, UT
References: <100607@bu.edu> <1992Nov6.011714.21164@colorado.edu> <100874@bu.edu>
Date: Fri, 6 Nov 92 22:10:31 GMT
Lines: 61