TRANLE@INTELLICORP.COM (Minh Tran-Le) (06/12/90)
I need a way to find out the line-width and the line-style and dashes-list that has been set into a GC. Is there any way to do that ? Thanks, Minh Tran-Le. arpanet: tranle@intellicorp.com uucp: ..sun!icmv!mtranle -------
rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (06/12/90)
XGetGCValues in R4 allows you to query most GC values, but not the dash list or the clip mask.
klee@wsl.dec.com (Ken Lee) (06/12/90)
In article <9006120731.AA01730@expo.lcs.mit.edu>, TRANLE@INTELLICORP.COM (Minh Tran-Le) writes: |> I need a way to find out the line-width and the line-style and dashes-list |> that has been set into a GC. Is there any way to do that ? Try the Xlib function XGetGCValues(). It is new for X11R4. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee
mo@wglen.UUCP (Dan Mo) (06/13/90)
When you use XCreateGC to create a gc, you have a returned pointer pointing to the gc's structure. You can use use this pointer to access all info about the gc. Dan ------------------------------------------------------------------------ | | | Dan Mo, mo@wglen.uucp | | Computer Scientist (R&D) ...!alberta!calgary!wglen!mo | | Willowglen Systems Ltd. | | #4 Manning Close N.E. Phone: (403)-272-1800 | | Calgary, Alberta Fax: (403)-272-2114 | | Canada T2E 7N5 | | | -------------------- Willowglen =SCADA= --------------------------------
rick@hanauma.stanford.edu (Richard Ottolini) (06/13/90)
In article <9006122247.AA28862@wglen> mo@wglen.UUCP (Dan Mo) writes: >When you use XCreateGC to create a gc, you have a returned pointer >pointing to the gc's structure. You can use use this pointer to >access all info about the gc. The contents of structures could change in future implementations of X, so this is not safe for long term software. Also some objects are stored in the server and only the ID is returned. I don't know if there are plans to do this with GCs.
marbru@auto-trol.UUCP (Martin Brunecky) (06/14/90)
In article <9006122247.AA28862@wglen> mo@wglen.UUCP (Dan Mo) writes: >When you use XCreateGC to create a gc, you have a returned pointer >pointing to the gc's structure. You can use use this pointer to >access all info about the gc. Is this a supported feature, or is this just the way the sample Xlib implementation (MIT) deals with GC caching ??? Can one expect _XGC structure to be available on multiple Xlib implementations ? (for example, DECwindows on VMS does not provide any _X definitions ... -) ~ -- =*= Opinions presented here are solely of my own and not those of Auto-trol =*= Martin Brunecky marbru@auto-trol.COM (303) 252-2499 {...}ncar!ico!auto-trol!marbru Auto-trol Technology Corp. 12500 North Washington St., Denver, CO 80241-2404
rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (06/14/90)
Is this a supported feature, or is this just the way the sample Xlib implementation (MIT) deals with GC caching ??? XGetGCValues is the supported mechanism. Poking inside a GC is not.