[comp.sys.sun] Questions on Pixwin Routine pw_line

bsperr1@tycho.arpa (Bret Sperry) (12/13/88)

I am trying to draw thick line in a canvas window and came across the
pw_line routine described on page 96 of the Sunview Programmer's Guide.
Unfortunately no supporting documentation has been found for the routine.
For such items as the brush and tex options.  The structures for these
have been looked at, but no sense as to what values to input or even what
tex option needs for input can be discerned.

The Pixrect Reference Manual had no examples or helpful descriptions that
could be found.  If you could provide useful examples of the pw_line
routine and what valid inputs are availbe for brush and tex, it would be
much apreciated.

	-BS-

[[ There is a program in the archives that provides a thorough example of
using pw_line.  It is in the "sun-source" section and is called
"linedemo.shar".  It is 12447 bytes in length and can be retrieved via
anonymous FTP from the host "titan.rice.edu" or via the archive server.
For more information about the archive server, send a mail message
containing the word "help" to the address "archive-server@rice.edu".
--wnl ]]

barry@ucbvax.berkeley.edu (barry klawans) (12/21/88)

There is documentation on the pw_line routine, or rather the Pixrect
version of it, pr_line.  The usage is the same so documentation for one
version can be use for the other.

Unfortunately the documentation may be hard to find.  The only
documentation that I know of is in the addenda to the Pixrect Reference
Manual that was part of chapter 6 of the Release 3.2 manual.  (The pr_line
function was introduced as part of the 3.2 release, and did non exist when
the original Pixrect Reference Manual was printed.  Thats a pretty good
excuse for leaving it out ;^) )  I do not have any recent manuals handy,
but I would hope that the info was incorporated into post-3.2 versions of
the Pixrect Manual.  If it is not in the more recent manuals and people
need it I could post it to this news group.

Barry Klawans
Any opinions given are mine, not my company's.  They don't want them.
UUCP: {mtxinu,sun,pyramid,pacbell}!sybase!barry