NEURON
coord.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 1987, 1988, 1989, 1990, 1991 Stanford University
3  * Copyright (c) 1991 Silicon Graphics, Inc.
4  *
5  * Permission to use, copy, modify, distribute, and sell this software and
6  * its documentation for any purpose is hereby granted without fee, provided
7  * that (i) the above copyright notices and this permission notice appear in
8  * all copies of the software and related documentation, and (ii) the names of
9  * Stanford and Silicon Graphics may not be used in any advertising or
10  * publicity relating to the software without the specific, prior written
11  * permission of Stanford and Silicon Graphics.
12  *
13  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
16  *
17  * IN NO EVENT SHALL STANFORD OR SILICON GRAPHICS BE LIABLE FOR
18  * ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19  * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20  * WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21  * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
22  * OF THIS SOFTWARE.
23  */
24 
25 /*
26  * Coordinates for graphics allocation and rendering.
27  */
28 
29 #ifndef iv_coord_h
30 #define iv_coord_h
31 
32 #include <InterViews/enter-scope.h>
33 
34 typedef float _lib_iv(Coord);
35 typedef int _lib_iv(IntCoord);
36 typedef int _lib_iv(PixelCoord);
37 
38 /*
39  * Should be a static const float, but some compilers don't
40  * do a very good job on that.
41  */
42 #define fil 10e6
43 
44 /*
45  * Old definitions
46  */
47 typedef int _lib_iv2_6(Coord);
48 
49 extern double inch, inches, cm, mm, point, points;
50 static const int pixels = 1;
51 
52 #endif
#define PixelCoord
Definition: _defines.h:25
#define IntCoord
Definition: _defines.h:24
#define Coord
Definition: _defines.h:19
double inch
int _lib_iv2_6(Coord)
Definition: coord.h:47
double mm
Definition: coord.h:49
float _lib_iv(Coord)
Definition: coord.h:34
static const int pixels
Definition: coord.h:50
double cm
Definition: coord.h:49
double point
Definition: coord.h:49
double inches
Definition: coord.h:49
double points
Definition: coord.h:49