Mercurial > projects > dstep
annotate dstep/applicationservices/ats/ATSLayoutTypes.d @ 27:57371c29ef73 default tip
ObjcWrap is now automatically mixed in. Added support for building as a dylib with DMD.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Fri, 09 Apr 2010 23:00:22 +0200 |
parents | 9f0b49a2f64e |
children |
rev | line source |
---|---|
12
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
1 /** |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
3 * Authors: Jacob Carlborg |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
4 * Version: Initial created: Aug 1, 2009 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
6 */ |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
7 module dstep.applicationservices.ats.ATSLayoutTypes; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
8 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
9 //import dstep.AvailabilityMacros; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
10 import dstep.applicationservices.ats.ATSTypes; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
11 import dstep.applicationservices.ats.SFNTLayoutTypes; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
12 import dstep.coreservices.CoreServices; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
13 import dstep.internal.Version; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
14 import dstep.internal.Types; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
15 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
16 struct ATSGlyphVector; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
17 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
18 alias uint ATSULayoutOperationSelector; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
19 alias uint ATSULayoutOperationCallbackStatus; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
20 alias uint ATSLineLayoutOptions; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
21 alias uint ATSStyleRenderingOptions; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
22 alias uint ATSGlyphInfoFlags; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
23 alias ATSGlyphVector* ATSULineRef; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
24 alias ATSUDirectLayoutOperationOverrideProcPtr ATSUDirectLayoutOperationOverrideUPP; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
25 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
26 extern (C) |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
27 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
28 alias int function (uint, ATSULineRef, uint, void*, ATSULayoutOperationCallbackStatus*) ATSUDirectLayoutOperationOverrideProcPtr; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
29 } |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
30 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
31 enum |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
32 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
33 kATSUseGlyphAdvance = 0x7FFFFFFF, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
34 kATSUseLineHeight = 0x7FFFFFFF, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
35 kATSNoTracking = cast(c_long)0x80000000 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
36 } |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
37 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
38 enum |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
39 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
40 kATSUseCaretOrigins = 0, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
41 kATSUseDeviceOrigins = 1, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
42 kATSUseFractionalOrigins = 2, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
43 kATSUseOriginFlags = 3 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
44 } |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
45 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
46 enum |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
47 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
48 kATSULayoutOperationNone = 0x00000000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
49 kATSULayoutOperationJustification = 0x00000001, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
50 kATSULayoutOperationMorph = 0x00000002, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
51 kATSULayoutOperationKerningAdjustment = 0x00000004, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
52 kATSULayoutOperationBaselineAdjustment = 0x00000008, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
53 kATSULayoutOperationTrackingAdjustment = 0x00000010, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
54 kATSULayoutOperationPostLayoutAdjustment = 0x00000020, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
55 kATSULayoutOperationAppleReserved = cast(uint) 0xFFFFFFC0 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
56 } |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
57 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
58 enum |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
59 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
60 kATSULayoutOperationCallbackStatusHandled = 0x00000000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
61 kATSULayoutOperationCallbackStatusContinue = 0x00000001 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
62 } |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
63 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
64 enum |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
65 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
66 kATSLineNoLayoutOptions = 0x00000000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
67 kATSLineIsDisplayOnly = 0x00000001, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
68 kATSLineHasNoHangers = 0x00000002, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
69 kATSLineHasNoOpticalAlignment = 0x00000004, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
70 kATSLineKeepSpacesOutOfMargin = 0x00000008, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
71 kATSLineNoSpecialJustification = 0x00000010, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
72 kATSLineLastNoJustification = 0x00000020, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
73 kATSLineFractDisable = 0x00000040, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
74 kATSLineImposeNoAngleForEnds = 0x00000080, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
75 kATSLineFillOutToWidth = 0x00000100, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
76 kATSLineTabAdjustEnabled = 0x00000200, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
77 kATSLineIgnoreFontLeading = 0x00000400, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
78 kATSLineApplyAntiAliasing = 0x00000800, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
79 kATSLineNoAntiAliasing = 0x00001000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
80 kATSLineDisableNegativeJustification = 0x00002000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
81 kATSLineDisableAutoAdjustDisplayPos = 0x00004000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
82 kATSLineUseQDRendering = 0x00008000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
83 kATSLineDisableAllJustification = 0x00010000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
84 kATSLineDisableAllGlyphMorphing = 0x00020000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
85 kATSLineDisableAllKerningAdjustments = 0x00040000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
86 kATSLineDisableAllBaselineAdjustments = 0x00080000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
87 kATSLineDisableAllTrackingAdjustments = 0x00100000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
88 kATSLineDisableAllLayoutOperations = kATSLineDisableAllJustification | kATSLineDisableAllGlyphMorphing | kATSLineDisableAllKerningAdjustments | kATSLineDisableAllBaselineAdjustments | kATSLineDisableAllTrackingAdjustments, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
89 kATSLineUseDeviceMetrics = 0x01000000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
90 kATSLineBreakToNearestCharacter = 0x02000000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
91 kATSLineAppleReserved = cast(uint) 0xFCE00000 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
92 } |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
93 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
94 enum |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
95 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
96 kATSStyleNoOptions = 0x00000000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
97 kATSStyleNoHinting = 0x00000001, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
98 kATSStyleApplyAntiAliasing = 0x00000002, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
99 kATSStyleNoAntiAliasing = 0x00000004, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
100 kATSStyleAppleReserved = cast(uint) 0xFFFFFFF8, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
101 kATSStyleApplyHints = kATSStyleNoOptions |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
102 } |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
103 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
104 enum |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
105 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
106 kATSGlyphInfoAppleReserved = 0x1FFBFFE8, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
107 kATSGlyphInfoIsAttachment = cast(uint) 0x80000000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
108 kATSGlyphInfoIsLTHanger = 0x40000000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
109 kATSGlyphInfoIsRBHanger = 0x20000000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
110 kATSGlyphInfoTerminatorGlyph = 0x00080000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
111 kATSGlyphInfoIsWhiteSpace = 0x00040000, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
112 kATSGlyphInfoHasImposedWidth = 0x00000010, |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
113 kATSGlyphInfoByteSizeMask = 0x00000007 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
114 } |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
115 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
116 struct ATSLayoutRecord |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
117 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
118 ushort glyphID; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
119 uint flags; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
120 uint originalOffset; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
121 int realPos; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
122 } |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
123 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
124 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
125 struct ATSTrapezoid |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
126 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
127 FixedPoint upperLeft; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
128 FixedPoint upperRight; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
129 FixedPoint lowerRight; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
130 FixedPoint lowerLeft; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
131 } |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
132 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
133 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
134 struct ATSJustWidthDeltaEntryOverride |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
135 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
136 int beforeGrowLimit; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
137 int beforeShrinkLimit; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
138 int afterGrowLimit; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
139 int afterShrinkLimit; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
140 ushort growFlags; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
141 ushort shrinkFlags; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
142 } |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
143 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
144 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
145 struct ATSULayoutOperationOverrideSpecifier |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
146 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
147 uint operationSelector; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
148 ATSUDirectLayoutOperationOverrideUPP overrideUPP; |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
149 } |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
150 |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
151 extern (C) |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
152 { |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
153 ATSUDirectLayoutOperationOverrideUPP NewATSUDirectLayoutOperationOverrideUPP (ATSUDirectLayoutOperationOverrideProcPtr userRoutine); |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
154 void DisposeATSUDirectLayoutOperationOverrideUPP (ATSUDirectLayoutOperationOverrideUPP userUPP); |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
155 int InvokeATSUDirectLayoutOperationOverrideUPP (uint iCurrentOperation, ATSULineRef iLineRef, uint iRefCon, void* iOperationCallbackParameterPtr, ATSULayoutOperationCallbackStatus* oCallbackStatus, ATSUDirectLayoutOperationOverrideUPP userUPP); |
9f0b49a2f64e
Added the ApplicationServices frameworks: ATS, ColorSync and CoreGraphics
Jacob Carlborg <doob@me.com>
parents:
diff
changeset
|
156 } |