@@ -5,6 +5,8 @@ package coregraphics
5
5
import (
6
6
"unsafe"
7
7
8
+ "github.com/progrium/macdriver/macos/corefoundation"
9
+ "github.com/progrium/macdriver/macos/iosurface"
8
10
"github.com/progrium/macdriver/objc"
9
11
)
10
12
@@ -46,12 +48,12 @@ type DataProviderReleaseBytePointerCallback = func(info unsafe.Pointer, pointer
46
48
// Draws a pattern cell. [Full Topic]
47
49
//
48
50
// [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgpatterndrawpatterncallback?language=objc
49
- type PatternDrawPatternCallback = func (info unsafe.Pointer , context unsafe. Pointer )
51
+ type PatternDrawPatternCallback = func (info unsafe.Pointer , context ContextRef )
50
52
51
53
// Passes messages generated during a PostScript conversion process. [Full Topic]
52
54
//
53
55
// [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgpsconvertermessagecallback?language=objc
54
- type PSConverterMessageCallback = func (info unsafe.Pointer , message unsafe. Pointer )
56
+ type PSConverterMessageCallback = func (info unsafe.Pointer , message corefoundation. StringRef )
55
57
56
58
// A client-supplied callback function that’s invoked whenever the configuration of a local display is changed. [Full Topic]
57
59
//
@@ -66,7 +68,7 @@ type PSConverterProgressCallback = func(info unsafe.Pointer)
66
68
// A client-supplied callback function that’s invoked whenever an associated event tap receives a Quartz event. [Full Topic]
67
69
//
68
70
// [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgeventtapcallback?language=objc
69
- type EventTapCallBack = func (proxy unsafe.Pointer , type_ EventType , event unsafe. Pointer , userInfo unsafe.Pointer ) unsafe. Pointer
71
+ type EventTapCallBack = func (proxy unsafe.Pointer , type_ EventType , event EventRef , userInfo unsafe.Pointer ) EventRef
70
72
71
73
// Copies data from a Core Graphics-supplied buffer into a data consumer. [Full Topic]
72
74
//
@@ -111,7 +113,7 @@ type PSConverterReleaseInfoCallback = func(info unsafe.Pointer)
111
113
// Performs custom tasks at the beginning of each page in a PostScript conversion process. [Full Topic]
112
114
//
113
115
// [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgpsconverterbeginpagecallback?language=objc
114
- type PSConverterBeginPageCallback = func (info unsafe.Pointer , pageNumber uint , pageInfo unsafe. Pointer )
116
+ type PSConverterBeginPageCallback = func (info unsafe.Pointer , pageNumber uint , pageInfo corefoundation. DictionaryRef )
115
117
116
118
// Performs custom clean-up tasks when Core Graphics deallocates a CGFunctionRef object. [Full Topic]
117
119
//
@@ -136,12 +138,12 @@ type ErrorCallback = func()
136
138
// Performs custom tasks at the end of each page of a PostScript conversion process. [Full Topic]
137
139
//
138
140
// [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgpsconverterendpagecallback?language=objc
139
- type PSConverterEndPageCallback = func (info unsafe.Pointer , pageNumber uint , pageInfo unsafe. Pointer )
141
+ type PSConverterEndPageCallback = func (info unsafe.Pointer , pageNumber uint , pageInfo corefoundation. DictionaryRef )
140
142
141
143
// A block called when a data stream has a new frame event to process. [Full Topic]
142
144
//
143
145
// [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgdisplaystreamframeavailablehandler?language=objc
144
- type DisplayStreamFrameAvailableHandler = func (status DisplayStreamFrameStatus , displayTime uint64 , frameSurface unsafe. Pointer , updateRef unsafe. Pointer )
146
+ type DisplayStreamFrameAvailableHandler = func (status DisplayStreamFrameStatus , displayTime uint64 , frameSurface iosurface. Ref , updateRef DisplayStreamUpdateRef )
145
147
146
148
// Performs custom operations on the supplied input data to produce output data. [Full Topic]
147
149
//
0 commit comments