home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula
/
nebula.bin
/
SourceCode
/
AdobeExamples
/
NX_Dial
/
DialViewWraps.psw
< prev
next >
Wrap
Text File
|
1993-01-19
|
3KB
|
100 lines
/*
* (a) (C) 1990 by Adobe Systems Incorporated. All rights reserved.
*
* (b) If this Sample Code is distributed as part of the Display PostScript
* System Software Development Kit from Adobe Systems Incorporated,
* then this copy is designated as Development Software and its use is
* subject to the terms of the License Agreement attached to such Kit.
*
* (c) If this Sample Code is distributed independently, then the following
* terms apply:
*
* (d) This file may be freely copied and redistributed as long as:
* 1) Parts (a), (d), (e) and (f) continue to be included in the file,
* 2) If the file has been modified in any way, a notice of such
* modification is conspicuously indicated.
*
* (e) PostScript, Display PostScript, and Adobe are registered trademarks of
* Adobe Systems Incorporated.
*
* (f) THE INFORMATION BELOW IS FURNISHED AS IS, IS SUBJECT TO
* CHANGE WITHOUT NOTICE, AND SHOULD NOT BE CONSTRUED
* AS A COMMITMENT BY ADOBE SYSTEMS INCORPORATED.
* ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY
* OR LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO
* WARRANTY OF ANY KIND (EXPRESS, IMPLIED OR STATUTORY)
* WITH RESPECT TO THIS INFORMATION, AND EXPRESSLY
* DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR PARTICULAR PURPOSES AND NONINFRINGEMENT
* OF THIRD PARTY RIGHTS.
*/
/*
* DialViewWraps.psw
*
* Contains the wraps to draw the dial in several different ways.
*
* Version: 2.0
* Author: Ken Fromm
* History:
* 03-07-91 Added this comment.
*/
defineps PSWMarkTime ()
/StartTime realtime def
endps
defineps PSWReturnTime (|int *ElapsedTime)
realtime StartTime sub
ElapsedTime
endps
/* Procedures that are called often are defined and bound to save operator look up time. */
defineps PSWDefs ()
/ML { % X1 Y1 X0 Y0
moveto lineto
} bind def
/RML { % X1 Y1 X0 Y0 Ang
rotate moveto lineto
} bind def
/RUA { % [Pts (Ops)] Ang
rotate uappend
} bind def
endps
defineps PSWEraseView (float BGColor, X, Y, W, H)
BGColor setgray X Y W H rectfill
endps
defineps PSWSetColorWidth (float Color, Width)
Color setgray Width setlinewidth
endps
defineps PSWMakeLine (float X0, Y0, X1, Y1)
X1 Y1 X0 Y0 ML
endps
defineps PSWMakeCircle (float X, Y, Rad)
X Rad add Y moveto X Y Rad 0 360 arc
endps
defineps PSWFillPath (float Color)
Color setgray fill
endps
defineps PSWRotate_MakeLine (float Ang, X0, Y0, X1, Y1)
X1 Y1 X0 Y0 Ang RML
endps
defineps PSWPlaceName(char *str)
/str
endps
defineps PSWDrawUserPath (char *str)
str ustroke
endps