forked from andelf/Defines-Swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCoreGraphics.swift
3470 lines (3452 loc) · 138 KB
/
CoreGraphics.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@exported import CoreGraphics.CGBase
@exported import CoreGraphics.CGAffineTransform
@exported import CoreGraphics.CGBitmapContext
@exported import CoreGraphics.CGColor
@exported import CoreGraphics.CGColorSpace
@exported import CoreGraphics.CGContext
@exported import CoreGraphics.CGDataConsumer
@exported import CoreGraphics.CGDataProvider
@exported import CoreGraphics.CGError
@exported import CoreGraphics.CGFont
@exported import CoreGraphics.CGFunction
@exported import CoreGraphics.CGGeometry
@exported import CoreGraphics.CGGradient
@exported import CoreGraphics.CGImage
@exported import CoreGraphics.CGLayer
@exported import CoreGraphics.CGPDFArray
@exported import CoreGraphics.CGPDFContentStream
@exported import CoreGraphics.CGPDFContext
@exported import CoreGraphics.CGPDFDictionary
@exported import CoreGraphics.CGPDFDocument
@exported import CoreGraphics.CGPDFObject
@exported import CoreGraphics.CGPDFOperatorTable
@exported import CoreGraphics.CGPDFPage
@exported import CoreGraphics.CGPDFScanner
@exported import CoreGraphics.CGPDFStream
@exported import CoreGraphics.CGPDFString
@exported import CoreGraphics.CGPath
@exported import CoreGraphics.CGPattern
@exported import CoreGraphics.CGShading
@exported import CoreGraphics.CGDirectDisplay
@exported import CoreGraphics.CGDirectPalette
@exported import CoreGraphics.CGDisplayConfiguration
@exported import CoreGraphics.CGDisplayFade
@exported import CoreGraphics.CGDisplayStream
@exported import CoreGraphics.CGEvent
@exported import CoreGraphics.CGEventSource
@exported import CoreGraphics.CGEventTypes
@exported import CoreGraphics.CGPSConverter
@exported import CoreGraphics.CGRemoteOperation
@exported import CoreGraphics.CGSession
@exported import CoreGraphics.CGWindow
@exported import CoreGraphics.CGWindowLevel
func CGAcquireDisplayFadeReservation(seconds: CGDisplayReservationInterval, token: CMutablePointer<CGDisplayFadeReservationToken>) -> CGError
func CGAcquireDisplayFadeReservation(seconds: CGDisplayReservationInterval, token: CMutablePointer<CGDisplayFadeReservationToken>) -> CGError
struct CGAffineTransform {
var a: CGFloat
var b: CGFloat
var c: CGFloat
var d: CGFloat
var tx: CGFloat
var ty: CGFloat
init(a: CGFloat, b: CGFloat, c: CGFloat, d: CGFloat, tx: CGFloat, ty: CGFloat)
}
func CGAffineTransformConcat(t1: CGAffineTransform, t2: CGAffineTransform) -> CGAffineTransform
func CGAffineTransformConcat(t1: CGAffineTransform, t2: CGAffineTransform) -> CGAffineTransform
func CGAffineTransformEqualToTransform(t1: CGAffineTransform, t2: CGAffineTransform) -> CBool
func CGAffineTransformEqualToTransform(t1: CGAffineTransform, t2: CGAffineTransform) -> CBool
var CGAffineTransformIdentity: CGAffineTransform
func CGAffineTransformInvert(t: CGAffineTransform) -> CGAffineTransform
func CGAffineTransformInvert(t: CGAffineTransform) -> CGAffineTransform
func CGAffineTransformIsIdentity(t: CGAffineTransform) -> CBool
func CGAffineTransformIsIdentity(t: CGAffineTransform) -> CBool
func CGAffineTransformMake(a: CGFloat, b: CGFloat, c: CGFloat, d: CGFloat, tx: CGFloat, ty: CGFloat) -> CGAffineTransform
func CGAffineTransformMake(a: CGFloat, b: CGFloat, c: CGFloat, d: CGFloat, tx: CGFloat, ty: CGFloat) -> CGAffineTransform
func CGAffineTransformMakeRotation(angle: CGFloat) -> CGAffineTransform
func CGAffineTransformMakeRotation(angle: CGFloat) -> CGAffineTransform
func CGAffineTransformMakeScale(sx: CGFloat, sy: CGFloat) -> CGAffineTransform
func CGAffineTransformMakeScale(sx: CGFloat, sy: CGFloat) -> CGAffineTransform
func CGAffineTransformMakeTranslation(tx: CGFloat, ty: CGFloat) -> CGAffineTransform
func CGAffineTransformMakeTranslation(tx: CGFloat, ty: CGFloat) -> CGAffineTransform
func CGAffineTransformRotate(t: CGAffineTransform, angle: CGFloat) -> CGAffineTransform
func CGAffineTransformRotate(t: CGAffineTransform, angle: CGFloat) -> CGAffineTransform
func CGAffineTransformScale(t: CGAffineTransform, sx: CGFloat, sy: CGFloat) -> CGAffineTransform
func CGAffineTransformScale(t: CGAffineTransform, sx: CGFloat, sy: CGFloat) -> CGAffineTransform
func CGAffineTransformTranslate(t: CGAffineTransform, tx: CGFloat, ty: CGFloat) -> CGAffineTransform
func CGAffineTransformTranslate(t: CGAffineTransform, tx: CGFloat, ty: CGFloat) -> CGAffineTransform
func CGAssociateMouseAndMouseCursorPosition(connected: boolean_t) -> CGError
func CGAssociateMouseAndMouseCursorPosition(connected: boolean_t) -> CGError
func CGBeginDisplayConfiguration(config: CMutablePointer<Unmanaged<CGDisplayConfig>?>) -> CGError
func CGBeginDisplayConfiguration(config: CMutablePointer<Unmanaged<CGDisplayConfig>?>) -> CGError
func CGBitmapContextCreate(data: CMutableVoidPointer, width: UInt, height: UInt, bitsPerComponent: UInt, bytesPerRow: UInt, space: CGColorSpace!, bitmapInfo: CGBitmapInfo) -> CGContext!
func CGBitmapContextCreate(data: CMutableVoidPointer, width: UInt, height: UInt, bitsPerComponent: UInt, bytesPerRow: UInt, space: CGColorSpace!, bitmapInfo: CGBitmapInfo) -> CGContext!
func CGBitmapContextCreateImage(context: CGContext!) -> CGImage!
func CGBitmapContextCreateImage(context: CGContext!) -> CGImage!
func CGBitmapContextGetAlphaInfo(context: CGContext!) -> CGImageAlphaInfo
func CGBitmapContextGetAlphaInfo(context: CGContext!) -> CGImageAlphaInfo
func CGBitmapContextGetBitmapInfo(context: CGContext!) -> CGBitmapInfo
func CGBitmapContextGetBitmapInfo(context: CGContext!) -> CGBitmapInfo
func CGBitmapContextGetBitsPerComponent(context: CGContext!) -> UInt
func CGBitmapContextGetBitsPerComponent(context: CGContext!) -> UInt
func CGBitmapContextGetBitsPerPixel(context: CGContext!) -> UInt
func CGBitmapContextGetBitsPerPixel(context: CGContext!) -> UInt
func CGBitmapContextGetBytesPerRow(context: CGContext!) -> UInt
func CGBitmapContextGetBytesPerRow(context: CGContext!) -> UInt
func CGBitmapContextGetColorSpace(context: CGContext!) -> CGColorSpace!
func CGBitmapContextGetColorSpace(context: CGContext!) -> CGColorSpace!
func CGBitmapContextGetData(context: CGContext!) -> COpaquePointer
func CGBitmapContextGetData(context: CGContext!) -> COpaquePointer
func CGBitmapContextGetHeight(context: CGContext!) -> UInt
func CGBitmapContextGetHeight(context: CGContext!) -> UInt
func CGBitmapContextGetWidth(context: CGContext!) -> UInt
func CGBitmapContextGetWidth(context: CGContext!) -> UInt
struct CGBitmapInfo : RawOptionSet {
init() {
}
init(_ value: UInt32) {
}
var value: UInt32
static var AlphaInfoMask: CGBitmapInfo {
get {
return
}
}
static var FloatComponents: CGBitmapInfo {
get {
return
}
}
static var ByteOrderMask: CGBitmapInfo {
get {
return
}
}
static var ByteOrderDefault: CGBitmapInfo {
get {
return
}
}
static var ByteOrder16Little: CGBitmapInfo {
get {
return
}
}
static var ByteOrder32Little: CGBitmapInfo {
get {
return
}
}
static var ByteOrder16Big: CGBitmapInfo {
get {
return
}
}
static var ByteOrder32Big: CGBitmapInfo {
get {
return
}
}
static func fromMask(raw: UInt32) -> CGBitmapInfo {
return
}
static func fromRaw(raw: UInt32) -> CGBitmapInfo? {
return
}
func toRaw() -> UInt32 {
return
}
func getLogicValue() -> Bool {
return
}
}
struct CGBlendMode {
init(_ value: CUnsignedInt) {
}
var value: CUnsignedInt
}
typealias CGButtonCount = UInt32
func CGCancelDisplayConfiguration(config: CGDisplayConfig!) -> CGError
func CGCancelDisplayConfiguration(config: CGDisplayConfig!) -> CGError
func CGCaptureAllDisplays() -> CGError
func CGCaptureAllDisplays() -> CGError
func CGCaptureAllDisplaysWithOptions(options: CGCaptureOptions) -> CGError
func CGCaptureAllDisplaysWithOptions(options: CGCaptureOptions) -> CGError
typealias CGCaptureOptions = UInt32
typealias CGCharCode = UInt16
func CGColorCreate(space: CGColorSpace!, components: CConstPointer<CGFloat>) -> CGColor!
func CGColorCreate(space: CGColorSpace!, components: CConstPointer<CGFloat>) -> CGColor!
func CGColorCreateCopy(color: CGColor!) -> CGColor!
func CGColorCreateCopy(color: CGColor!) -> CGColor!
func CGColorCreateCopyWithAlpha(color: CGColor!, alpha: CGFloat) -> CGColor!
func CGColorCreateCopyWithAlpha(color: CGColor!, alpha: CGFloat) -> CGColor!
func CGColorCreateGenericCMYK(cyan: CGFloat, magenta: CGFloat, yellow: CGFloat, black: CGFloat, alpha: CGFloat) -> CGColor!
func CGColorCreateGenericCMYK(cyan: CGFloat, magenta: CGFloat, yellow: CGFloat, black: CGFloat, alpha: CGFloat) -> CGColor!
func CGColorCreateGenericGray(gray: CGFloat, alpha: CGFloat) -> CGColor!
func CGColorCreateGenericGray(gray: CGFloat, alpha: CGFloat) -> CGColor!
func CGColorCreateGenericRGB(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) -> CGColor!
func CGColorCreateGenericRGB(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat) -> CGColor!
func CGColorCreateWithPattern(space: CGColorSpace!, pattern: CGPattern!, components: CConstPointer<CGFloat>) -> CGColor!
func CGColorCreateWithPattern(space: CGColorSpace!, pattern: CGPattern!, components: CConstPointer<CGFloat>) -> CGColor!
func CGColorEqualToColor(color1: CGColor!, color2: CGColor!) -> CBool
func CGColorEqualToColor(color1: CGColor!, color2: CGColor!) -> CBool
func CGColorGetAlpha(color: CGColor!) -> CGFloat
func CGColorGetAlpha(color: CGColor!) -> CGFloat
func CGColorGetColorSpace(color: CGColor!) -> CGColorSpace!
func CGColorGetColorSpace(color: CGColor!) -> CGColorSpace!
func CGColorGetComponents(color: CGColor!) -> UnsafePointer<CGFloat>
func CGColorGetComponents(color: CGColor!) -> UnsafePointer<CGFloat>
func CGColorGetConstantColor(colorName: CFString!) -> CGColor!
func CGColorGetConstantColor(colorName: CFString!) -> CGColor!
func CGColorGetNumberOfComponents(color: CGColor!) -> UInt
func CGColorGetNumberOfComponents(color: CGColor!) -> UInt
func CGColorGetPattern(color: CGColor!) -> CGPattern!
func CGColorGetPattern(color: CGColor!) -> CGPattern!
func CGColorGetTypeID() -> CFTypeID
func CGColorGetTypeID() -> CFTypeID
typealias CGColorRef = CGColor
func CGColorRelease(color: CGColor!)
func CGColorRelease(color: CGColor!)
struct CGColorRenderingIntent {
init(_ value: CUnsignedInt) {
}
var value: CUnsignedInt
}
func CGColorRetain(color: CGColor!) -> CGColor!
func CGColorRetain(color: CGColor!) -> CGColor!
func CGColorSpaceCopyICCProfile(space: CGColorSpace!) -> CFData!
func CGColorSpaceCopyICCProfile(space: CGColorSpace!) -> CFData!
func CGColorSpaceCopyName(space: CGColorSpace!) -> CFString!
func CGColorSpaceCopyName(space: CGColorSpace!) -> CFString!
func CGColorSpaceCreateCalibratedGray(whitePoint: CConstPointer<CGFloat>, blackPoint: CConstPointer<CGFloat>, gamma: CGFloat) -> CGColorSpace!
func CGColorSpaceCreateCalibratedGray(whitePoint: CConstPointer<CGFloat>, blackPoint: CConstPointer<CGFloat>, gamma: CGFloat) -> CGColorSpace!
func CGColorSpaceCreateCalibratedRGB(whitePoint: CConstPointer<CGFloat>, blackPoint: CConstPointer<CGFloat>, gamma: CConstPointer<CGFloat>, matrix: CConstPointer<CGFloat>) -> CGColorSpace!
func CGColorSpaceCreateCalibratedRGB(whitePoint: CConstPointer<CGFloat>, blackPoint: CConstPointer<CGFloat>, gamma: CConstPointer<CGFloat>, matrix: CConstPointer<CGFloat>) -> CGColorSpace!
func CGColorSpaceCreateDeviceCMYK() -> CGColorSpace!
func CGColorSpaceCreateDeviceCMYK() -> CGColorSpace!
func CGColorSpaceCreateDeviceGray() -> CGColorSpace!
func CGColorSpaceCreateDeviceGray() -> CGColorSpace!
func CGColorSpaceCreateDeviceRGB() -> CGColorSpace!
func CGColorSpaceCreateDeviceRGB() -> CGColorSpace!
func CGColorSpaceCreateICCBased(nComponents: UInt, range: CConstPointer<CGFloat>, profile: CGDataProvider!, alternate: CGColorSpace!) -> CGColorSpace!
func CGColorSpaceCreateICCBased(nComponents: UInt, range: CConstPointer<CGFloat>, profile: CGDataProvider!, alternate: CGColorSpace!) -> CGColorSpace!
func CGColorSpaceCreateIndexed(baseSpace: CGColorSpace!, lastIndex: UInt, colorTable: CConstPointer<CUnsignedChar>) -> CGColorSpace!
func CGColorSpaceCreateIndexed(baseSpace: CGColorSpace!, lastIndex: UInt, colorTable: CConstPointer<CUnsignedChar>) -> CGColorSpace!
func CGColorSpaceCreateLab(whitePoint: CConstPointer<CGFloat>, blackPoint: CConstPointer<CGFloat>, range: CConstPointer<CGFloat>) -> CGColorSpace!
func CGColorSpaceCreateLab(whitePoint: CConstPointer<CGFloat>, blackPoint: CConstPointer<CGFloat>, range: CConstPointer<CGFloat>) -> CGColorSpace!
func CGColorSpaceCreatePattern(baseSpace: CGColorSpace!) -> CGColorSpace!
func CGColorSpaceCreatePattern(baseSpace: CGColorSpace!) -> CGColorSpace!
func CGColorSpaceCreateWithICCProfile(data: CFData!) -> CGColorSpace!
func CGColorSpaceCreateWithICCProfile(data: CFData!) -> CGColorSpace!
func CGColorSpaceCreateWithName(name: CFString!) -> CGColorSpace!
func CGColorSpaceCreateWithName(name: CFString!) -> CGColorSpace!
func CGColorSpaceCreateWithPlatformColorSpace(ref: CConstVoidPointer) -> CGColorSpace!
func CGColorSpaceCreateWithPlatformColorSpace(ref: CConstVoidPointer) -> CGColorSpace!
func CGColorSpaceGetBaseColorSpace(space: CGColorSpace!) -> CGColorSpace!
func CGColorSpaceGetBaseColorSpace(space: CGColorSpace!) -> CGColorSpace!
func CGColorSpaceGetColorTable(space: CGColorSpace!, table: CMutablePointer<UInt8>)
func CGColorSpaceGetColorTable(space: CGColorSpace!, table: CMutablePointer<UInt8>)
func CGColorSpaceGetColorTableCount(space: CGColorSpace!) -> UInt
func CGColorSpaceGetColorTableCount(space: CGColorSpace!) -> UInt
func CGColorSpaceGetModel(space: CGColorSpace!) -> CGColorSpaceModel
func CGColorSpaceGetModel(space: CGColorSpace!) -> CGColorSpaceModel
func CGColorSpaceGetNumberOfComponents(space: CGColorSpace!) -> UInt
func CGColorSpaceGetNumberOfComponents(space: CGColorSpace!) -> UInt
func CGColorSpaceGetTypeID() -> CFTypeID
func CGColorSpaceGetTypeID() -> CFTypeID
struct CGColorSpaceModel {
init(_ value: CInt) {
}
var value: CInt
}
typealias CGColorSpaceRef = CGColorSpace
func CGColorSpaceRelease(space: CGColorSpace!)
func CGColorSpaceRelease(space: CGColorSpace!)
func CGColorSpaceRetain(space: CGColorSpace!) -> CGColorSpace!
func CGColorSpaceRetain(space: CGColorSpace!) -> CGColorSpace!
func CGCompleteDisplayConfiguration(config: CGDisplayConfig!, option: CGConfigureOption) -> CGError
func CGCompleteDisplayConfiguration(config: CGDisplayConfig!, option: CGConfigureOption) -> CGError
func CGConfigureDisplayFadeEffect(config: CGDisplayConfig!, fadeOutSeconds: CGDisplayFadeInterval, fadeInSeconds: CGDisplayFadeInterval, fadeRed: CFloat, fadeGreen: CFloat, fadeBlue: CFloat) -> CGError
func CGConfigureDisplayFadeEffect(config: CGDisplayConfig!, fadeOutSeconds: CGDisplayFadeInterval, fadeInSeconds: CGDisplayFadeInterval, fadeRed: CFloat, fadeGreen: CFloat, fadeBlue: CFloat) -> CGError
func CGConfigureDisplayMirrorOfDisplay(config: CGDisplayConfig!, display: CGDirectDisplayID, master: CGDirectDisplayID) -> CGError
func CGConfigureDisplayMirrorOfDisplay(config: CGDisplayConfig!, display: CGDirectDisplayID, master: CGDirectDisplayID) -> CGError
func CGConfigureDisplayMode(config: CGDisplayConfig!, display: CGDirectDisplayID, mode: CFDictionary!) -> CGError
func CGConfigureDisplayMode(config: CGDisplayConfig!, display: CGDirectDisplayID, mode: CFDictionary!) -> CGError
func CGConfigureDisplayOrigin(config: CGDisplayConfig!, display: CGDirectDisplayID, x: Int32, y: Int32) -> CGError
func CGConfigureDisplayOrigin(config: CGDisplayConfig!, display: CGDirectDisplayID, x: Int32, y: Int32) -> CGError
func CGConfigureDisplayStereoOperation(config: CGDisplayConfig!, display: CGDirectDisplayID, stereo: boolean_t, forceBlueLine: boolean_t) -> CGError
func CGConfigureDisplayStereoOperation(config: CGDisplayConfig!, display: CGDirectDisplayID, stereo: boolean_t, forceBlueLine: boolean_t) -> CGError
func CGConfigureDisplayWithDisplayMode(config: CGDisplayConfig!, display: CGDirectDisplayID, mode: CGDisplayMode!, options: CFDictionary!) -> CGError
func CGConfigureDisplayWithDisplayMode(config: CGDisplayConfig!, display: CGDirectDisplayID, mode: CGDisplayMode!, options: CFDictionary!) -> CGError
typealias CGConfigureOption = UInt32
func CGContextAddArc(c: CGContext!, x: CGFloat, y: CGFloat, radius: CGFloat, startAngle: CGFloat, endAngle: CGFloat, clockwise: CInt)
func CGContextAddArc(c: CGContext!, x: CGFloat, y: CGFloat, radius: CGFloat, startAngle: CGFloat, endAngle: CGFloat, clockwise: CInt)
func CGContextAddArcToPoint(c: CGContext!, x1: CGFloat, y1: CGFloat, x2: CGFloat, y2: CGFloat, radius: CGFloat)
func CGContextAddArcToPoint(c: CGContext!, x1: CGFloat, y1: CGFloat, x2: CGFloat, y2: CGFloat, radius: CGFloat)
func CGContextAddCurveToPoint(c: CGContext!, cp1x: CGFloat, cp1y: CGFloat, cp2x: CGFloat, cp2y: CGFloat, x: CGFloat, y: CGFloat)
func CGContextAddCurveToPoint(c: CGContext!, cp1x: CGFloat, cp1y: CGFloat, cp2x: CGFloat, cp2y: CGFloat, x: CGFloat, y: CGFloat)
func CGContextAddEllipseInRect(context: CGContext!, rect: CGRect)
func CGContextAddEllipseInRect(context: CGContext!, rect: CGRect)
func CGContextAddLineToPoint(c: CGContext!, x: CGFloat, y: CGFloat)
func CGContextAddLineToPoint(c: CGContext!, x: CGFloat, y: CGFloat)
func CGContextAddLines(c: CGContext!, points: CConstPointer<CGPoint>, count: UInt)
func CGContextAddLines(c: CGContext!, points: CConstPointer<CGPoint>, count: UInt)
func CGContextAddPath(context: CGContext!, path: CGPath!)
func CGContextAddPath(context: CGContext!, path: CGPath!)
func CGContextAddQuadCurveToPoint(c: CGContext!, cpx: CGFloat, cpy: CGFloat, x: CGFloat, y: CGFloat)
func CGContextAddQuadCurveToPoint(c: CGContext!, cpx: CGFloat, cpy: CGFloat, x: CGFloat, y: CGFloat)
func CGContextAddRect(c: CGContext!, rect: CGRect)
func CGContextAddRect(c: CGContext!, rect: CGRect)
func CGContextAddRects(c: CGContext!, rects: CConstPointer<CGRect>, count: UInt)
func CGContextAddRects(c: CGContext!, rects: CConstPointer<CGRect>, count: UInt)
func CGContextBeginPage(c: CGContext!, mediaBox: CConstPointer<CGRect>)
func CGContextBeginPage(c: CGContext!, mediaBox: CConstPointer<CGRect>)
func CGContextBeginPath(c: CGContext!)
func CGContextBeginPath(c: CGContext!)
func CGContextBeginTransparencyLayer(context: CGContext!, auxiliaryInfo: CFDictionary!)
func CGContextBeginTransparencyLayer(context: CGContext!, auxiliaryInfo: CFDictionary!)
func CGContextBeginTransparencyLayerWithRect(context: CGContext!, rect: CGRect, auxiliaryInfo: CFDictionary!)
func CGContextBeginTransparencyLayerWithRect(context: CGContext!, rect: CGRect, auxiliaryInfo: CFDictionary!)
func CGContextClearRect(c: CGContext!, rect: CGRect)
func CGContextClearRect(c: CGContext!, rect: CGRect)
func CGContextClip(c: CGContext!)
func CGContextClip(c: CGContext!)
func CGContextClipToMask(c: CGContext!, rect: CGRect, mask: CGImage!)
func CGContextClipToMask(c: CGContext!, rect: CGRect, mask: CGImage!)
func CGContextClipToRect(c: CGContext!, rect: CGRect)
func CGContextClipToRect(c: CGContext!, rect: CGRect)
func CGContextClipToRects(c: CGContext!, rects: CConstPointer<CGRect>, count: UInt)
func CGContextClipToRects(c: CGContext!, rects: CConstPointer<CGRect>, count: UInt)
func CGContextClosePath(c: CGContext!)
func CGContextClosePath(c: CGContext!)
func CGContextConcatCTM(c: CGContext!, transform: CGAffineTransform)
func CGContextConcatCTM(c: CGContext!, transform: CGAffineTransform)
func CGContextConvertPointToDeviceSpace(context: CGContext!, point: CGPoint) -> CGPoint
func CGContextConvertPointToDeviceSpace(context: CGContext!, point: CGPoint) -> CGPoint
func CGContextConvertPointToUserSpace(context: CGContext!, point: CGPoint) -> CGPoint
func CGContextConvertPointToUserSpace(context: CGContext!, point: CGPoint) -> CGPoint
func CGContextConvertRectToDeviceSpace(context: CGContext!, rect: CGRect) -> CGRect
func CGContextConvertRectToDeviceSpace(context: CGContext!, rect: CGRect) -> CGRect
func CGContextConvertRectToUserSpace(context: CGContext!, rect: CGRect) -> CGRect
func CGContextConvertRectToUserSpace(context: CGContext!, rect: CGRect) -> CGRect
func CGContextConvertSizeToDeviceSpace(context: CGContext!, size: CGSize) -> CGSize
func CGContextConvertSizeToDeviceSpace(context: CGContext!, size: CGSize) -> CGSize
func CGContextConvertSizeToUserSpace(context: CGContext!, size: CGSize) -> CGSize
func CGContextConvertSizeToUserSpace(context: CGContext!, size: CGSize) -> CGSize
func CGContextCopyPath(context: CGContext!) -> CGPath!
func CGContextCopyPath(context: CGContext!) -> CGPath!
func CGContextDrawImage(c: CGContext!, rect: CGRect, image: CGImage!)
func CGContextDrawImage(c: CGContext!, rect: CGRect, image: CGImage!)
func CGContextDrawLayerAtPoint(context: CGContext!, point: CGPoint, layer: CGLayer!)
func CGContextDrawLayerAtPoint(context: CGContext!, point: CGPoint, layer: CGLayer!)
func CGContextDrawLayerInRect(context: CGContext!, rect: CGRect, layer: CGLayer!)
func CGContextDrawLayerInRect(context: CGContext!, rect: CGRect, layer: CGLayer!)
func CGContextDrawLinearGradient(context: CGContext!, gradient: CGGradient!, startPoint: CGPoint, endPoint: CGPoint, options: CGGradientDrawingOptions)
func CGContextDrawLinearGradient(context: CGContext!, gradient: CGGradient!, startPoint: CGPoint, endPoint: CGPoint, options: CGGradientDrawingOptions)
func CGContextDrawPDFDocument(c: CGContext!, rect: CGRect, document: CGPDFDocument!, page: CInt)
func CGContextDrawPDFDocument(c: CGContext!, rect: CGRect, document: CGPDFDocument!, page: CInt)
func CGContextDrawPDFPage(c: CGContext!, page: CGPDFPage!)
func CGContextDrawPDFPage(c: CGContext!, page: CGPDFPage!)
func CGContextDrawPath(c: CGContext!, mode: CGPathDrawingMode)
func CGContextDrawPath(c: CGContext!, mode: CGPathDrawingMode)
func CGContextDrawRadialGradient(context: CGContext!, gradient: CGGradient!, startCenter: CGPoint, startRadius: CGFloat, endCenter: CGPoint, endRadius: CGFloat, options: CGGradientDrawingOptions)
func CGContextDrawRadialGradient(context: CGContext!, gradient: CGGradient!, startCenter: CGPoint, startRadius: CGFloat, endCenter: CGPoint, endRadius: CGFloat, options: CGGradientDrawingOptions)
func CGContextDrawShading(context: CGContext!, shading: CGShading!)
func CGContextDrawShading(context: CGContext!, shading: CGShading!)
func CGContextDrawTiledImage(c: CGContext!, rect: CGRect, image: CGImage!)
func CGContextDrawTiledImage(c: CGContext!, rect: CGRect, image: CGImage!)
func CGContextEOClip(c: CGContext!)
func CGContextEOClip(c: CGContext!)
func CGContextEOFillPath(c: CGContext!)
func CGContextEOFillPath(c: CGContext!)
func CGContextEndPage(c: CGContext!)
func CGContextEndPage(c: CGContext!)
func CGContextEndTransparencyLayer(context: CGContext!)
func CGContextEndTransparencyLayer(context: CGContext!)
func CGContextFillEllipseInRect(context: CGContext!, rect: CGRect)
func CGContextFillEllipseInRect(context: CGContext!, rect: CGRect)
func CGContextFillPath(c: CGContext!)
func CGContextFillPath(c: CGContext!)
func CGContextFillRect(c: CGContext!, rect: CGRect)
func CGContextFillRect(c: CGContext!, rect: CGRect)
func CGContextFillRects(c: CGContext!, rects: CConstPointer<CGRect>, count: UInt)
func CGContextFillRects(c: CGContext!, rects: CConstPointer<CGRect>, count: UInt)
func CGContextFlush(c: CGContext!)
func CGContextFlush(c: CGContext!)
func CGContextGetCTM(c: CGContext!) -> CGAffineTransform
func CGContextGetCTM(c: CGContext!) -> CGAffineTransform
func CGContextGetClipBoundingBox(c: CGContext!) -> CGRect
func CGContextGetClipBoundingBox(c: CGContext!) -> CGRect
func CGContextGetInterpolationQuality(context: CGContext!) -> CGInterpolationQuality
func CGContextGetInterpolationQuality(context: CGContext!) -> CGInterpolationQuality
func CGContextGetPathBoundingBox(context: CGContext!) -> CGRect
func CGContextGetPathBoundingBox(context: CGContext!) -> CGRect
func CGContextGetPathCurrentPoint(context: CGContext!) -> CGPoint
func CGContextGetPathCurrentPoint(context: CGContext!) -> CGPoint
func CGContextGetTextMatrix(c: CGContext!) -> CGAffineTransform
func CGContextGetTextMatrix(c: CGContext!) -> CGAffineTransform
func CGContextGetTextPosition(context: CGContext!) -> CGPoint
func CGContextGetTextPosition(context: CGContext!) -> CGPoint
func CGContextGetTypeID() -> CFTypeID
func CGContextGetTypeID() -> CFTypeID
func CGContextGetUserSpaceToDeviceSpaceTransform(context: CGContext!) -> CGAffineTransform
func CGContextGetUserSpaceToDeviceSpaceTransform(context: CGContext!) -> CGAffineTransform
func CGContextIsPathEmpty(context: CGContext!) -> CBool
func CGContextIsPathEmpty(context: CGContext!) -> CBool
func CGContextMoveToPoint(c: CGContext!, x: CGFloat, y: CGFloat)
func CGContextMoveToPoint(c: CGContext!, x: CGFloat, y: CGFloat)
func CGContextPathContainsPoint(context: CGContext!, point: CGPoint, mode: CGPathDrawingMode) -> CBool
func CGContextPathContainsPoint(context: CGContext!, point: CGPoint, mode: CGPathDrawingMode) -> CBool
typealias CGContextRef = CGContext
func CGContextRelease(c: CGContext!)
func CGContextRelease(c: CGContext!)
func CGContextReplacePathWithStrokedPath(c: CGContext!)
func CGContextReplacePathWithStrokedPath(c: CGContext!)
func CGContextRestoreGState(c: CGContext!)
func CGContextRestoreGState(c: CGContext!)
func CGContextRetain(c: CGContext!) -> CGContext!
func CGContextRetain(c: CGContext!) -> CGContext!
func CGContextRotateCTM(c: CGContext!, angle: CGFloat)
func CGContextRotateCTM(c: CGContext!, angle: CGFloat)
func CGContextSaveGState(c: CGContext!)
func CGContextSaveGState(c: CGContext!)
func CGContextScaleCTM(c: CGContext!, sx: CGFloat, sy: CGFloat)
func CGContextScaleCTM(c: CGContext!, sx: CGFloat, sy: CGFloat)
func CGContextSelectFont(c: CGContext!, name: CString, size: CGFloat, textEncoding: CGTextEncoding)
func CGContextSelectFont(c: CGContext!, name: CString, size: CGFloat, textEncoding: CGTextEncoding)
func CGContextSetAllowsAntialiasing(context: CGContext!, allowsAntialiasing: CBool)
func CGContextSetAllowsAntialiasing(context: CGContext!, allowsAntialiasing: CBool)
func CGContextSetAllowsFontSmoothing(context: CGContext!, allowsFontSmoothing: CBool)
func CGContextSetAllowsFontSmoothing(context: CGContext!, allowsFontSmoothing: CBool)
func CGContextSetAllowsFontSubpixelPositioning(context: CGContext!, allowsFontSubpixelPositioning: CBool)
func CGContextSetAllowsFontSubpixelPositioning(context: CGContext!, allowsFontSubpixelPositioning: CBool)
func CGContextSetAllowsFontSubpixelQuantization(context: CGContext!, allowsFontSubpixelQuantization: CBool)
func CGContextSetAllowsFontSubpixelQuantization(context: CGContext!, allowsFontSubpixelQuantization: CBool)
func CGContextSetAlpha(c: CGContext!, alpha: CGFloat)
func CGContextSetAlpha(c: CGContext!, alpha: CGFloat)
func CGContextSetBlendMode(context: CGContext!, mode: CGBlendMode)
func CGContextSetBlendMode(context: CGContext!, mode: CGBlendMode)
func CGContextSetCMYKFillColor(context: CGContext!, cyan: CGFloat, magenta: CGFloat, yellow: CGFloat, black: CGFloat, alpha: CGFloat)
func CGContextSetCMYKFillColor(context: CGContext!, cyan: CGFloat, magenta: CGFloat, yellow: CGFloat, black: CGFloat, alpha: CGFloat)
func CGContextSetCMYKStrokeColor(context: CGContext!, cyan: CGFloat, magenta: CGFloat, yellow: CGFloat, black: CGFloat, alpha: CGFloat)
func CGContextSetCMYKStrokeColor(context: CGContext!, cyan: CGFloat, magenta: CGFloat, yellow: CGFloat, black: CGFloat, alpha: CGFloat)
func CGContextSetCharacterSpacing(context: CGContext!, spacing: CGFloat)
func CGContextSetCharacterSpacing(context: CGContext!, spacing: CGFloat)
func CGContextSetFillColor(context: CGContext!, components: CConstPointer<CGFloat>)
func CGContextSetFillColor(context: CGContext!, components: CConstPointer<CGFloat>)
func CGContextSetFillColorSpace(context: CGContext!, space: CGColorSpace!)
func CGContextSetFillColorSpace(context: CGContext!, space: CGColorSpace!)
func CGContextSetFillColorWithColor(c: CGContext!, color: CGColor!)
func CGContextSetFillColorWithColor(c: CGContext!, color: CGColor!)
func CGContextSetFillPattern(context: CGContext!, pattern: CGPattern!, components: CConstPointer<CGFloat>)
func CGContextSetFillPattern(context: CGContext!, pattern: CGPattern!, components: CConstPointer<CGFloat>)
func CGContextSetFlatness(c: CGContext!, flatness: CGFloat)
func CGContextSetFlatness(c: CGContext!, flatness: CGFloat)
func CGContextSetFont(c: CGContext!, font: CGFont!)
func CGContextSetFont(c: CGContext!, font: CGFont!)
func CGContextSetFontSize(c: CGContext!, size: CGFloat)
func CGContextSetFontSize(c: CGContext!, size: CGFloat)
func CGContextSetGrayFillColor(context: CGContext!, gray: CGFloat, alpha: CGFloat)
func CGContextSetGrayFillColor(context: CGContext!, gray: CGFloat, alpha: CGFloat)
func CGContextSetGrayStrokeColor(context: CGContext!, gray: CGFloat, alpha: CGFloat)
func CGContextSetGrayStrokeColor(context: CGContext!, gray: CGFloat, alpha: CGFloat)
func CGContextSetInterpolationQuality(context: CGContext!, quality: CGInterpolationQuality)
func CGContextSetInterpolationQuality(context: CGContext!, quality: CGInterpolationQuality)
func CGContextSetLineCap(c: CGContext!, cap: CGLineCap)
func CGContextSetLineCap(c: CGContext!, cap: CGLineCap)
func CGContextSetLineDash(c: CGContext!, phase: CGFloat, lengths: CConstPointer<CGFloat>, count: UInt)
func CGContextSetLineDash(c: CGContext!, phase: CGFloat, lengths: CConstPointer<CGFloat>, count: UInt)
func CGContextSetLineJoin(c: CGContext!, join: CGLineJoin)
func CGContextSetLineJoin(c: CGContext!, join: CGLineJoin)
func CGContextSetLineWidth(c: CGContext!, width: CGFloat)
func CGContextSetLineWidth(c: CGContext!, width: CGFloat)
func CGContextSetMiterLimit(c: CGContext!, limit: CGFloat)
func CGContextSetMiterLimit(c: CGContext!, limit: CGFloat)
func CGContextSetPatternPhase(context: CGContext!, phase: CGSize)
func CGContextSetPatternPhase(context: CGContext!, phase: CGSize)
func CGContextSetRGBFillColor(context: CGContext!, red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat)
func CGContextSetRGBFillColor(context: CGContext!, red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat)
func CGContextSetRGBStrokeColor(context: CGContext!, red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat)
func CGContextSetRGBStrokeColor(context: CGContext!, red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat)
func CGContextSetRenderingIntent(context: CGContext!, intent: CGColorRenderingIntent)
func CGContextSetRenderingIntent(context: CGContext!, intent: CGColorRenderingIntent)
func CGContextSetShadow(context: CGContext!, offset: CGSize, blur: CGFloat)
func CGContextSetShadow(context: CGContext!, offset: CGSize, blur: CGFloat)
func CGContextSetShadowWithColor(context: CGContext!, offset: CGSize, blur: CGFloat, color: CGColor!)
func CGContextSetShadowWithColor(context: CGContext!, offset: CGSize, blur: CGFloat, color: CGColor!)
func CGContextSetShouldAntialias(context: CGContext!, shouldAntialias: CBool)
func CGContextSetShouldAntialias(context: CGContext!, shouldAntialias: CBool)
func CGContextSetShouldSmoothFonts(context: CGContext!, shouldSmoothFonts: CBool)
func CGContextSetShouldSmoothFonts(context: CGContext!, shouldSmoothFonts: CBool)
func CGContextSetShouldSubpixelPositionFonts(context: CGContext!, shouldSubpixelPositionFonts: CBool)
func CGContextSetShouldSubpixelPositionFonts(context: CGContext!, shouldSubpixelPositionFonts: CBool)
func CGContextSetShouldSubpixelQuantizeFonts(context: CGContext!, shouldSubpixelQuantizeFonts: CBool)
func CGContextSetShouldSubpixelQuantizeFonts(context: CGContext!, shouldSubpixelQuantizeFonts: CBool)
func CGContextSetStrokeColor(context: CGContext!, components: CConstPointer<CGFloat>)
func CGContextSetStrokeColor(context: CGContext!, components: CConstPointer<CGFloat>)
func CGContextSetStrokeColorSpace(context: CGContext!, space: CGColorSpace!)
func CGContextSetStrokeColorSpace(context: CGContext!, space: CGColorSpace!)
func CGContextSetStrokeColorWithColor(c: CGContext!, color: CGColor!)
func CGContextSetStrokeColorWithColor(c: CGContext!, color: CGColor!)
func CGContextSetStrokePattern(context: CGContext!, pattern: CGPattern!, components: CConstPointer<CGFloat>)
func CGContextSetStrokePattern(context: CGContext!, pattern: CGPattern!, components: CConstPointer<CGFloat>)
func CGContextSetTextDrawingMode(c: CGContext!, mode: CGTextDrawingMode)
func CGContextSetTextDrawingMode(c: CGContext!, mode: CGTextDrawingMode)
func CGContextSetTextMatrix(c: CGContext!, t: CGAffineTransform)
func CGContextSetTextMatrix(c: CGContext!, t: CGAffineTransform)
func CGContextSetTextPosition(c: CGContext!, x: CGFloat, y: CGFloat)
func CGContextSetTextPosition(c: CGContext!, x: CGFloat, y: CGFloat)
func CGContextShowGlyphs(c: CGContext!, g: CConstPointer<CGGlyph>, count: UInt)
func CGContextShowGlyphs(c: CGContext!, g: CConstPointer<CGGlyph>, count: UInt)
func CGContextShowGlyphsAtPoint(context: CGContext!, x: CGFloat, y: CGFloat, glyphs: CConstPointer<CGGlyph>, count: UInt)
func CGContextShowGlyphsAtPoint(context: CGContext!, x: CGFloat, y: CGFloat, glyphs: CConstPointer<CGGlyph>, count: UInt)
func CGContextShowGlyphsAtPositions(context: CGContext!, glyphs: CConstPointer<CGGlyph>, positions: CConstPointer<CGPoint>, count: UInt)
func CGContextShowGlyphsAtPositions(context: CGContext!, glyphs: CConstPointer<CGGlyph>, positions: CConstPointer<CGPoint>, count: UInt)
func CGContextShowGlyphsWithAdvances(context: CGContext!, glyphs: CConstPointer<CGGlyph>, advances: CConstPointer<CGSize>, count: UInt)
func CGContextShowGlyphsWithAdvances(context: CGContext!, glyphs: CConstPointer<CGGlyph>, advances: CConstPointer<CGSize>, count: UInt)
func CGContextShowText(c: CGContext!, string: CString, length: UInt)
func CGContextShowText(c: CGContext!, string: CString, length: UInt)
func CGContextShowTextAtPoint(c: CGContext!, x: CGFloat, y: CGFloat, string: CString, length: UInt)
func CGContextShowTextAtPoint(c: CGContext!, x: CGFloat, y: CGFloat, string: CString, length: UInt)
func CGContextStrokeEllipseInRect(context: CGContext!, rect: CGRect)
func CGContextStrokeEllipseInRect(context: CGContext!, rect: CGRect)
func CGContextStrokeLineSegments(c: CGContext!, points: CConstPointer<CGPoint>, count: UInt)
func CGContextStrokeLineSegments(c: CGContext!, points: CConstPointer<CGPoint>, count: UInt)
func CGContextStrokePath(c: CGContext!)
func CGContextStrokePath(c: CGContext!)
func CGContextStrokeRect(c: CGContext!, rect: CGRect)
func CGContextStrokeRect(c: CGContext!, rect: CGRect)
func CGContextStrokeRectWithWidth(c: CGContext!, rect: CGRect, width: CGFloat)
func CGContextStrokeRectWithWidth(c: CGContext!, rect: CGRect, width: CGFloat)
func CGContextSynchronize(c: CGContext!)
func CGContextSynchronize(c: CGContext!)
func CGContextTranslateCTM(c: CGContext!, tx: CGFloat, ty: CGFloat)
func CGContextTranslateCTM(c: CGContext!, tx: CGFloat, ty: CGFloat)
func CGCursorIsDrawnInFramebuffer() -> boolean_t
func CGCursorIsDrawnInFramebuffer() -> boolean_t
func CGCursorIsVisible() -> boolean_t
func CGCursorIsVisible() -> boolean_t
struct CGDataConsumerCallbacks {
init()
}
func CGDataConsumerCreate(info: CMutableVoidPointer, callbacks: CConstPointer<CGDataConsumerCallbacks>) -> CGDataConsumer!
func CGDataConsumerCreate(info: CMutableVoidPointer, callbacks: CConstPointer<CGDataConsumerCallbacks>) -> CGDataConsumer!
func CGDataConsumerCreateWithCFData(data: CFMutableData!) -> CGDataConsumer!
func CGDataConsumerCreateWithCFData(data: CFMutableData!) -> CGDataConsumer!
func CGDataConsumerCreateWithURL(url: CFURL!) -> CGDataConsumer!
func CGDataConsumerCreateWithURL(url: CFURL!) -> CGDataConsumer!
func CGDataConsumerGetTypeID() -> CFTypeID
func CGDataConsumerGetTypeID() -> CFTypeID
typealias CGDataConsumerRef = CGDataConsumer
func CGDataConsumerRelease(consumer: CGDataConsumer!)
func CGDataConsumerRelease(consumer: CGDataConsumer!)
func CGDataConsumerRetain(consumer: CGDataConsumer!) -> CGDataConsumer!
func CGDataConsumerRetain(consumer: CGDataConsumer!) -> CGDataConsumer!
func CGDataProviderCopyData(provider: CGDataProvider!) -> CFData!
func CGDataProviderCopyData(provider: CGDataProvider!) -> CFData!
func CGDataProviderCreateDirect(info: CMutableVoidPointer, size: off_t, callbacks: CConstPointer<CGDataProviderDirectCallbacks>) -> CGDataProvider!
func CGDataProviderCreateDirect(info: CMutableVoidPointer, size: off_t, callbacks: CConstPointer<CGDataProviderDirectCallbacks>) -> CGDataProvider!
func CGDataProviderCreateSequential(info: CMutableVoidPointer, callbacks: CConstPointer<CGDataProviderSequentialCallbacks>) -> CGDataProvider!
func CGDataProviderCreateSequential(info: CMutableVoidPointer, callbacks: CConstPointer<CGDataProviderSequentialCallbacks>) -> CGDataProvider!
func CGDataProviderCreateWithCFData(data: CFData!) -> CGDataProvider!
func CGDataProviderCreateWithCFData(data: CFData!) -> CGDataProvider!
func CGDataProviderCreateWithFilename(filename: CString) -> CGDataProvider!
func CGDataProviderCreateWithFilename(filename: CString) -> CGDataProvider!
func CGDataProviderCreateWithURL(url: CFURL!) -> CGDataProvider!
func CGDataProviderCreateWithURL(url: CFURL!) -> CGDataProvider!
struct CGDataProviderDirectCallbacks {
var version: CUnsignedInt
init(version: CUnsignedInt)
}
func CGDataProviderGetTypeID() -> CFTypeID
func CGDataProviderGetTypeID() -> CFTypeID
typealias CGDataProviderRef = CGDataProvider
func CGDataProviderRelease(provider: CGDataProvider!)
func CGDataProviderRelease(provider: CGDataProvider!)
func CGDataProviderRetain(provider: CGDataProvider!) -> CGDataProvider!
func CGDataProviderRetain(provider: CGDataProvider!) -> CGDataProvider!
struct CGDataProviderSequentialCallbacks {
var version: CUnsignedInt
init(version: CUnsignedInt)
}
struct CGDeviceColor {
var red: CFloat
var green: CFloat
var blue: CFloat
init(red: CFloat, green: CFloat, blue: CFloat)
}
typealias CGDirectDisplayID = UInt32
func CGDisplayAvailableModes(display: CGDirectDisplayID) -> Unmanaged<CFArray>!
func CGDisplayAvailableModes(display: CGDirectDisplayID) -> Unmanaged<CFArray>!
func CGDisplayBestModeForParameters(display: CGDirectDisplayID, bitsPerPixel: UInt, width: UInt, height: UInt, exactMatch: CMutablePointer<boolean_t>) -> Unmanaged<CFDictionary>!
func CGDisplayBestModeForParameters(display: CGDirectDisplayID, bitsPerPixel: UInt, width: UInt, height: UInt, exactMatch: CMutablePointer<boolean_t>) -> Unmanaged<CFDictionary>!
func CGDisplayBestModeForParametersAndRefreshRate(display: CGDirectDisplayID, bitsPerPixel: UInt, width: UInt, height: UInt, refreshRate: CGRefreshRate, exactMatch: CMutablePointer<boolean_t>) -> Unmanaged<CFDictionary>!
func CGDisplayBestModeForParametersAndRefreshRate(display: CGDirectDisplayID, bitsPerPixel: UInt, width: UInt, height: UInt, refreshRate: CGRefreshRate, exactMatch: CMutablePointer<boolean_t>) -> Unmanaged<CFDictionary>!
typealias CGDisplayBlendFraction = CFloat
func CGDisplayBounds(display: CGDirectDisplayID) -> CGRect
func CGDisplayBounds(display: CGDirectDisplayID) -> CGRect
func CGDisplayCapture(display: CGDirectDisplayID) -> CGError
func CGDisplayCapture(display: CGDirectDisplayID) -> CGError
func CGDisplayCaptureWithOptions(display: CGDirectDisplayID, options: CGCaptureOptions) -> CGError
func CGDisplayCaptureWithOptions(display: CGDirectDisplayID, options: CGCaptureOptions) -> CGError
typealias CGDisplayChangeSummaryFlags = UInt32
typealias CGDisplayConfigRef = CGDisplayConfig
func CGDisplayCopyAllDisplayModes(display: CGDirectDisplayID, options: CFDictionary!) -> Unmanaged<CFArray>!
func CGDisplayCopyAllDisplayModes(display: CGDirectDisplayID, options: CFDictionary!) -> Unmanaged<CFArray>!
func CGDisplayCopyColorSpace(display: CGDirectDisplayID) -> Unmanaged<CGColorSpace>!
func CGDisplayCopyColorSpace(display: CGDirectDisplayID) -> Unmanaged<CGColorSpace>!
func CGDisplayCopyDisplayMode(display: CGDirectDisplayID) -> Unmanaged<CGDisplayMode>!
func CGDisplayCopyDisplayMode(display: CGDirectDisplayID) -> Unmanaged<CGDisplayMode>!
typealias CGDisplayCount = UInt32
func CGDisplayCreateImage(displayID: CGDirectDisplayID) -> Unmanaged<CGImage>!
func CGDisplayCreateImage(displayID: CGDirectDisplayID) -> Unmanaged<CGImage>!
func CGDisplayCreateImageForRect(display: CGDirectDisplayID, rect: CGRect) -> Unmanaged<CGImage>!
func CGDisplayCreateImageForRect(display: CGDirectDisplayID, rect: CGRect) -> Unmanaged<CGImage>!
func CGDisplayCurrentMode(display: CGDirectDisplayID) -> Unmanaged<CFDictionary>!
func CGDisplayCurrentMode(display: CGDirectDisplayID) -> Unmanaged<CFDictionary>!
typealias CGDisplayErr = CGError
func CGDisplayFade(token: CGDisplayFadeReservationToken, duration: CGDisplayFadeInterval, startBlend: CGDisplayBlendFraction, endBlend: CGDisplayBlendFraction, redBlend: CFloat, greenBlend: CFloat, blueBlend: CFloat, synchronous: boolean_t) -> CGError
func CGDisplayFade(token: CGDisplayFadeReservationToken, duration: CGDisplayFadeInterval, startBlend: CGDisplayBlendFraction, endBlend: CGDisplayBlendFraction, redBlend: CFloat, greenBlend: CFloat, blueBlend: CFloat, synchronous: boolean_t) -> CGError
typealias CGDisplayFadeInterval = CFloat
func CGDisplayFadeOperationInProgress() -> boolean_t
func CGDisplayFadeOperationInProgress() -> boolean_t
typealias CGDisplayFadeReservationToken = UInt32
func CGDisplayGammaTableCapacity(display: CGDirectDisplayID) -> UInt32
func CGDisplayGammaTableCapacity(display: CGDirectDisplayID) -> UInt32
func CGDisplayGetDrawingContext(display: CGDirectDisplayID) -> Unmanaged<CGContext>!
func CGDisplayGetDrawingContext(display: CGDirectDisplayID) -> Unmanaged<CGContext>!
func CGDisplayHideCursor(display: CGDirectDisplayID) -> CGError
func CGDisplayHideCursor(display: CGDirectDisplayID) -> CGError
func CGDisplayIDToOpenGLDisplayMask(display: CGDirectDisplayID) -> CGOpenGLDisplayMask
func CGDisplayIDToOpenGLDisplayMask(display: CGDirectDisplayID) -> CGOpenGLDisplayMask
func CGDisplayIOServicePort(display: CGDirectDisplayID) -> io_service_t
func CGDisplayIOServicePort(display: CGDirectDisplayID) -> io_service_t
func CGDisplayIsActive(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsActive(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsAlwaysInMirrorSet(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsAlwaysInMirrorSet(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsAsleep(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsAsleep(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsBuiltin(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsBuiltin(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsCaptured(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsCaptured(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsInHWMirrorSet(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsInHWMirrorSet(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsInMirrorSet(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsInMirrorSet(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsMain(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsMain(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsOnline(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsOnline(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsStereo(display: CGDirectDisplayID) -> boolean_t
func CGDisplayIsStereo(display: CGDirectDisplayID) -> boolean_t
func CGDisplayMirrorsDisplay(display: CGDirectDisplayID) -> CGDirectDisplayID
func CGDisplayMirrorsDisplay(display: CGDirectDisplayID) -> CGDirectDisplayID
func CGDisplayModeCopyPixelEncoding(mode: CGDisplayMode!) -> Unmanaged<CFString>!
func CGDisplayModeCopyPixelEncoding(mode: CGDisplayMode!) -> Unmanaged<CFString>!
func CGDisplayModeGetHeight(mode: CGDisplayMode!) -> UInt
func CGDisplayModeGetHeight(mode: CGDisplayMode!) -> UInt
func CGDisplayModeGetIODisplayModeID(mode: CGDisplayMode!) -> Int32
func CGDisplayModeGetIODisplayModeID(mode: CGDisplayMode!) -> Int32
func CGDisplayModeGetIOFlags(mode: CGDisplayMode!) -> UInt32
func CGDisplayModeGetIOFlags(mode: CGDisplayMode!) -> UInt32
func CGDisplayModeGetPixelHeight(mode: CGDisplayMode!) -> UInt
func CGDisplayModeGetPixelHeight(mode: CGDisplayMode!) -> UInt
func CGDisplayModeGetPixelWidth(mode: CGDisplayMode!) -> UInt
func CGDisplayModeGetPixelWidth(mode: CGDisplayMode!) -> UInt
func CGDisplayModeGetRefreshRate(mode: CGDisplayMode!) -> CDouble
func CGDisplayModeGetRefreshRate(mode: CGDisplayMode!) -> CDouble
func CGDisplayModeGetTypeID() -> CFTypeID
func CGDisplayModeGetTypeID() -> CFTypeID
func CGDisplayModeGetWidth(mode: CGDisplayMode!) -> UInt
func CGDisplayModeGetWidth(mode: CGDisplayMode!) -> UInt
func CGDisplayModeIsUsableForDesktopGUI(mode: CGDisplayMode!) -> CBool
func CGDisplayModeIsUsableForDesktopGUI(mode: CGDisplayMode!) -> CBool
typealias CGDisplayModeRef = CGDisplayMode
func CGDisplayModeRelease(mode: CGDisplayMode!)
func CGDisplayModeRelease(mode: CGDisplayMode!)
func CGDisplayModeRetain(mode: CGDisplayMode!) -> Unmanaged<CGDisplayMode>!
func CGDisplayModeRetain(mode: CGDisplayMode!) -> Unmanaged<CGDisplayMode>!
func CGDisplayModelNumber(display: CGDirectDisplayID) -> UInt32
func CGDisplayModelNumber(display: CGDirectDisplayID) -> UInt32
func CGDisplayMoveCursorToPoint(display: CGDirectDisplayID, point: CGPoint) -> CGError
func CGDisplayMoveCursorToPoint(display: CGDirectDisplayID, point: CGPoint) -> CGError
func CGDisplayPixelsHigh(display: CGDirectDisplayID) -> UInt
func CGDisplayPixelsHigh(display: CGDirectDisplayID) -> UInt
func CGDisplayPixelsWide(display: CGDirectDisplayID) -> UInt
func CGDisplayPixelsWide(display: CGDirectDisplayID) -> UInt
func CGDisplayPrimaryDisplay(display: CGDirectDisplayID) -> CGDirectDisplayID
func CGDisplayPrimaryDisplay(display: CGDirectDisplayID) -> CGDirectDisplayID
func CGDisplayRelease(display: CGDirectDisplayID) -> CGError
func CGDisplayRelease(display: CGDirectDisplayID) -> CGError
typealias CGDisplayReservationInterval = CFloat
func CGDisplayRestoreColorSyncSettings()
func CGDisplayRestoreColorSyncSettings()
func CGDisplayRotation(display: CGDirectDisplayID) -> CDouble
func CGDisplayRotation(display: CGDirectDisplayID) -> CDouble
func CGDisplayScreenSize(display: CGDirectDisplayID) -> CGSize
func CGDisplayScreenSize(display: CGDirectDisplayID) -> CGSize
func CGDisplaySerialNumber(display: CGDirectDisplayID) -> UInt32
func CGDisplaySerialNumber(display: CGDirectDisplayID) -> UInt32
func CGDisplaySetDisplayMode(display: CGDirectDisplayID, mode: CGDisplayMode!, options: CFDictionary!) -> CGError
func CGDisplaySetDisplayMode(display: CGDirectDisplayID, mode: CGDisplayMode!, options: CFDictionary!) -> CGError
func CGDisplaySetStereoOperation(display: CGDirectDisplayID, stereo: boolean_t, forceBlueLine: boolean_t, option: CGConfigureOption) -> CGError
func CGDisplaySetStereoOperation(display: CGDirectDisplayID, stereo: boolean_t, forceBlueLine: boolean_t, option: CGConfigureOption) -> CGError
func CGDisplayShowCursor(display: CGDirectDisplayID) -> CGError
func CGDisplayShowCursor(display: CGDirectDisplayID) -> CGError
func CGDisplayStreamCreate(display: CGDirectDisplayID, outputWidth: UInt, outputHeight: UInt, pixelFormat: Int32, properties: CFDictionary!, handler: CGDisplayStreamFrameAvailableHandler!) -> Unmanaged<CGDisplayStream>!
func CGDisplayStreamCreate(display: CGDirectDisplayID, outputWidth: UInt, outputHeight: UInt, pixelFormat: Int32, properties: CFDictionary!, handler: CGDisplayStreamFrameAvailableHandler!) -> Unmanaged<CGDisplayStream>!
func CGDisplayStreamCreateWithDispatchQueue(display: CGDirectDisplayID, outputWidth: UInt, outputHeight: UInt, pixelFormat: Int32, properties: CFDictionary!, queue: dispatch_queue_t!, handler: CGDisplayStreamFrameAvailableHandler!) -> Unmanaged<CGDisplayStream>!
func CGDisplayStreamCreateWithDispatchQueue(display: CGDirectDisplayID, outputWidth: UInt, outputHeight: UInt, pixelFormat: Int32, properties: CFDictionary!, queue: dispatch_queue_t!, handler: CGDisplayStreamFrameAvailableHandler!) -> Unmanaged<CGDisplayStream>!
typealias CGDisplayStreamFrameAvailableHandler = @objc_block (CGDisplayStreamFrameStatus, UInt64, IOSurface!, CGDisplayStreamUpdate!) -> Void
typealias CGDisplayStreamFrameStatus = Int32
func CGDisplayStreamGetRunLoopSource(displayStream: CGDisplayStream!) -> Unmanaged<CFRunLoopSource>!
func CGDisplayStreamGetRunLoopSource(displayStream: CGDisplayStream!) -> Unmanaged<CFRunLoopSource>!
func CGDisplayStreamGetTypeID() -> CFTypeID
func CGDisplayStreamGetTypeID() -> CFTypeID
typealias CGDisplayStreamRef = CGDisplayStream
func CGDisplayStreamStart(displayStream: CGDisplayStream!) -> CGError
func CGDisplayStreamStart(displayStream: CGDisplayStream!) -> CGError
func CGDisplayStreamStop(displayStream: CGDisplayStream!) -> CGError
func CGDisplayStreamStop(displayStream: CGDisplayStream!) -> CGError
func CGDisplayStreamUpdateCreateMergedUpdate(firstUpdate: CGDisplayStreamUpdate!, secondUpdate: CGDisplayStreamUpdate!) -> Unmanaged<CGDisplayStreamUpdate>!
func CGDisplayStreamUpdateCreateMergedUpdate(firstUpdate: CGDisplayStreamUpdate!, secondUpdate: CGDisplayStreamUpdate!) -> Unmanaged<CGDisplayStreamUpdate>!
func CGDisplayStreamUpdateGetDropCount(updateRef: CGDisplayStreamUpdate!) -> UInt
func CGDisplayStreamUpdateGetDropCount(updateRef: CGDisplayStreamUpdate!) -> UInt
func CGDisplayStreamUpdateGetMovedRectsDelta(updateRef: CGDisplayStreamUpdate!, dx: CMutablePointer<CGFloat>, dy: CMutablePointer<CGFloat>)
func CGDisplayStreamUpdateGetMovedRectsDelta(updateRef: CGDisplayStreamUpdate!, dx: CMutablePointer<CGFloat>, dy: CMutablePointer<CGFloat>)
func CGDisplayStreamUpdateGetRects(updateRef: CGDisplayStreamUpdate!, rectType: CGDisplayStreamUpdateRectType, rectCount: CMutablePointer<UInt>) -> UnsafePointer<CGRect>
func CGDisplayStreamUpdateGetRects(updateRef: CGDisplayStreamUpdate!, rectType: CGDisplayStreamUpdateRectType, rectCount: CMutablePointer<UInt>) -> UnsafePointer<CGRect>
func CGDisplayStreamUpdateGetTypeID() -> CFTypeID
func CGDisplayStreamUpdateGetTypeID() -> CFTypeID
typealias CGDisplayStreamUpdateRectType = Int32
typealias CGDisplayStreamUpdateRef = CGDisplayStreamUpdate
func CGDisplaySwitchToMode(display: CGDirectDisplayID, mode: CFDictionary!) -> CGError
func CGDisplaySwitchToMode(display: CGDirectDisplayID, mode: CFDictionary!) -> CGError
func CGDisplayUnitNumber(display: CGDirectDisplayID) -> UInt32
func CGDisplayUnitNumber(display: CGDirectDisplayID) -> UInt32
func CGDisplayUsesOpenGLAcceleration(display: CGDirectDisplayID) -> boolean_t
func CGDisplayUsesOpenGLAcceleration(display: CGDirectDisplayID) -> boolean_t
func CGDisplayVendorNumber(display: CGDirectDisplayID) -> UInt32
func CGDisplayVendorNumber(display: CGDirectDisplayID) -> UInt32
func CGEnableEventStateCombining(combineState: boolean_t) -> CGError
func CGEnableEventStateCombining(combineState: boolean_t) -> CGError
typealias CGError = Int32
func CGEventCreate(source: CGEventSource!) -> Unmanaged<CGEvent>!
func CGEventCreate(source: CGEventSource!) -> Unmanaged<CGEvent>!
func CGEventCreateCopy(event: CGEvent!) -> Unmanaged<CGEvent>!
func CGEventCreateCopy(event: CGEvent!) -> Unmanaged<CGEvent>!
func CGEventCreateData(allocator: CFAllocator!, event: CGEvent!) -> Unmanaged<CFData>!
func CGEventCreateData(allocator: CFAllocator!, event: CGEvent!) -> Unmanaged<CFData>!
func CGEventCreateFromData(allocator: CFAllocator!, data: CFData!) -> Unmanaged<CGEvent>!
func CGEventCreateFromData(allocator: CFAllocator!, data: CFData!) -> Unmanaged<CGEvent>!
func CGEventCreateKeyboardEvent(source: CGEventSource!, virtualKey: CGKeyCode, keyDown: CBool) -> Unmanaged<CGEvent>!
func CGEventCreateKeyboardEvent(source: CGEventSource!, virtualKey: CGKeyCode, keyDown: CBool) -> Unmanaged<CGEvent>!
func CGEventCreateMouseEvent(source: CGEventSource!, mouseType: CGEventType, mouseCursorPosition: CGPoint, mouseButton: CGMouseButton) -> Unmanaged<CGEvent>!
func CGEventCreateMouseEvent(source: CGEventSource!, mouseType: CGEventType, mouseCursorPosition: CGPoint, mouseButton: CGMouseButton) -> Unmanaged<CGEvent>!
func CGEventCreateSourceFromEvent(event: CGEvent!) -> Unmanaged<CGEventSource>!
func CGEventCreateSourceFromEvent(event: CGEvent!) -> Unmanaged<CGEventSource>!
typealias CGEventErr = CGError
typealias CGEventField = UInt32
typealias CGEventFilterMask = UInt32
typealias CGEventFlags = UInt64
func CGEventGetDoubleValueField(event: CGEvent!, field: CGEventField) -> CDouble
func CGEventGetDoubleValueField(event: CGEvent!, field: CGEventField) -> CDouble
func CGEventGetFlags(event: CGEvent!) -> CGEventFlags
func CGEventGetFlags(event: CGEvent!) -> CGEventFlags
func CGEventGetIntegerValueField(event: CGEvent!, field: CGEventField) -> Int64
func CGEventGetIntegerValueField(event: CGEvent!, field: CGEventField) -> Int64
func CGEventGetLocation(event: CGEvent!) -> CGPoint
func CGEventGetLocation(event: CGEvent!) -> CGPoint
func CGEventGetTimestamp(event: CGEvent!) -> CGEventTimestamp
func CGEventGetTimestamp(event: CGEvent!) -> CGEventTimestamp
func CGEventGetType(event: CGEvent!) -> CGEventType
func CGEventGetType(event: CGEvent!) -> CGEventType
func CGEventGetTypeID() -> CFTypeID
func CGEventGetTypeID() -> CFTypeID
func CGEventGetUnflippedLocation(event: CGEvent!) -> CGPoint
func CGEventGetUnflippedLocation(event: CGEvent!) -> CGPoint
func CGEventKeyboardGetUnicodeString(event: CGEvent!, maxStringLength: UniCharCount, actualStringLength: CMutablePointer<UniCharCount>, unicodeString: CMutablePointer<UniChar>)
func CGEventKeyboardGetUnicodeString(event: CGEvent!, maxStringLength: UniCharCount, actualStringLength: CMutablePointer<UniCharCount>, unicodeString: CMutablePointer<UniChar>)
func CGEventKeyboardSetUnicodeString(event: CGEvent!, stringLength: UniCharCount, unicodeString: CConstPointer<UniChar>)
func CGEventKeyboardSetUnicodeString(event: CGEvent!, stringLength: UniCharCount, unicodeString: CConstPointer<UniChar>)
typealias CGEventMask = UInt64
typealias CGEventMouseSubtype = UInt32
func CGEventPost(tap: CGEventTapLocation, event: CGEvent!)
func CGEventPost(tap: CGEventTapLocation, event: CGEvent!)
func CGEventPostToPSN(processSerialNumber: CMutableVoidPointer, event: CGEvent!)
func CGEventPostToPSN(processSerialNumber: CMutableVoidPointer, event: CGEvent!)
typealias CGEventRef = CGEvent
func CGEventSetDoubleValueField(event: CGEvent!, field: CGEventField, value: CDouble)
func CGEventSetDoubleValueField(event: CGEvent!, field: CGEventField, value: CDouble)
func CGEventSetFlags(event: CGEvent!, flags: CGEventFlags)
func CGEventSetFlags(event: CGEvent!, flags: CGEventFlags)
func CGEventSetIntegerValueField(event: CGEvent!, field: CGEventField, value: Int64)
func CGEventSetIntegerValueField(event: CGEvent!, field: CGEventField, value: Int64)
func CGEventSetLocation(event: CGEvent!, location: CGPoint)
func CGEventSetLocation(event: CGEvent!, location: CGPoint)
func CGEventSetSource(event: CGEvent!, source: CGEventSource!)
func CGEventSetSource(event: CGEvent!, source: CGEventSource!)
func CGEventSetTimestamp(event: CGEvent!, timestamp: CGEventTimestamp)
func CGEventSetTimestamp(event: CGEvent!, timestamp: CGEventTimestamp)
func CGEventSetType(event: CGEvent!, type: CGEventType)
func CGEventSetType(event: CGEvent!, type: CGEventType)
func CGEventSourceButtonState(stateID: CGEventSourceStateID, button: CGMouseButton) -> CBool
func CGEventSourceButtonState(stateID: CGEventSourceStateID, button: CGMouseButton) -> CBool
func CGEventSourceCounterForEventType(stateID: CGEventSourceStateID, eventType: CGEventType) -> UInt32
func CGEventSourceCounterForEventType(stateID: CGEventSourceStateID, eventType: CGEventType) -> UInt32
func CGEventSourceCreate(stateID: CGEventSourceStateID) -> Unmanaged<CGEventSource>!
func CGEventSourceCreate(stateID: CGEventSourceStateID) -> Unmanaged<CGEventSource>!
func CGEventSourceFlagsState(stateID: CGEventSourceStateID) -> CGEventFlags
func CGEventSourceFlagsState(stateID: CGEventSourceStateID) -> CGEventFlags
func CGEventSourceGetKeyboardType(source: CGEventSource!) -> CGEventSourceKeyboardType
func CGEventSourceGetKeyboardType(source: CGEventSource!) -> CGEventSourceKeyboardType
func CGEventSourceGetLocalEventsFilterDuringSuppressionState(source: CGEventSource!, state: CGEventSuppressionState) -> CGEventFilterMask
func CGEventSourceGetLocalEventsFilterDuringSuppressionState(source: CGEventSource!, state: CGEventSuppressionState) -> CGEventFilterMask
func CGEventSourceGetLocalEventsSuppressionInterval(source: CGEventSource!) -> CFTimeInterval
func CGEventSourceGetLocalEventsSuppressionInterval(source: CGEventSource!) -> CFTimeInterval
func CGEventSourceGetPixelsPerLine(source: CGEventSource!) -> CDouble
func CGEventSourceGetPixelsPerLine(source: CGEventSource!) -> CDouble
func CGEventSourceGetSourceStateID(source: CGEventSource!) -> CGEventSourceStateID
func CGEventSourceGetSourceStateID(source: CGEventSource!) -> CGEventSourceStateID
func CGEventSourceGetTypeID() -> CFTypeID
func CGEventSourceGetTypeID() -> CFTypeID
func CGEventSourceGetUserData(source: CGEventSource!) -> Int64
func CGEventSourceGetUserData(source: CGEventSource!) -> Int64
func CGEventSourceKeyState(stateID: CGEventSourceStateID, key: CGKeyCode) -> CBool
func CGEventSourceKeyState(stateID: CGEventSourceStateID, key: CGKeyCode) -> CBool
typealias CGEventSourceKeyboardType = UInt32
typealias CGEventSourceRef = CGEventSource
func CGEventSourceSecondsSinceLastEventType(stateID: CGEventSourceStateID, eventType: CGEventType) -> CFTimeInterval
func CGEventSourceSecondsSinceLastEventType(stateID: CGEventSourceStateID, eventType: CGEventType) -> CFTimeInterval
func CGEventSourceSetKeyboardType(source: CGEventSource!, keyboardType: CGEventSourceKeyboardType)
func CGEventSourceSetKeyboardType(source: CGEventSource!, keyboardType: CGEventSourceKeyboardType)
func CGEventSourceSetLocalEventsFilterDuringSuppressionState(source: CGEventSource!, filter: CGEventFilterMask, state: CGEventSuppressionState)
func CGEventSourceSetLocalEventsFilterDuringSuppressionState(source: CGEventSource!, filter: CGEventFilterMask, state: CGEventSuppressionState)
func CGEventSourceSetLocalEventsSuppressionInterval(source: CGEventSource!, seconds: CFTimeInterval)
func CGEventSourceSetLocalEventsSuppressionInterval(source: CGEventSource!, seconds: CFTimeInterval)
func CGEventSourceSetPixelsPerLine(source: CGEventSource!, pixelsPerLine: CDouble)
func CGEventSourceSetPixelsPerLine(source: CGEventSource!, pixelsPerLine: CDouble)
func CGEventSourceSetUserData(source: CGEventSource!, userData: Int64)
func CGEventSourceSetUserData(source: CGEventSource!, userData: Int64)
typealias CGEventSourceStateID = UInt32
typealias CGEventSuppressionState = UInt32
func CGEventTapEnable(tap: CFMachPort!, enable: CBool)
func CGEventTapEnable(tap: CFMachPort!, enable: CBool)
typealias CGEventTapInformation = __CGEventTapInformation
func CGEventTapIsEnabled(tap: CFMachPort!) -> CBool
func CGEventTapIsEnabled(tap: CFMachPort!) -> CBool
typealias CGEventTapLocation = UInt32
typealias CGEventTapOptions = UInt32
typealias CGEventTapPlacement = UInt32
func CGEventTapPostEvent(proxy: CGEventTapProxy, event: CGEvent!)
func CGEventTapPostEvent(proxy: CGEventTapProxy, event: CGEvent!)
typealias CGEventTapProxy = COpaquePointer
typealias CGEventTimestamp = UInt64
typealias CGEventType = UInt32
typealias CGFloat = CDouble
func CGFontCanCreatePostScriptSubset(font: CGFont!, format: CGFontPostScriptFormat) -> CBool
func CGFontCanCreatePostScriptSubset(font: CGFont!, format: CGFontPostScriptFormat) -> CBool
func CGFontCopyFullName(font: CGFont!) -> CFString!
func CGFontCopyFullName(font: CGFont!) -> CFString!
func CGFontCopyGlyphNameForGlyph(font: CGFont!, glyph: CGGlyph) -> CFString!
func CGFontCopyGlyphNameForGlyph(font: CGFont!, glyph: CGGlyph) -> CFString!
func CGFontCopyPostScriptName(font: CGFont!) -> CFString!
func CGFontCopyPostScriptName(font: CGFont!) -> CFString!
func CGFontCopyTableForTag(font: CGFont!, tag: UInt32) -> CFData!
func CGFontCopyTableForTag(font: CGFont!, tag: UInt32) -> CFData!
func CGFontCopyTableTags(font: CGFont!) -> CFArray!
func CGFontCopyTableTags(font: CGFont!) -> CFArray!
func CGFontCopyVariationAxes(font: CGFont!) -> CFArray!
func CGFontCopyVariationAxes(font: CGFont!) -> CFArray!
func CGFontCopyVariations(font: CGFont!) -> CFDictionary!
func CGFontCopyVariations(font: CGFont!) -> CFDictionary!
func CGFontCreateCopyWithVariations(font: CGFont!, variations: CFDictionary!) -> CGFont!
func CGFontCreateCopyWithVariations(font: CGFont!, variations: CFDictionary!) -> CGFont!
func CGFontCreatePostScriptEncoding(font: CGFont!, encoding: CConstPointer<CGGlyph>) -> CFData!
func CGFontCreatePostScriptEncoding(font: CGFont!, encoding: CConstPointer<CGGlyph>) -> CFData!
func CGFontCreatePostScriptSubset(font: CGFont!, subsetName: CFString!, format: CGFontPostScriptFormat, glyphs: CConstPointer<CGGlyph>, count: UInt, encoding: CConstPointer<CGGlyph>) -> CFData!
func CGFontCreatePostScriptSubset(font: CGFont!, subsetName: CFString!, format: CGFontPostScriptFormat, glyphs: CConstPointer<CGGlyph>, count: UInt, encoding: CConstPointer<CGGlyph>) -> CFData!
func CGFontCreateWithDataProvider(provider: CGDataProvider!) -> CGFont!
func CGFontCreateWithDataProvider(provider: CGDataProvider!) -> CGFont!
func CGFontCreateWithFontName(name: CFString!) -> CGFont!
func CGFontCreateWithFontName(name: CFString!) -> CGFont!
func CGFontCreateWithPlatformFont(platformFontReference: CMutableVoidPointer) -> CGFont!
func CGFontCreateWithPlatformFont(platformFontReference: CMutableVoidPointer) -> CGFont!
func CGFontGetAscent(font: CGFont!) -> CInt
func CGFontGetAscent(font: CGFont!) -> CInt
func CGFontGetCapHeight(font: CGFont!) -> CInt
func CGFontGetCapHeight(font: CGFont!) -> CInt
func CGFontGetDescent(font: CGFont!) -> CInt
func CGFontGetDescent(font: CGFont!) -> CInt
func CGFontGetFontBBox(font: CGFont!) -> CGRect
func CGFontGetFontBBox(font: CGFont!) -> CGRect
func CGFontGetGlyphAdvances(font: CGFont!, glyphs: CConstPointer<CGGlyph>, count: UInt, advances: CMutablePointer<CInt>) -> CBool
func CGFontGetGlyphAdvances(font: CGFont!, glyphs: CConstPointer<CGGlyph>, count: UInt, advances: CMutablePointer<CInt>) -> CBool
func CGFontGetGlyphBBoxes(font: CGFont!, glyphs: CConstPointer<CGGlyph>, count: UInt, bboxes: CMutablePointer<CGRect>) -> CBool
func CGFontGetGlyphBBoxes(font: CGFont!, glyphs: CConstPointer<CGGlyph>, count: UInt, bboxes: CMutablePointer<CGRect>) -> CBool
func CGFontGetGlyphWithGlyphName(font: CGFont!, name: CFString!) -> CGGlyph
func CGFontGetGlyphWithGlyphName(font: CGFont!, name: CFString!) -> CGGlyph
func CGFontGetItalicAngle(font: CGFont!) -> CGFloat
func CGFontGetItalicAngle(font: CGFont!) -> CGFloat
func CGFontGetLeading(font: CGFont!) -> CInt
func CGFontGetLeading(font: CGFont!) -> CInt
func CGFontGetNumberOfGlyphs(font: CGFont!) -> UInt
func CGFontGetNumberOfGlyphs(font: CGFont!) -> UInt
func CGFontGetStemV(font: CGFont!) -> CGFloat
func CGFontGetStemV(font: CGFont!) -> CGFloat
func CGFontGetTypeID() -> CFTypeID
func CGFontGetTypeID() -> CFTypeID
func CGFontGetUnitsPerEm(font: CGFont!) -> CInt
func CGFontGetUnitsPerEm(font: CGFont!) -> CInt
func CGFontGetXHeight(font: CGFont!) -> CInt
func CGFontGetXHeight(font: CGFont!) -> CInt
typealias CGFontIndex = CUnsignedShort
struct CGFontPostScriptFormat {
init(_ value: CUnsignedInt) {
}
var value: CUnsignedInt
}
typealias CGFontRef = CGFont
func CGFontRelease(font: CGFont!)
func CGFontRelease(font: CGFont!)
func CGFontRetain(font: CGFont!) -> CGFont!
func CGFontRetain(font: CGFont!) -> CGFont!
struct CGFunctionCallbacks {
var version: CUnsignedInt
init(version: CUnsignedInt)
}
func CGFunctionCreate(info: CMutableVoidPointer, domainDimension: UInt, domain: CConstPointer<CGFloat>, rangeDimension: UInt, range: CConstPointer<CGFloat>, callbacks: CConstPointer<CGFunctionCallbacks>) -> CGFunction!
func CGFunctionCreate(info: CMutableVoidPointer, domainDimension: UInt, domain: CConstPointer<CGFloat>, rangeDimension: UInt, range: CConstPointer<CGFloat>, callbacks: CConstPointer<CGFunctionCallbacks>) -> CGFunction!
func CGFunctionGetTypeID() -> CFTypeID
func CGFunctionGetTypeID() -> CFTypeID
typealias CGFunctionRef = CGFunction
func CGFunctionRelease(function: CGFunction!)
func CGFunctionRelease(function: CGFunction!)
func CGFunctionRetain(function: CGFunction!) -> CGFunction!
func CGFunctionRetain(function: CGFunction!) -> CGFunction!
typealias CGGammaValue = CFloat
typealias CGGesturePhase = UInt32
func CGGetActiveDisplayList(maxDisplays: UInt32, activeDisplays: CMutablePointer<CGDirectDisplayID>, displayCount: CMutablePointer<UInt32>) -> CGError
func CGGetActiveDisplayList(maxDisplays: UInt32, activeDisplays: CMutablePointer<CGDirectDisplayID>, displayCount: CMutablePointer<UInt32>) -> CGError
func CGGetDisplayTransferByFormula(display: CGDirectDisplayID, redMin: CMutablePointer<CGGammaValue>, redMax: CMutablePointer<CGGammaValue>, redGamma: CMutablePointer<CGGammaValue>, greenMin: CMutablePointer<CGGammaValue>, greenMax: CMutablePointer<CGGammaValue>, greenGamma: CMutablePointer<CGGammaValue>, blueMin: CMutablePointer<CGGammaValue>, blueMax: CMutablePointer<CGGammaValue>, blueGamma: CMutablePointer<CGGammaValue>) -> CGError
func CGGetDisplayTransferByFormula(display: CGDirectDisplayID, redMin: CMutablePointer<CGGammaValue>, redMax: CMutablePointer<CGGammaValue>, redGamma: CMutablePointer<CGGammaValue>, greenMin: CMutablePointer<CGGammaValue>, greenMax: CMutablePointer<CGGammaValue>, greenGamma: CMutablePointer<CGGammaValue>, blueMin: CMutablePointer<CGGammaValue>, blueMax: CMutablePointer<CGGammaValue>, blueGamma: CMutablePointer<CGGammaValue>) -> CGError
func CGGetDisplayTransferByTable(display: CGDirectDisplayID, capacity: UInt32, redTable: CMutablePointer<CGGammaValue>, greenTable: CMutablePointer<CGGammaValue>, blueTable: CMutablePointer<CGGammaValue>, sampleCount: CMutablePointer<UInt32>) -> CGError
func CGGetDisplayTransferByTable(display: CGDirectDisplayID, capacity: UInt32, redTable: CMutablePointer<CGGammaValue>, greenTable: CMutablePointer<CGGammaValue>, blueTable: CMutablePointer<CGGammaValue>, sampleCount: CMutablePointer<UInt32>) -> CGError
func CGGetDisplaysWithOpenGLDisplayMask(mask: CGOpenGLDisplayMask, maxDisplays: UInt32, displays: CMutablePointer<CGDirectDisplayID>, matchingDisplayCount: CMutablePointer<UInt32>) -> CGError
func CGGetDisplaysWithOpenGLDisplayMask(mask: CGOpenGLDisplayMask, maxDisplays: UInt32, displays: CMutablePointer<CGDirectDisplayID>, matchingDisplayCount: CMutablePointer<UInt32>) -> CGError
func CGGetDisplaysWithPoint(point: CGPoint, maxDisplays: UInt32, displays: CMutablePointer<CGDirectDisplayID>, matchingDisplayCount: CMutablePointer<UInt32>) -> CGError
func CGGetDisplaysWithPoint(point: CGPoint, maxDisplays: UInt32, displays: CMutablePointer<CGDirectDisplayID>, matchingDisplayCount: CMutablePointer<UInt32>) -> CGError
func CGGetDisplaysWithRect(rect: CGRect, maxDisplays: UInt32, displays: CMutablePointer<CGDirectDisplayID>, matchingDisplayCount: CMutablePointer<UInt32>) -> CGError
func CGGetDisplaysWithRect(rect: CGRect, maxDisplays: UInt32, displays: CMutablePointer<CGDirectDisplayID>, matchingDisplayCount: CMutablePointer<UInt32>) -> CGError
func CGGetEventTapList(maxNumberOfTaps: UInt32, tapList: CMutablePointer<CGEventTapInformation>, eventTapCount: CMutablePointer<UInt32>) -> CGError
func CGGetEventTapList(maxNumberOfTaps: UInt32, tapList: CMutablePointer<CGEventTapInformation>, eventTapCount: CMutablePointer<UInt32>) -> CGError
func CGGetLastMouseDelta(deltaX: CMutablePointer<Int32>, deltaY: CMutablePointer<Int32>)
func CGGetLastMouseDelta(deltaX: CMutablePointer<Int32>, deltaY: CMutablePointer<Int32>)
func CGGetOnlineDisplayList(maxDisplays: UInt32, onlineDisplays: CMutablePointer<CGDirectDisplayID>, displayCount: CMutablePointer<UInt32>) -> CGError
func CGGetOnlineDisplayList(maxDisplays: UInt32, onlineDisplays: CMutablePointer<CGDirectDisplayID>, displayCount: CMutablePointer<UInt32>) -> CGError
typealias CGGlyph = CGFontIndex
@availability(*, unavailable) var CGGlyphMax: Int {
get {
return
}
}
@availability(*, unavailable) var CGGlyphMin: Int {
get {
return
}
}
func CGGradientCreateWithColorComponents(space: CGColorSpace!, components: CConstPointer<CGFloat>, locations: CConstPointer<CGFloat>, count: UInt) -> CGGradient!
func CGGradientCreateWithColorComponents(space: CGColorSpace!, components: CConstPointer<CGFloat>, locations: CConstPointer<CGFloat>, count: UInt) -> CGGradient!
func CGGradientCreateWithColors(space: CGColorSpace!, colors: CFArray!, locations: CConstPointer<CGFloat>) -> CGGradient!
func CGGradientCreateWithColors(space: CGColorSpace!, colors: CFArray!, locations: CConstPointer<CGFloat>) -> CGGradient!
typealias CGGradientDrawingOptions = UInt32
func CGGradientGetTypeID() -> CFTypeID
func CGGradientGetTypeID() -> CFTypeID
typealias CGGradientRef = CGGradient
func CGGradientRelease(gradient: CGGradient!)
func CGGradientRelease(gradient: CGGradient!)
func CGGradientRetain(gradient: CGGradient!) -> CGGradient!
func CGGradientRetain(gradient: CGGradient!) -> CGGradient!
enum CGImageAlphaInfo : UInt32 {
case None
case PremultipliedLast
case PremultipliedFirst
case Last
case First
case NoneSkipLast
case NoneSkipFirst
case Only
}
func CGImageCreate(width: UInt, height: UInt, bitsPerComponent: UInt, bitsPerPixel: UInt, bytesPerRow: UInt, space: CGColorSpace!, bitmapInfo: CGBitmapInfo, provider: CGDataProvider!, decode: CConstPointer<CGFloat>, shouldInterpolate: CBool, intent: CGColorRenderingIntent) -> CGImage!
func CGImageCreate(width: UInt, height: UInt, bitsPerComponent: UInt, bitsPerPixel: UInt, bytesPerRow: UInt, space: CGColorSpace!, bitmapInfo: CGBitmapInfo, provider: CGDataProvider!, decode: CConstPointer<CGFloat>, shouldInterpolate: CBool, intent: CGColorRenderingIntent) -> CGImage!
func CGImageCreateCopy(image: CGImage!) -> CGImage!
func CGImageCreateCopy(image: CGImage!) -> CGImage!
func CGImageCreateCopyWithColorSpace(image: CGImage!, space: CGColorSpace!) -> CGImage!
func CGImageCreateCopyWithColorSpace(image: CGImage!, space: CGColorSpace!) -> CGImage!
func CGImageCreateWithImageInRect(image: CGImage!, rect: CGRect) -> CGImage!
func CGImageCreateWithImageInRect(image: CGImage!, rect: CGRect) -> CGImage!
func CGImageCreateWithJPEGDataProvider(source: CGDataProvider!, decode: CConstPointer<CGFloat>, shouldInterpolate: CBool, intent: CGColorRenderingIntent) -> CGImage!
func CGImageCreateWithJPEGDataProvider(source: CGDataProvider!, decode: CConstPointer<CGFloat>, shouldInterpolate: CBool, intent: CGColorRenderingIntent) -> CGImage!
func CGImageCreateWithMask(image: CGImage!, mask: CGImage!) -> CGImage!
func CGImageCreateWithMask(image: CGImage!, mask: CGImage!) -> CGImage!
func CGImageCreateWithMaskingColors(image: CGImage!, components: CConstPointer<CGFloat>) -> CGImage!
func CGImageCreateWithMaskingColors(image: CGImage!, components: CConstPointer<CGFloat>) -> CGImage!