Mercurial > projects > dstep
comparison dstep/applicationservices/colorsync/CMTypes.d @ 12:9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 03 Aug 2009 14:00:21 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
11:07194b026fa4 | 12:9f0b49a2f64e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Aug 1, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.applicationservices.colorsync.CMTypes; | |
8 | |
9 //import dstep.AvailabilityMacros; | |
10 import dstep.applicationservices.colorsync.CMBase; | |
11 import dstep.coreservices.CoreServices; | |
12 //import dstep.stddef; | |
13 //import dstep.sys.types; | |
14 | |
15 struct OpaqueCMProfileRef; | |
16 struct OpaqueCMWorldRef; | |
17 | |
18 alias int CMError; | |
19 alias OpaqueCMProfileRef* CMProfileRef; | |
20 alias OpaqueCMWorldRef* CMWorldRef; | |
21 alias uint CMDisplayIDType; | |
22 alias uint CMChromaticAdaptation; | |
23 alias CMFlattenProcPtr CMFlattenUPP; | |
24 alias CMBitmapCallBackProcPtr CMBitmapCallBackUPP; | |
25 alias CMConcatCallBackProcPtr CMConcatCallBackUPP; | |
26 alias CMProfileAccessProcPtr CMProfileAccessUPP; | |
27 | |
28 extern (C) | |
29 { | |
30 alias short function (int, long*, void*, void*) CMFlattenProcPtr; | |
31 alias ubyte function (int, void*) CMConcatCallBackProcPtr; | |
32 alias ubyte function (int, void*) CMBitmapCallBackProcPtr; | |
33 alias OSErr function (int command, int offset, int* size, void* data, void* refCon) CMProfileAccessProcPtr; | |
34 } | |
35 | |
36 enum | |
37 { | |
38 cmUseDefaultChromaticAdaptation = 0, | |
39 cmLinearChromaticAdaptation = 1, | |
40 cmVonKriesChromaticAdaptation = 2, | |
41 cmBradfordChromaticAdaptation = 3 | |
42 } | |
43 |