1 #include <bindings.dsl.h>
2 #include <CoreServices/CoreServices.h>
4 module Bindings.CoreServices.CarbonCore.MacTypes where
14 #starttype struct wide
19 #starttype struct UnsignedWide
28 # synonym_t SInt64, <wide>
29 # synonym_t UInt64, <UnsignedWide>
33 #synonym_t FixedPtr, Ptr <Fixed>
35 #synonym_t FractPtr, Ptr <Fract>
36 #integral_t UnsignedFixed
37 #synonym_t UnsignedFixedPtr, Ptr <UnsignedFixed>
38 #integral_t ShortFixed
39 #synonym_t ShortFixedPtr, Ptr <ShortFixed>
41 #synonym_t Float32, CFloat
42 #synonym_t Float64, CDouble
44 #starttype struct Float80
46 # array_field man, <UInt16>
49 #starttype struct Float96
50 # array_field exp, <SInt16>
51 # array_field man, <UInt16>
54 #starttype struct Float32Point
59 #synonym_t Ptr , Ptr CChar
60 #synonym_t Handle, Ptr <Ptr>
65 #synonym_t LogicalAddress , Ptr ()
66 #synonym_t ConstLogicalAddress, Ptr ()
67 #synonym_t PhysicalAddress , Ptr ()
68 #synonym_t BytePtr , Ptr <UInt8>
70 #integral_t ByteOffset
72 #synonym_t AbsoluteTime, <UnsignedWide>
73 #integral_t OptionBits
76 #integral_t ScriptCode
78 #integral_t RegionCode
79 #integral_t FourCharCode
82 #synonym_t OSTypePtr , Ptr <OSType>
83 #synonym_t ResTypePtr, Ptr <ResType>
87 #callback ProcPtr, IO CLong
88 #callback Register68kProcPtr, IO ()
91 # error CFM Carbon is not supported.
93 # synonym_t UniversalProcPtr , <ProcPtr>
96 #synonym_t ProcHandle , Ptr <ProcPtr>
97 #synonym_t UniversalProcHandle, Ptr <UniversalProcPtr>
99 #synonym_t PRefCon, Ptr ()
102 # synonym_t URefCon, Ptr ()
103 # synonym_t SRefCon, Ptr ()
112 #num kVariableLengthArray
115 #integral_t UnicodeScalarValue
116 #integral_t UTF32Char
118 #integral_t UTF16Char
120 #synonym_t UniCharPtr, Ptr <UniChar>
121 #integral_t UniCharCount
122 #synonym_t UniCharCountPtr , Ptr <UniCharCount>
123 #synonym_t Str255 , Ptr CUChar
124 #synonym_t Str63 , Ptr CUChar
125 #synonym_t Str32 , Ptr CUChar
126 #synonym_t Str31 , Ptr CUChar
127 #synonym_t Str27 , Ptr CUChar
128 #synonym_t Str15 , Ptr CUChar
129 #synonym_t Str32Field , Ptr CUChar
130 #synonym_t StrFileName , <Str63>
131 #synonym_t StringPtr , Ptr CUChar
132 #synonym_t StringHandle , Ptr <StringPtr>
133 #synonym_t ConstStringPtr , Ptr CUChar
134 #synonym_t ConstStr255Param, Ptr CUChar
135 #synonym_t ConstStr63Param , Ptr CUChar
136 #synonym_t ConstStr32Param , Ptr CUChar
137 #synonym_t ConstStr31Param , Ptr CUChar
138 #synonym_t ConstStr27Param , Ptr CUChar
139 #synonym_t ConstStr15Param , Ptr CUChar
140 #synonym_t ConstStrFileNameParam, <ConstStr63Param>
142 #cinline StrLength, <ConstStr255Param> -> IO CUChar
144 #starttype struct ProcessSerialNumber
145 # field highLongOfPSN, <UInt32>
146 # field lowLongOfPSN , <UInt32>
148 #synonym_t ProcessSerialNumberPtr, Ptr <ProcessSerialNumber>
150 #starttype struct Point
154 #synonym_t PointPtr, Ptr <Point>
156 #starttype struct Rect
158 # field left , CShort
159 # field bottom, CShort
160 # field right , CShort
162 #synonym_t RectPtr, Ptr <Rect>
164 #starttype struct FixedPoint
169 #starttype struct FixedRect
170 # field top , <Fixed>
171 # field left , <Fixed>
172 # field bottom, <Fixed>
173 # field right , <Fixed>
176 #integral_t CharParameter
187 #integral_t StyleParameter
188 #synonym_t StyleField, <Style>
190 #synonym_t TimeValue , <SInt32>
191 #synonym_t TimeScale , <SInt32>
192 #synonym_t CompTimeValue, <wide>
193 #synonym_t TimeValue64 , <SInt64>
195 #opaque_t TimeBaseRecord
196 #synonym_t TimeBase, Ptr <TimeBaseRecord>
198 #starttype TimeRecord
199 # field value, <CompTimeValue>
200 # field scale, <TimeScale>
201 # field base , <TimeBase>
204 #starttype struct NumVersion
205 # field majorRev , <UInt8>
206 # field minorAndBugRev, <UInt8>
207 # field stage , <UInt8>
208 # field nonRelRev , <UInt8>
216 #starttype union NumVersionVariant
217 # union_field parts, <NumVersion>
218 # union_field whole, <UInt32>
220 #synonym_t NumVersionVariantPtr , Ptr <NumVersionVariant>
221 #synonym_t NumVersionVariantHandle, Ptr <NumVersionVariantPtr>
223 #starttype struct VersRec
224 # field numericVersion, <NumVersion>
225 # field countryCode , CShort
226 # field shortVersion , <Str255>
227 # field reserved , <Str255>
229 #synonym_t VersRecPtr , Ptr <VersRec>
230 #synonym_t VersRecHndl, Ptr <VersRecPtr>
232 #synonym_t Byte , <UInt8>
233 #synonym_t SignedByte , <SInt8>
234 #synonym_t WidePtr , Ptr <wide>
235 #synonym_t UnsignedWidePtr, Ptr <UnsignedWide>
236 #synonym_t extended80 , <Float80>
237 #synonym_t extended96 , <Float96>
238 #synonym_t VHSelect , <SInt8>
240 #ccall Debugger , IO ()
241 #ccall DebugStr , <ConstStr255Param> -> IO ()
242 #ccall SysBreak , IO ()
243 #ccall SysBreakStr , <ConstStr255Param> -> IO ()
244 #ccall SysBreakFunc, <ConstStr255Param> -> IO ()