Code

reenable buil inkview on windows
[inkscape.git] / src / unit-constants.h
1 #ifndef INKSCAPE_UNIT_CONSTANTS_H
2 #define INKSCAPE_UNIT_CONSTANTS_H
4 // 72 points per inch divided by the SVG-recommended value of 90 pixels per inch for computer screen
5 // For now it is constant throughout Inkscape, later we may make it changeable.
6 // Ideally this should be the only place to change it, but this is not guaranteed (be careful!)
7 #define DEVICESCALE 0.8    
9 #define PT_PER_IN 72.0
10 #define PT_PER_PX DEVICESCALE
11 #define PX_PER_PT (1/DEVICESCALE)
12 #define PX_PER_IN (PT_PER_IN / PT_PER_PX)
13 #define M_PER_IN 0.0254
14 #define M_PER_PX (M_PER_IN / PX_PER_IN)
15 #define CM_PER_IN 2.54
16 #define MM_PER_IN 25.4
17 #define MM_PER_MM 1.0
18 #define MM_PER_CM 10.0
19 #define MM_PER_M 1000.0
20 #define IN_PER_PT (1 / PT_PER_IN)
21 #define IN_PER_PX (1 / PX_PER_IN)
22 #define IN_PER_CM (1 / CM_PER_IN)
23 #define IN_PER_MM (1 / MM_PER_IN)
24 #define PT_PER_CM (PT_PER_IN / CM_PER_IN)
25 #define PX_PER_CM (PX_PER_IN / CM_PER_IN)
26 #define M_PER_PT (M_PER_IN / PT_PER_IN)
27 #define PT_PER_M (PT_PER_IN / M_PER_IN)
28 #define PX_PER_M (PX_PER_IN / M_PER_IN)
29 #define CM_PER_PT (CM_PER_IN / PT_PER_IN)
30 #define CM_PER_PX (CM_PER_IN / PX_PER_IN)
31 #define MM_PER_PT (MM_PER_IN / PT_PER_IN)
32 #define PT_PER_MM (PT_PER_IN / MM_PER_IN)
33 #define PX_PER_MM (PX_PER_IN / MM_PER_IN)
34 #define MM_PER_PX (MM_PER_IN / PX_PER_IN)
35 #define PT_PER_PT 1.0
36 #define IN_PER_IN 1.0
37 #define PX_PER_PX 1.0
39 #endif /* !INKSCAPE_UNIT_CONSTANTS_H */