StdSystem.icl 1.2 KB
Newer Older
Peter Achten's avatar
Peter Achten committed
1
2
3
4
5
6
7
8
implementation module StdSystem


//	Clean Object I/O library, version 1.2


import	StdString, StdReal, StdInt, StdTuple
import	ossystem
9
from	StdIOBasic	import Size
Peter Achten's avatar
Peter Achten committed
10
11
12
13
14
15
16
17
18
19
20
21
22


//	System dependencies concerning the file system

dirseparator :: Char
dirseparator = OSdirseparator			// Separator between folder- and filenames in a pathname

homepath :: !String -> String
homepath fname = OShomepath fname

applicationpath :: !String -> String
applicationpath fname = OShomepath fname

23
// MW11++
24
newlineChars :: !String
25
newlineChars = OSnewlineChars
Peter Achten's avatar
Peter Achten committed
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58

//	System dependencies concerning the time resolution

ticksPerSecond :: Int
ticksPerSecond = OStickspersecond


//	System dependencies concerning the screen resolution
mmperinch :== 25.4

hmm :: !Real -> Int
hmm mm = OSmmToHPixels mm

vmm :: !Real -> Int
vmm mm = OSmmToVPixels mm

hinch :: !Real -> Int
hinch inch = OSmmToHPixels (inch*mmperinch)

vinch :: !Real -> Int
vinch inch = OSmmToVPixels (inch*mmperinch)

maxScrollWindowSize :: Size
maxScrollWindowSize
	= {w=w,h=h}
where
	(w,h)	= OSmaxScrollWindowSize

maxFixedWindowSize :: Size
maxFixedWindowSize
	= {w=w,h=h}
where
	(w,h)	= OSmaxScrollWindowSize
59
60

// MW11++
61
printSetupTypical :: Bool
62
printSetupTypical = OSprintSetupTypical