@@ -6,7 +6,158 @@ import (
66 "unsafe"
77)
88
9+ // A structure that holds a version and two callback functions for drawing a custom pattern. [Full Topic]
10+ //
11+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgpatterncallbacks?language=objc
12+ // A structure that contains pointers to callback functions that manage the copying of data for a data consumer. [Full Topic]
13+ //
14+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgdataconsumercallbacks?language=objc
15+ // A reference to frame update’s metadata. [Full Topic]
16+ //
17+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgdisplaystreamupdateref?language=objc
18+ type DisplayStreamUpdateRef unsafe.Pointer
19+
20+ // A profile that specifies how to interpret a color value for display. [Full Topic]
21+ //
22+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgcolorspaceref?language=objc
23+ type ColorSpaceRef unsafe.Pointer
24+
25+ // An abstraction for data-reading tasks that eliminates the need to manage a raw memory buffer. [Full Topic]
26+ //
27+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgdataproviderref?language=objc
28+ type DataProviderRef unsafe.Pointer
29+
30+ // An opaque data type used to convert PostScript data to PDF data. [Full Topic]
31+ //
32+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgpsconverterref?language=objc
33+ type PSConverterRef unsafe.Pointer
34+
35+ // A document that contains PDF (Portable Document Format) drawing information. [Full Topic]
36+ //
37+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgpdfdocumentref?language=objc
38+ type PDFDocumentRef unsafe.Pointer
39+
40+ // A general facility for defining and using callback functions. [Full Topic]
41+ //
42+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgfunctionref?language=objc
43+ type FunctionRef unsafe.Pointer
44+
45+ // An object that describes how to convert between color spaces for use by other system services. [Full Topic]
46+ //
47+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgcolorconversioninforef?language=objc
48+ type ColorConversionInfoRef unsafe.Pointer
49+
50+ // A structure that contains a point in a two-dimensional coordinate system. [Full Topic]
51+ //
52+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgpoint?language=objc
53+ // A Quartz 2D drawing environment. [Full Topic]
54+ //
55+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgcontextref?language=objc
56+ type ContextRef unsafe.Pointer
57+
58+ // Defines an opaque type that represents a low-level hardware event. [Full Topic]
59+ //
60+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgeventref?language=objc
61+ type EventRef unsafe.Pointer
62+
63+ // A mutable graphics path: a mathematical description of shapes or lines to be drawn in a graphics context. [Full Topic]
64+ //
65+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgmutablepathref?language=objc
66+ type MutablePathRef unsafe.Pointer
67+
68+ // A definition for a smooth transition between colors for drawing radial and axial gradient fills. [Full Topic]
69+ //
70+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cggradientref?language=objc
71+ type GradientRef unsafe.Pointer
72+
73+ // Defines a structure containing pointers to client-defined callback functions that manage the sending of data for a sequential-access data provider. [Full Topic]
74+ //
75+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgdataprovidersequentialcallbacks?language=objc
76+ // A set of character glyphs and layout information for drawing text. [Full Topic]
77+ //
78+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgfontref?language=objc
79+ type FontRef unsafe.Pointer
80+
81+ // A structure that contains width and height values. [Full Topic]
82+ //
83+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgsize?language=objc
84+ // A reference to a display stream object. [Full Topic]
85+ //
86+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgdisplaystreamref?language=objc
87+ type DisplayStreamRef unsafe.Pointer
88+
89+ // A set of components that define a color, with a color space specifying how to interpret them. [Full Topic]
90+ //
91+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgcolorref?language=objc
92+ type ColorRef unsafe.Pointer
93+
94+ // A definition for a smooth transition between colors, controlled by a custom function you provide, for drawing radial and axial gradient fills. [Full Topic]
95+ //
96+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgshadingref?language=objc
97+ type ShadingRef unsafe.Pointer
98+
999// A bitmap image or image mask. [Full Topic]
10100//
11101// [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgimageref?language=objc
12- type CGImageRef = unsafe.Pointer
102+ type ImageRef unsafe.Pointer
103+
104+ // An abstraction for data-writing tasks that eliminates the need to manage a raw memory buffer. [Full Topic]
105+ //
106+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgdataconsumerref?language=objc
107+ type DataConsumerRef unsafe.Pointer
108+
109+ // [Full Topic]
110+ //
111+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgcolordataformat?language=objc
112+ // A 2D pattern to be used for drawing graphics paths. [Full Topic]
113+ //
114+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgpatternref?language=objc
115+ type PatternRef unsafe.Pointer
116+
117+ // The distance, in pixel units, that an onscreen region moves. [Full Topic]
118+ //
119+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgscreenupdatemovedelta?language=objc
120+ // Defines pointers to client-defined callback functions that manage the sending of data for a direct-access data provider. [Full Topic]
121+ //
122+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgdataproviderdirectcallbacks?language=objc
123+ // A reference to a display mode object. [Full Topic]
124+ //
125+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgdisplaymoderef?language=objc
126+ type DisplayModeRef unsafe.Pointer
127+
128+ // A type that represents a page in a PDF document. [Full Topic]
129+ //
130+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgpdfpageref?language=objc
131+ type PDFPageRef unsafe.Pointer
132+
133+ // A structure that contains a two-dimensional vector. [Full Topic]
134+ //
135+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgvector?language=objc
136+ // An offscreen context for reusing content drawn with Core Graphics. [Full Topic]
137+ //
138+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cglayerref?language=objc
139+ type LayerRef unsafe.Pointer
140+
141+ // Defines an opaque type that represents the source of a Quartz event. [Full Topic]
142+ //
143+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgeventsourceref?language=objc
144+ type EventSourceRef unsafe.Pointer
145+
146+ // A structure that contains the location and dimensions of a rectangle. [Full Topic]
147+ //
148+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgrect?language=objc
149+ // A structure that contains callbacks needed by a CGFunctionRef object. [Full Topic]
150+ //
151+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgfunctioncallbacks?language=objc
152+ // A data structure that provides information about a path element. [Full Topic]
153+ //
154+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgpathelement?language=objc
155+ // [Full Topic]
156+ //
157+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgdevicecolor?language=objc
158+ // Defines the structure used to report information about event taps. [Full Topic]
159+ //
160+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgeventtapinformation?language=objc
161+ // A structure for holding the callbacks provided when you create a PostScript converter object. [Full Topic]
162+ //
163+ // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgpsconvertercallbacks?language=objc
0 commit comments