AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
WRASTOP ( 3T ) (AT&T UNIX PC only ) WRASTOP ( 3T ) aware of the problems associated with overlapping rectangles: the memory operations will be done front to back or back to front as necessary. The width and height parameters give the rectangle's width and height in pixels. The srcop (source operation) and dstop (destination operation) fields together determine the algorithm which will be applied to the two rectangles. The basic behavior of rastop conforms to the following vector description: dst = dstop( srcop(src,pattern) ) where srcop and dstop are vector functions. There are five source operations. SRCSRC is the identity function whose value is the unmodified source rectangle itself. SRCPAT's value is that of the "pattern" (see below) and bears no relationship to the source. SRCOR is the inclusive OR of the source and the pattern; SRCAND, the AND; SRCXOR, the exclusive OR. DSTSRC is the identity function, returning the result of the source operation unchanged. DSTAND is the AND of the destination with the result of the source, DSTOR is the inclusive OR, and DSRXOR the exclusive OR. DSTCAM AND's the one'scomplement of the source operation into the destination. DSTCAM is the inverse of DSTOR: where DSTOR would turn on pixels, DSTCAM will turn them off. The pattern field is required for SRCPAT, SRCAND, SRCOR, and SRCXOR operations only. It points to an array of 16 X 16 l pixels arranged as 16 consecutive shorts. As with source and destination rectangles, the LSB of the first short in the vector corresponds to the upper-left-hand pixel of the pattern. Patterns are automatically aligned with the destination. In addition to the wrastop function, there are four pre-defined patterns : patblack (all zeros), patwhite (all ones), patgray (halftone), and patltgray (light gray). To reference these patterns, the calling program should define these patterns as external unsigned short arrays (unsigned short patblack[ ]). If the pattern field is set to 0, the operation will take place as if patblack was specified. Note that wrastop always refreshes the specified window before executing to force any character operations to occur in correct time order. FILES fusr /include/sys/window .h SEE ALSO tam(3T), window(7). DIAGNOSTICS Wrastop returns 0 on success, -1 on failure with errno set to the error number. Any attempt to issue a wrastop call on a nonbitmap display will result in a return of -1 with errno left to its previous value. - 2-
INTRO ( 4) INTRO ( 4) NAME intro - introduction to file formats DESCRIPTION This section outlines the formats of various files. The C struct declarations for the file formats are given where applicable. Usually, these structures can be found in the directories /usr/include or jusr/include/sys. Files on the UNIX PC cannot be larger than 1 megabyte in size. References of the type name(lM) refer to entries found in Section 1M of the UNIX PC UNIX System Us er's Manual. - 1 -
- Page 981: SPUTL ( 3X ) SPUTL ( 3X ) NAME sput
- Page 985: STDI0 ( 3S ) ( AT&T UNIX PC Only )
- Page 989 and 990: STRING ( 3C ) STRING (3C) NAME strc
- Page 991 and 992: STRTOD (3C) STRTOD (3C) NAME strtod
- Page 993: STRTOL ( 3C ) STRTOL ( 3C ) NAME st
- Page 996 and 997: C) / I I I I I I I I I () �� /
- Page 998 and 999: n "--- --'•
- Page 1000 and 1001: TAM (3T) (AT&T UNIX PC only ) int w
- Page 1002 and 1003: TAM (3T) (AT&T UNIX PC only ) TAM(3
- Page 1004 and 1005: TAM (3T) wputc() wputs() wprintf()
- Page 1006 and 1007: TAM (3T) (AT&T UNIX PC only ) TAM(3
- Page 1008 and 1009: I I I I I I I II I I I I � r"j I
- Page 1010 and 1011: TMPNAM (3S) TMPNAM (3S) SEE ALSO cr
- Page 1012 and 1013: TRACK (3T) (AT&T UNIX PC only ) TRA
- Page 1015: TRIG ( 3M ) TRIG ( 3M) NAME sin, co
- Page 1018 and 1019: TSEARCH ( 3C ) TSEARCH ( 3C ) data
- Page 1021: TTYNAME ( 3C ) TTYNAME ( 3C ) NAME
- Page 1025 and 1026: UNGETC ( 3S ) UNGETC ( 3S ) NAME un
- Page 1027 and 1028: VPRINTF ( 3S ) VPRINTF ( 3S ) NAME
- Page 1029 and 1030: WIND ( 3T ) ( AT&T UNIX PC only ) W
- Page 1031: WRASTOP ( 3T ) ( AT&T UNIX PC only
- Page 1036 and 1037: A.OUT ( 4) A.OUT ( 4) data segment
- Page 1038 and 1039: A.OUT (4) A.OUT (4) char n_numaux;
- Page 1041 and 1042: ADF ( 4) (AT&T UNIX PC only ) ADF (
- Page 1043 and 1044: ADF ( 4 ) (AT&T UNIX PC only ) \ \
- Page 1045 and 1046: ADF ( 4) (AT&T UNIX PC only ) FORMA
- Page 1047 and 1048: ADF (4) (AT&T UNIX PC only ) ADF (4
- Page 1049 and 1050: ADF (4) (AT&T UNIX PC only ) ADF (
- Page 1051 and 1052: ADF ( 4) (AT&T UNIX PC only ) ADF (
- Page 1053 and 1054: ADF ( 4 ) (AT&T UNIX PC only ) Toke
- Page 1055 and 1056: AR( 4 ) AR ( 4) NAME ar - common ar
- Page 1057: CHECKLIST ( 4 ) CHECKLIST ( 4 ) NAM
- Page 1060 and 1061: I I I I I I II I I I I I I I I I I
- Page 1063 and 1064: Dffi ( 4 ) Dffi ( 4 ) NAME dir - fo
- Page 1065: FILEHDR (4) (not. on PDP-11) FILEHD
- Page 1068 and 1069: FONT ( 4) (AT&T UNIX PC only ) FONT
- Page 1070 and 1071: I�
- Page 1072 and 1073: FS (4) FS (4) S_type indicates the
- Page 1074 and 1075: (�
- Page 1076 and 1077: FSPEC ( 4) FSPEC ( 4) Several UNIX
- Page 1078 and 1079: GETTYDEFS ( 4) GETTYDEFS ( 4 ) sett
- Page 1080 and 1081: � , __
WRASTOP ( 3T ) (AT&T UNIX PC only ) WRASTOP ( 3T )<br />
aware of the problems associated with overlapping rectangles: the<br />
memory operations will be done front to back or back to front as<br />
necessary.<br />
The width and height parameters give the rectangle's width and<br />
height in pixels.<br />
The srcop (source operation) and dstop (destination operation)<br />
fields together determine the algorithm which will be applied to<br />
the two rectangles. The basic behavior of rastop conforms to the<br />
following vector description:<br />
dst = dstop( srcop(src,pattern) )<br />
where srcop and dstop are vector functions. There are five source<br />
operations. SRCSRC is the identity function whose value is the<br />
unmodified source rectangle itself. SRCPAT's value is that of the<br />
"pattern" (see below) and bears no relationship to the source.<br />
SRCOR is the inclusive OR of the source and the pattern;<br />
SRCAND, the AND; SRCXOR, the exclusive OR.<br />
DSTSRC is the identity function, returning the result of the<br />
source operation unchanged. DSTAND is the AND of the destination<br />
with the result of the source, DSTOR is the inclusive OR, and<br />
DSRXOR the exclusive OR. DSTCAM AND's the one'scomplement<br />
of the source operation into the destination.<br />
DSTCAM is the inverse of DSTOR: where DSTOR would turn on<br />
pixels, DSTCAM will turn them off.<br />
The pattern field is required for SRCPAT, SRCAND, SRCOR,<br />
and SRCXOR operations only. It points to an array of 16 X 16 l<br />
pixels arranged as 16 consecutive shorts. As with source and destination<br />
rectangles, the LSB of the first short in the vector<br />
corresponds to the upper-left-hand pixel of the pattern. Patterns<br />
are automatically aligned with the destination.<br />
In addition to the wrastop function, there are four pre-defined patterns<br />
: patblack (all zeros), patwhite (all ones), patgray (halftone),<br />
and patltgray (light gray). To reference these patterns,<br />
the calling program should define these patterns as external<br />
unsigned short arrays (unsigned short patblack[ ]).<br />
If the pattern field is set to 0, the operation will take place as if<br />
patblack was specified.<br />
Note that wrastop always refreshes the specified window before<br />
executing to force any character operations to occur in correct<br />
time order.<br />
FILES<br />
fusr /include/sys/window .h<br />
SEE ALSO<br />
tam(3T), window(7).<br />
DIAGNOSTICS<br />
Wrastop returns 0 on success, -1 on failure with errno set to the<br />
error number. Any attempt to issue a wrastop call on a nonbitmap<br />
display will result in a return of -1 with errno left to its<br />
previous value.<br />
- 2-