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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
pub type cairo_bool_t = ::libc::c_int;
pub enum Struct__cairo { }
pub type cairo_t = Struct__cairo;
pub enum Struct__cairo_surface { }
pub type cairo_surface_t = Struct__cairo_surface;
pub enum Struct__cairo_device { }
pub type cairo_device_t = Struct__cairo_device;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__cairo_matrix {
pub xx: ::libc::c_double,
pub yx: ::libc::c_double,
pub xy: ::libc::c_double,
pub yy: ::libc::c_double,
pub x0: ::libc::c_double,
pub y0: ::libc::c_double,
}
impl ::std::clone::Clone for Struct__cairo_matrix {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct__cairo_matrix {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type cairo_matrix_t = Struct__cairo_matrix;
pub enum Struct__cairo_pattern { }
pub type cairo_pattern_t = Struct__cairo_pattern;
pub type cairo_destroy_func_t =
::std::option::Option<extern "C" fn(data: *mut ::libc::c_void) >;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__cairo_user_data_key {
pub unused: ::libc::c_int,
}
impl ::std::clone::Clone for Struct__cairo_user_data_key {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct__cairo_user_data_key {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type cairo_user_data_key_t = Struct__cairo_user_data_key;
pub type Enum__cairo_status = ::libc::c_uint;
pub const CAIRO_STATUS_SUCCESS: ::libc::c_uint = 0;
pub const CAIRO_STATUS_NO_MEMORY: ::libc::c_uint = 1;
pub const CAIRO_STATUS_INVALID_RESTORE: ::libc::c_uint = 2;
pub const CAIRO_STATUS_INVALID_POP_GROUP: ::libc::c_uint = 3;
pub const CAIRO_STATUS_NO_CURRENT_POINT: ::libc::c_uint = 4;
pub const CAIRO_STATUS_INVALID_MATRIX: ::libc::c_uint = 5;
pub const CAIRO_STATUS_INVALID_STATUS: ::libc::c_uint = 6;
pub const CAIRO_STATUS_NULL_POINTER: ::libc::c_uint = 7;
pub const CAIRO_STATUS_INVALID_STRING: ::libc::c_uint = 8;
pub const CAIRO_STATUS_INVALID_PATH_DATA: ::libc::c_uint = 9;
pub const CAIRO_STATUS_READ_ERROR: ::libc::c_uint = 10;
pub const CAIRO_STATUS_WRITE_ERROR: ::libc::c_uint = 11;
pub const CAIRO_STATUS_SURFACE_FINISHED: ::libc::c_uint = 12;
pub const CAIRO_STATUS_SURFACE_TYPE_MISMATCH: ::libc::c_uint = 13;
pub const CAIRO_STATUS_PATTERN_TYPE_MISMATCH: ::libc::c_uint = 14;
pub const CAIRO_STATUS_INVALID_CONTENT: ::libc::c_uint = 15;
pub const CAIRO_STATUS_INVALID_FORMAT: ::libc::c_uint = 16;
pub const CAIRO_STATUS_INVALID_VISUAL: ::libc::c_uint = 17;
pub const CAIRO_STATUS_FILE_NOT_FOUND: ::libc::c_uint = 18;
pub const CAIRO_STATUS_INVALID_DASH: ::libc::c_uint = 19;
pub const CAIRO_STATUS_INVALID_DSC_COMMENT: ::libc::c_uint = 20;
pub const CAIRO_STATUS_INVALID_INDEX: ::libc::c_uint = 21;
pub const CAIRO_STATUS_CLIP_NOT_REPRESENTABLE: ::libc::c_uint = 22;
pub const CAIRO_STATUS_TEMP_FILE_ERROR: ::libc::c_uint = 23;
pub const CAIRO_STATUS_INVALID_STRIDE: ::libc::c_uint = 24;
pub const CAIRO_STATUS_FONT_TYPE_MISMATCH: ::libc::c_uint = 25;
pub const CAIRO_STATUS_USER_FONT_IMMUTABLE: ::libc::c_uint = 26;
pub const CAIRO_STATUS_USER_FONT_ERROR: ::libc::c_uint = 27;
pub const CAIRO_STATUS_NEGATIVE_COUNT: ::libc::c_uint = 28;
pub const CAIRO_STATUS_INVALID_CLUSTERS: ::libc::c_uint = 29;
pub const CAIRO_STATUS_INVALID_SLANT: ::libc::c_uint = 30;
pub const CAIRO_STATUS_INVALID_WEIGHT: ::libc::c_uint = 31;
pub const CAIRO_STATUS_INVALID_SIZE: ::libc::c_uint = 32;
pub const CAIRO_STATUS_USER_FONT_NOT_IMPLEMENTED: ::libc::c_uint = 33;
pub const CAIRO_STATUS_DEVICE_TYPE_MISMATCH: ::libc::c_uint = 34;
pub const CAIRO_STATUS_DEVICE_ERROR: ::libc::c_uint = 35;
pub const CAIRO_STATUS_INVALID_MESH_CONSTRUCTION: ::libc::c_uint = 36;
pub const CAIRO_STATUS_DEVICE_FINISHED: ::libc::c_uint = 37;
pub const CAIRO_STATUS_JBIG2_GLOBAL_MISSING: ::libc::c_uint = 38;
pub const CAIRO_STATUS_LAST_STATUS: ::libc::c_uint = 39;
pub type cairo_status_t = Enum__cairo_status;
pub type Enum__cairo_content = ::libc::c_uint;
pub const CAIRO_CONTENT_COLOR: ::libc::c_uint = 4096;
pub const CAIRO_CONTENT_ALPHA: ::libc::c_uint = 8192;
pub const CAIRO_CONTENT_COLOR_ALPHA: ::libc::c_uint = 12288;
pub type cairo_content_t = Enum__cairo_content;
pub type Enum__cairo_format = ::libc::c_int;
pub const CAIRO_FORMAT_INVALID: ::libc::c_int = -1;
pub const CAIRO_FORMAT_ARGB32: ::libc::c_int = 0;
pub const CAIRO_FORMAT_RGB24: ::libc::c_int = 1;
pub const CAIRO_FORMAT_A8: ::libc::c_int = 2;
pub const CAIRO_FORMAT_A1: ::libc::c_int = 3;
pub const CAIRO_FORMAT_RGB16_565: ::libc::c_int = 4;
pub const CAIRO_FORMAT_RGB30: ::libc::c_int = 5;
pub type cairo_format_t = Enum__cairo_format;
pub type cairo_write_func_t =
::std::option::Option<extern "C" fn(closure: *mut ::libc::c_void,
data: *const ::libc::c_uchar,
length: ::libc::c_uint)
-> cairo_status_t>;
pub type cairo_read_func_t =
::std::option::Option<extern "C" fn(closure: *mut ::libc::c_void,
data: *mut ::libc::c_uchar,
length: ::libc::c_uint)
-> cairo_status_t>;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__cairo_rectangle_int {
pub x: ::libc::c_int,
pub y: ::libc::c_int,
pub width: ::libc::c_int,
pub height: ::libc::c_int,
}
impl ::std::clone::Clone for Struct__cairo_rectangle_int {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct__cairo_rectangle_int {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type cairo_rectangle_int_t = Struct__cairo_rectangle_int;
pub type Enum__cairo_operator = ::libc::c_uint;
pub const CAIRO_OPERATOR_CLEAR: ::libc::c_uint = 0;
pub const CAIRO_OPERATOR_SOURCE: ::libc::c_uint = 1;
pub const CAIRO_OPERATOR_OVER: ::libc::c_uint = 2;
pub const CAIRO_OPERATOR_IN: ::libc::c_uint = 3;
pub const CAIRO_OPERATOR_OUT: ::libc::c_uint = 4;
pub const CAIRO_OPERATOR_ATOP: ::libc::c_uint = 5;
pub const CAIRO_OPERATOR_DEST: ::libc::c_uint = 6;
pub const CAIRO_OPERATOR_DEST_OVER: ::libc::c_uint = 7;
pub const CAIRO_OPERATOR_DEST_IN: ::libc::c_uint = 8;
pub const CAIRO_OPERATOR_DEST_OUT: ::libc::c_uint = 9;
pub const CAIRO_OPERATOR_DEST_ATOP: ::libc::c_uint = 10;
pub const CAIRO_OPERATOR_XOR: ::libc::c_uint = 11;
pub const CAIRO_OPERATOR_ADD: ::libc::c_uint = 12;
pub const CAIRO_OPERATOR_SATURATE: ::libc::c_uint = 13;
pub const CAIRO_OPERATOR_MULTIPLY: ::libc::c_uint = 14;
pub const CAIRO_OPERATOR_SCREEN: ::libc::c_uint = 15;
pub const CAIRO_OPERATOR_OVERLAY: ::libc::c_uint = 16;
pub const CAIRO_OPERATOR_DARKEN: ::libc::c_uint = 17;
pub const CAIRO_OPERATOR_LIGHTEN: ::libc::c_uint = 18;
pub const CAIRO_OPERATOR_COLOR_DODGE: ::libc::c_uint = 19;
pub const CAIRO_OPERATOR_COLOR_BURN: ::libc::c_uint = 20;
pub const CAIRO_OPERATOR_HARD_LIGHT: ::libc::c_uint = 21;
pub const CAIRO_OPERATOR_SOFT_LIGHT: ::libc::c_uint = 22;
pub const CAIRO_OPERATOR_DIFFERENCE: ::libc::c_uint = 23;
pub const CAIRO_OPERATOR_EXCLUSION: ::libc::c_uint = 24;
pub const CAIRO_OPERATOR_HSL_HUE: ::libc::c_uint = 25;
pub const CAIRO_OPERATOR_HSL_SATURATION: ::libc::c_uint = 26;
pub const CAIRO_OPERATOR_HSL_COLOR: ::libc::c_uint = 27;
pub const CAIRO_OPERATOR_HSL_LUMINOSITY: ::libc::c_uint = 28;
pub type cairo_operator_t = Enum__cairo_operator;
pub type Enum__cairo_antialias = ::libc::c_uint;
pub const CAIRO_ANTIALIAS_DEFAULT: ::libc::c_uint = 0;
pub const CAIRO_ANTIALIAS_NONE: ::libc::c_uint = 1;
pub const CAIRO_ANTIALIAS_GRAY: ::libc::c_uint = 2;
pub const CAIRO_ANTIALIAS_SUBPIXEL: ::libc::c_uint = 3;
pub const CAIRO_ANTIALIAS_FAST: ::libc::c_uint = 4;
pub const CAIRO_ANTIALIAS_GOOD: ::libc::c_uint = 5;
pub const CAIRO_ANTIALIAS_BEST: ::libc::c_uint = 6;
pub type cairo_antialias_t = Enum__cairo_antialias;
pub type Enum__cairo_fill_rule = ::libc::c_uint;
pub const CAIRO_FILL_RULE_WINDING: ::libc::c_uint = 0;
pub const CAIRO_FILL_RULE_EVEN_ODD: ::libc::c_uint = 1;
pub type cairo_fill_rule_t = Enum__cairo_fill_rule;
pub type Enum__cairo_line_cap = ::libc::c_uint;
pub const CAIRO_LINE_CAP_BUTT: ::libc::c_uint = 0;
pub const CAIRO_LINE_CAP_ROUND: ::libc::c_uint = 1;
pub const CAIRO_LINE_CAP_SQUARE: ::libc::c_uint = 2;
pub type cairo_line_cap_t = Enum__cairo_line_cap;
pub type Enum__cairo_line_join = ::libc::c_uint;
pub const CAIRO_LINE_JOIN_MITER: ::libc::c_uint = 0;
pub const CAIRO_LINE_JOIN_ROUND: ::libc::c_uint = 1;
pub const CAIRO_LINE_JOIN_BEVEL: ::libc::c_uint = 2;
pub type cairo_line_join_t = Enum__cairo_line_join;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__cairo_rectangle {
pub x: ::libc::c_double,
pub y: ::libc::c_double,
pub width: ::libc::c_double,
pub height: ::libc::c_double,
}
impl ::std::clone::Clone for Struct__cairo_rectangle {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct__cairo_rectangle {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type cairo_rectangle_t = Struct__cairo_rectangle;
#[repr(C)]
#[derive(Copy)]
pub struct Struct__cairo_rectangle_list {
pub status: cairo_status_t,
pub rectangles: *mut cairo_rectangle_t,
pub num_rectangles: ::libc::c_int,
}
impl ::std::clone::Clone for Struct__cairo_rectangle_list {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct__cairo_rectangle_list {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type cairo_rectangle_list_t = Struct__cairo_rectangle_list;
pub enum Struct__cairo_scaled_font { }
pub type cairo_scaled_font_t = Struct__cairo_scaled_font;
pub enum Struct__cairo_font_face { }
pub type cairo_font_face_t = Struct__cairo_font_face;
#[repr(C)]
#[derive(Copy)]
pub struct cairo_glyph_t {
pub index: ::libc::c_ulong,
pub x: ::libc::c_double,
pub y: ::libc::c_double,
}
impl ::std::clone::Clone for cairo_glyph_t {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for cairo_glyph_t {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct cairo_text_cluster_t {
pub num_bytes: ::libc::c_int,
pub num_glyphs: ::libc::c_int,
}
impl ::std::clone::Clone for cairo_text_cluster_t {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for cairo_text_cluster_t {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum__cairo_text_cluster_flags = ::libc::c_uint;
pub const CAIRO_TEXT_CLUSTER_FLAG_BACKWARD: ::libc::c_uint = 1;
pub type cairo_text_cluster_flags_t = Enum__cairo_text_cluster_flags;
#[repr(C)]
#[derive(Copy)]
pub struct cairo_text_extents_t {
pub x_bearing: ::libc::c_double,
pub y_bearing: ::libc::c_double,
pub width: ::libc::c_double,
pub height: ::libc::c_double,
pub x_advance: ::libc::c_double,
pub y_advance: ::libc::c_double,
}
impl ::std::clone::Clone for cairo_text_extents_t {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for cairo_text_extents_t {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct cairo_font_extents_t {
pub ascent: ::libc::c_double,
pub descent: ::libc::c_double,
pub height: ::libc::c_double,
pub max_x_advance: ::libc::c_double,
pub max_y_advance: ::libc::c_double,
}
impl ::std::clone::Clone for cairo_font_extents_t {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for cairo_font_extents_t {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type Enum__cairo_font_slant = ::libc::c_uint;
pub const CAIRO_FONT_SLANT_NORMAL: ::libc::c_uint = 0;
pub const CAIRO_FONT_SLANT_ITALIC: ::libc::c_uint = 1;
pub const CAIRO_FONT_SLANT_OBLIQUE: ::libc::c_uint = 2;
pub type cairo_font_slant_t = Enum__cairo_font_slant;
pub type Enum__cairo_font_weight = ::libc::c_uint;
pub const CAIRO_FONT_WEIGHT_NORMAL: ::libc::c_uint = 0;
pub const CAIRO_FONT_WEIGHT_BOLD: ::libc::c_uint = 1;
pub type cairo_font_weight_t = Enum__cairo_font_weight;
pub type Enum__cairo_subpixel_order = ::libc::c_uint;
pub const CAIRO_SUBPIXEL_ORDER_DEFAULT: ::libc::c_uint = 0;
pub const CAIRO_SUBPIXEL_ORDER_RGB: ::libc::c_uint = 1;
pub const CAIRO_SUBPIXEL_ORDER_BGR: ::libc::c_uint = 2;
pub const CAIRO_SUBPIXEL_ORDER_VRGB: ::libc::c_uint = 3;
pub const CAIRO_SUBPIXEL_ORDER_VBGR: ::libc::c_uint = 4;
pub type cairo_subpixel_order_t = Enum__cairo_subpixel_order;
pub type Enum__cairo_hint_style = ::libc::c_uint;
pub const CAIRO_HINT_STYLE_DEFAULT: ::libc::c_uint = 0;
pub const CAIRO_HINT_STYLE_NONE: ::libc::c_uint = 1;
pub const CAIRO_HINT_STYLE_SLIGHT: ::libc::c_uint = 2;
pub const CAIRO_HINT_STYLE_MEDIUM: ::libc::c_uint = 3;
pub const CAIRO_HINT_STYLE_FULL: ::libc::c_uint = 4;
pub type cairo_hint_style_t = Enum__cairo_hint_style;
pub type Enum__cairo_hint_metrics = ::libc::c_uint;
pub const CAIRO_HINT_METRICS_DEFAULT: ::libc::c_uint = 0;
pub const CAIRO_HINT_METRICS_OFF: ::libc::c_uint = 1;
pub const CAIRO_HINT_METRICS_ON: ::libc::c_uint = 2;
pub type cairo_hint_metrics_t = Enum__cairo_hint_metrics;
pub enum Struct__cairo_font_options { }
pub type cairo_font_options_t = Struct__cairo_font_options;
pub type Enum__cairo_font_type = ::libc::c_uint;
pub const CAIRO_FONT_TYPE_TOY: ::libc::c_uint = 0;
pub const CAIRO_FONT_TYPE_FT: ::libc::c_uint = 1;
pub const CAIRO_FONT_TYPE_WIN32: ::libc::c_uint = 2;
pub const CAIRO_FONT_TYPE_QUARTZ: ::libc::c_uint = 3;
pub const CAIRO_FONT_TYPE_USER: ::libc::c_uint = 4;
pub type cairo_font_type_t = Enum__cairo_font_type;
pub type cairo_user_scaled_font_init_func_t =
::std::option::Option<extern "C" fn(scaled_font: *mut cairo_scaled_font_t,
cr: *mut cairo_t,
extents: *mut cairo_font_extents_t)
-> cairo_status_t>;
pub type cairo_user_scaled_font_render_glyph_func_t =
::std::option::Option<extern "C" fn(scaled_font: *mut cairo_scaled_font_t,
glyph: ::libc::c_ulong,
cr: *mut cairo_t,
extents: *mut cairo_text_extents_t)
-> cairo_status_t>;
pub type cairo_user_scaled_font_text_to_glyphs_func_t =
::std::option::Option<extern "C" fn(scaled_font: *mut cairo_scaled_font_t,
utf8: *const ::libc::c_char,
utf8_len: ::libc::c_int,
glyphs: *mut *mut cairo_glyph_t,
num_glyphs: *mut ::libc::c_int,
clusters:
*mut *mut cairo_text_cluster_t,
num_clusters: *mut ::libc::c_int,
cluster_flags:
*mut cairo_text_cluster_flags_t)
-> cairo_status_t>;
pub type cairo_user_scaled_font_unicode_to_glyph_func_t =
::std::option::Option<extern "C" fn(scaled_font: *mut cairo_scaled_font_t,
unicode: ::libc::c_ulong,
glyph_index: *mut ::libc::c_ulong)
-> cairo_status_t>;
pub type Enum__cairo_path_data_type = ::libc::c_uint;
pub const CAIRO_PATH_MOVE_TO: ::libc::c_uint = 0;
pub const CAIRO_PATH_LINE_TO: ::libc::c_uint = 1;
pub const CAIRO_PATH_CURVE_TO: ::libc::c_uint = 2;
pub const CAIRO_PATH_CLOSE_PATH: ::libc::c_uint = 3;
pub type cairo_path_data_type_t = Enum__cairo_path_data_type;
pub type cairo_path_data_t = Union__cairo_path_data_t;
#[repr(C)]
#[derive(Copy)]
pub struct Union__cairo_path_data_t {
pub _bindgen_data_: [u64; 2usize],
}
impl Union__cairo_path_data_t {
pub unsafe fn header(&mut self) -> *mut Struct_cairo_path_data_t__header {
let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_);
::std::mem::transmute(raw.offset(0))
}
pub unsafe fn point(&mut self) -> *mut Struct_cairo_path_data_t__point {
let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_);
::std::mem::transmute(raw.offset(0))
}
}
impl ::std::clone::Clone for Union__cairo_path_data_t {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Union__cairo_path_data_t {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_cairo_path_data_t__header {
pub _type: cairo_path_data_type_t,
pub length: ::libc::c_int,
}
impl ::std::clone::Clone for Struct_cairo_path_data_t__header {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_cairo_path_data_t__header {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_cairo_path_data_t__point {
pub x: ::libc::c_double,
pub y: ::libc::c_double,
}
impl ::std::clone::Clone for Struct_cairo_path_data_t__point {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_cairo_path_data_t__point {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_cairo_path {
pub status: cairo_status_t,
pub data: *mut cairo_path_data_t,
pub num_data: ::libc::c_int,
}
impl ::std::clone::Clone for Struct_cairo_path {
fn clone(&self) -> Self { *self }
}
impl ::std::default::Default for Struct_cairo_path {
fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type cairo_path_t = Struct_cairo_path;
pub type Enum__cairo_device_type = ::libc::c_int;
pub const CAIRO_DEVICE_TYPE_DRM: ::libc::c_int = 0;
pub const CAIRO_DEVICE_TYPE_GL: ::libc::c_int = 1;
pub const CAIRO_DEVICE_TYPE_SCRIPT: ::libc::c_int = 2;
pub const CAIRO_DEVICE_TYPE_XCB: ::libc::c_int = 3;
pub const CAIRO_DEVICE_TYPE_XLIB: ::libc::c_int = 4;
pub const CAIRO_DEVICE_TYPE_XML: ::libc::c_int = 5;
pub const CAIRO_DEVICE_TYPE_COGL: ::libc::c_int = 6;
pub const CAIRO_DEVICE_TYPE_WIN32: ::libc::c_int = 7;
pub const CAIRO_DEVICE_TYPE_INVALID: ::libc::c_int = -1;
pub type cairo_device_type_t = Enum__cairo_device_type;
pub const CAIRO_SURFACE_OBSERVER_NORMAL: ::libc::c_uint = 0;
pub const CAIRO_SURFACE_OBSERVER_RECORD_OPERATIONS: ::libc::c_uint = 1;
pub type cairo_surface_observer_mode_t = ::libc::c_uint;
pub type cairo_surface_observer_callback_t =
::std::option::Option<extern "C" fn(observer: *mut cairo_surface_t,
target: *mut cairo_surface_t,
data: *mut ::libc::c_void) >;
pub type Enum__cairo_surface_type = ::libc::c_uint;
pub const CAIRO_SURFACE_TYPE_IMAGE: ::libc::c_uint = 0;
pub const CAIRO_SURFACE_TYPE_PDF: ::libc::c_uint = 1;
pub const CAIRO_SURFACE_TYPE_PS: ::libc::c_uint = 2;
pub const CAIRO_SURFACE_TYPE_XLIB: ::libc::c_uint = 3;
pub const CAIRO_SURFACE_TYPE_XCB: ::libc::c_uint = 4;
pub const CAIRO_SURFACE_TYPE_GLITZ: ::libc::c_uint = 5;
pub const CAIRO_SURFACE_TYPE_QUARTZ: ::libc::c_uint = 6;
pub const CAIRO_SURFACE_TYPE_WIN32: ::libc::c_uint = 7;
pub const CAIRO_SURFACE_TYPE_BEOS: ::libc::c_uint = 8;
pub const CAIRO_SURFACE_TYPE_DIRECTFB: ::libc::c_uint = 9;
pub const CAIRO_SURFACE_TYPE_SVG: ::libc::c_uint = 10;
pub const CAIRO_SURFACE_TYPE_OS2: ::libc::c_uint = 11;
pub const CAIRO_SURFACE_TYPE_WIN32_PRINTING: ::libc::c_uint = 12;
pub const CAIRO_SURFACE_TYPE_QUARTZ_IMAGE: ::libc::c_uint = 13;
pub const CAIRO_SURFACE_TYPE_SCRIPT: ::libc::c_uint = 14;
pub const CAIRO_SURFACE_TYPE_QT: ::libc::c_uint = 15;
pub const CAIRO_SURFACE_TYPE_RECORDING: ::libc::c_uint = 16;
pub const CAIRO_SURFACE_TYPE_VG: ::libc::c_uint = 17;
pub const CAIRO_SURFACE_TYPE_GL: ::libc::c_uint = 18;
pub const CAIRO_SURFACE_TYPE_DRM: ::libc::c_uint = 19;
pub const CAIRO_SURFACE_TYPE_TEE: ::libc::c_uint = 20;
pub const CAIRO_SURFACE_TYPE_XML: ::libc::c_uint = 21;
pub const CAIRO_SURFACE_TYPE_SKIA: ::libc::c_uint = 22;
pub const CAIRO_SURFACE_TYPE_SUBSURFACE: ::libc::c_uint = 23;
pub const CAIRO_SURFACE_TYPE_COGL: ::libc::c_uint = 24;
pub type cairo_surface_type_t = Enum__cairo_surface_type;
pub type cairo_raster_source_acquire_func_t =
::std::option::Option<extern "C" fn(pattern: *mut cairo_pattern_t,
callback_data: *mut ::libc::c_void,
target: *mut cairo_surface_t,
extents: *const cairo_rectangle_int_t)
-> *mut cairo_surface_t>;
pub type cairo_raster_source_release_func_t =
::std::option::Option<extern "C" fn(pattern: *mut cairo_pattern_t,
callback_data: *mut ::libc::c_void,
surface: *mut cairo_surface_t) >;
pub type cairo_raster_source_snapshot_func_t =
::std::option::Option<extern "C" fn(pattern: *mut cairo_pattern_t,
callback_data: *mut ::libc::c_void)
-> cairo_status_t>;
pub type cairo_raster_source_copy_func_t =
::std::option::Option<extern "C" fn(pattern: *mut cairo_pattern_t,
callback_data: *mut ::libc::c_void,
other: *const cairo_pattern_t)
-> cairo_status_t>;
pub type cairo_raster_source_finish_func_t =
::std::option::Option<extern "C" fn(pattern: *mut cairo_pattern_t,
callback_data: *mut ::libc::c_void)
>;
pub type Enum__cairo_pattern_type = ::libc::c_uint;
pub const CAIRO_PATTERN_TYPE_SOLID: ::libc::c_uint = 0;
pub const CAIRO_PATTERN_TYPE_SURFACE: ::libc::c_uint = 1;
pub const CAIRO_PATTERN_TYPE_LINEAR: ::libc::c_uint = 2;
pub const CAIRO_PATTERN_TYPE_RADIAL: ::libc::c_uint = 3;
pub const CAIRO_PATTERN_TYPE_MESH: ::libc::c_uint = 4;
pub const CAIRO_PATTERN_TYPE_RASTER_SOURCE: ::libc::c_uint = 5;
pub type cairo_pattern_type_t = Enum__cairo_pattern_type;
pub type Enum__cairo_extend = ::libc::c_uint;
pub const CAIRO_EXTEND_NONE: ::libc::c_uint = 0;
pub const CAIRO_EXTEND_REPEAT: ::libc::c_uint = 1;
pub const CAIRO_EXTEND_REFLECT: ::libc::c_uint = 2;
pub const CAIRO_EXTEND_PAD: ::libc::c_uint = 3;
pub type cairo_extend_t = Enum__cairo_extend;
pub type Enum__cairo_filter = ::libc::c_uint;
pub const CAIRO_FILTER_FAST: ::libc::c_uint = 0;
pub const CAIRO_FILTER_GOOD: ::libc::c_uint = 1;
pub const CAIRO_FILTER_BEST: ::libc::c_uint = 2;
pub const CAIRO_FILTER_NEAREST: ::libc::c_uint = 3;
pub const CAIRO_FILTER_BILINEAR: ::libc::c_uint = 4;
pub const CAIRO_FILTER_GAUSSIAN: ::libc::c_uint = 5;
pub type cairo_filter_t = Enum__cairo_filter;
pub enum Struct__cairo_region { }
pub type cairo_region_t = Struct__cairo_region;
pub type Enum__cairo_region_overlap = ::libc::c_uint;
pub const CAIRO_REGION_OVERLAP_IN: ::libc::c_uint = 0;
pub const CAIRO_REGION_OVERLAP_OUT: ::libc::c_uint = 1;
pub const CAIRO_REGION_OVERLAP_PART: ::libc::c_uint = 2;
pub type cairo_region_overlap_t = Enum__cairo_region_overlap;
extern "C" {
pub fn cairo_version() -> ::libc::c_int;
pub fn cairo_version_string() -> *const ::libc::c_char;
pub fn cairo_create(target: *mut cairo_surface_t) -> *mut cairo_t;
pub fn cairo_reference(cr: *mut cairo_t) -> *mut cairo_t;
pub fn cairo_destroy(cr: *mut cairo_t) ;
pub fn cairo_get_reference_count(cr: *mut cairo_t) -> ::libc::c_uint;
pub fn cairo_get_user_data(cr: *mut cairo_t,
key: *const cairo_user_data_key_t)
-> *mut ::libc::c_void;
pub fn cairo_set_user_data(cr: *mut cairo_t,
key: *const cairo_user_data_key_t,
user_data: *mut ::libc::c_void,
destroy: cairo_destroy_func_t)
-> cairo_status_t;
pub fn cairo_save(cr: *mut cairo_t) ;
pub fn cairo_restore(cr: *mut cairo_t) ;
pub fn cairo_push_group(cr: *mut cairo_t) ;
pub fn cairo_push_group_with_content(cr: *mut cairo_t,
content: cairo_content_t) ;
pub fn cairo_pop_group(cr: *mut cairo_t) -> *mut cairo_pattern_t;
pub fn cairo_pop_group_to_source(cr: *mut cairo_t) ;
pub fn cairo_set_operator(cr: *mut cairo_t, op: cairo_operator_t) ;
pub fn cairo_set_source(cr: *mut cairo_t, source: *mut cairo_pattern_t)
;
pub fn cairo_set_source_rgb(cr: *mut cairo_t, red: ::libc::c_double,
green: ::libc::c_double,
blue: ::libc::c_double) ;
pub fn cairo_set_source_rgba(cr: *mut cairo_t, red: ::libc::c_double,
green: ::libc::c_double,
blue: ::libc::c_double,
alpha: ::libc::c_double) ;
pub fn cairo_set_source_surface(cr: *mut cairo_t,
surface: *mut cairo_surface_t,
x: ::libc::c_double, y: ::libc::c_double)
;
pub fn cairo_set_tolerance(cr: *mut cairo_t, tolerance: ::libc::c_double)
;
pub fn cairo_set_antialias(cr: *mut cairo_t, antialias: cairo_antialias_t)
;
pub fn cairo_set_fill_rule(cr: *mut cairo_t, fill_rule: cairo_fill_rule_t)
;
pub fn cairo_set_line_width(cr: *mut cairo_t, width: ::libc::c_double)
;
pub fn cairo_set_line_cap(cr: *mut cairo_t, line_cap: cairo_line_cap_t)
;
pub fn cairo_set_line_join(cr: *mut cairo_t, line_join: cairo_line_join_t)
;
pub fn cairo_set_dash(cr: *mut cairo_t, dashes: *const ::libc::c_double,
num_dashes: ::libc::c_int, offset: ::libc::c_double)
;
pub fn cairo_set_miter_limit(cr: *mut cairo_t, limit: ::libc::c_double)
;
pub fn cairo_translate(cr: *mut cairo_t, tx: ::libc::c_double,
ty: ::libc::c_double) ;
pub fn cairo_scale(cr: *mut cairo_t, sx: ::libc::c_double,
sy: ::libc::c_double) ;
pub fn cairo_rotate(cr: *mut cairo_t, angle: ::libc::c_double) ;
pub fn cairo_transform(cr: *mut cairo_t, matrix: *const cairo_matrix_t)
;
pub fn cairo_set_matrix(cr: *mut cairo_t, matrix: *const cairo_matrix_t)
;
pub fn cairo_identity_matrix(cr: *mut cairo_t) ;
pub fn cairo_user_to_device(cr: *mut cairo_t, x: *mut ::libc::c_double,
y: *mut ::libc::c_double) ;
pub fn cairo_user_to_device_distance(cr: *mut cairo_t,
dx: *mut ::libc::c_double,
dy: *mut ::libc::c_double) ;
pub fn cairo_device_to_user(cr: *mut cairo_t, x: *mut ::libc::c_double,
y: *mut ::libc::c_double) ;
pub fn cairo_device_to_user_distance(cr: *mut cairo_t,
dx: *mut ::libc::c_double,
dy: *mut ::libc::c_double) ;
pub fn cairo_new_path(cr: *mut cairo_t) ;
pub fn cairo_move_to(cr: *mut cairo_t, x: ::libc::c_double,
y: ::libc::c_double) ;
pub fn cairo_new_sub_path(cr: *mut cairo_t) ;
pub fn cairo_line_to(cr: *mut cairo_t, x: ::libc::c_double,
y: ::libc::c_double) ;
pub fn cairo_curve_to(cr: *mut cairo_t, x1: ::libc::c_double,
y1: ::libc::c_double, x2: ::libc::c_double,
y2: ::libc::c_double, x3: ::libc::c_double,
y3: ::libc::c_double) ;
pub fn cairo_arc(cr: *mut cairo_t, xc: ::libc::c_double,
yc: ::libc::c_double, radius: ::libc::c_double,
angle1: ::libc::c_double, angle2: ::libc::c_double)
;
pub fn cairo_arc_negative(cr: *mut cairo_t, xc: ::libc::c_double,
yc: ::libc::c_double, radius: ::libc::c_double,
angle1: ::libc::c_double,
angle2: ::libc::c_double) ;
pub fn cairo_rel_move_to(cr: *mut cairo_t, dx: ::libc::c_double,
dy: ::libc::c_double) ;
pub fn cairo_rel_line_to(cr: *mut cairo_t, dx: ::libc::c_double,
dy: ::libc::c_double) ;
pub fn cairo_rel_curve_to(cr: *mut cairo_t, dx1: ::libc::c_double,
dy1: ::libc::c_double, dx2: ::libc::c_double,
dy2: ::libc::c_double, dx3: ::libc::c_double,
dy3: ::libc::c_double) ;
pub fn cairo_rectangle(cr: *mut cairo_t, x: ::libc::c_double,
y: ::libc::c_double, width: ::libc::c_double,
height: ::libc::c_double) ;
pub fn cairo_close_path(cr: *mut cairo_t) ;
pub fn cairo_path_extents(cr: *mut cairo_t, x1: *mut ::libc::c_double,
y1: *mut ::libc::c_double,
x2: *mut ::libc::c_double,
y2: *mut ::libc::c_double) ;
pub fn cairo_paint(cr: *mut cairo_t) ;
pub fn cairo_paint_with_alpha(cr: *mut cairo_t, alpha: ::libc::c_double)
;
pub fn cairo_mask(cr: *mut cairo_t, pattern: *mut cairo_pattern_t) ;
pub fn cairo_mask_surface(cr: *mut cairo_t, surface: *mut cairo_surface_t,
surface_x: ::libc::c_double,
surface_y: ::libc::c_double) ;
pub fn cairo_stroke(cr: *mut cairo_t) ;
pub fn cairo_stroke_preserve(cr: *mut cairo_t) ;
pub fn cairo_fill(cr: *mut cairo_t) ;
pub fn cairo_fill_preserve(cr: *mut cairo_t) ;
pub fn cairo_copy_page(cr: *mut cairo_t) ;
pub fn cairo_show_page(cr: *mut cairo_t) ;
pub fn cairo_in_stroke(cr: *mut cairo_t, x: ::libc::c_double,
y: ::libc::c_double) -> cairo_bool_t;
pub fn cairo_in_fill(cr: *mut cairo_t, x: ::libc::c_double,
y: ::libc::c_double) -> cairo_bool_t;
pub fn cairo_in_clip(cr: *mut cairo_t, x: ::libc::c_double,
y: ::libc::c_double) -> cairo_bool_t;
pub fn cairo_stroke_extents(cr: *mut cairo_t, x1: *mut ::libc::c_double,
y1: *mut ::libc::c_double,
x2: *mut ::libc::c_double,
y2: *mut ::libc::c_double) ;
pub fn cairo_fill_extents(cr: *mut cairo_t, x1: *mut ::libc::c_double,
y1: *mut ::libc::c_double,
x2: *mut ::libc::c_double,
y2: *mut ::libc::c_double) ;
pub fn cairo_reset_clip(cr: *mut cairo_t) ;
pub fn cairo_clip(cr: *mut cairo_t) ;
pub fn cairo_clip_preserve(cr: *mut cairo_t) ;
pub fn cairo_clip_extents(cr: *mut cairo_t, x1: *mut ::libc::c_double,
y1: *mut ::libc::c_double,
x2: *mut ::libc::c_double,
y2: *mut ::libc::c_double) ;
pub fn cairo_copy_clip_rectangle_list(cr: *mut cairo_t)
-> *mut cairo_rectangle_list_t;
pub fn cairo_rectangle_list_destroy(rectangle_list:
*mut cairo_rectangle_list_t)
;
pub fn cairo_glyph_allocate(num_glyphs: ::libc::c_int)
-> *mut cairo_glyph_t;
pub fn cairo_glyph_free(glyphs: *mut cairo_glyph_t) ;
pub fn cairo_text_cluster_allocate(num_clusters: ::libc::c_int)
-> *mut cairo_text_cluster_t;
pub fn cairo_text_cluster_free(clusters: *mut cairo_text_cluster_t) ;
pub fn cairo_font_options_create() -> *mut cairo_font_options_t;
pub fn cairo_font_options_copy(original: *const cairo_font_options_t)
-> *mut cairo_font_options_t;
pub fn cairo_font_options_destroy(options: *mut cairo_font_options_t)
;
pub fn cairo_font_options_status(options: *mut cairo_font_options_t)
-> cairo_status_t;
pub fn cairo_font_options_merge(options: *mut cairo_font_options_t,
other: *const cairo_font_options_t) ;
pub fn cairo_font_options_equal(options: *const cairo_font_options_t,
other: *const cairo_font_options_t)
-> cairo_bool_t;
pub fn cairo_font_options_hash(options: *const cairo_font_options_t)
-> ::libc::c_ulong;
pub fn cairo_font_options_set_antialias(options:
*mut cairo_font_options_t,
antialias: cairo_antialias_t)
;
pub fn cairo_font_options_get_antialias(options:
*const cairo_font_options_t)
-> cairo_antialias_t;
pub fn cairo_font_options_set_subpixel_order(options:
*mut cairo_font_options_t,
subpixel_order:
cairo_subpixel_order_t)
;
pub fn cairo_font_options_get_subpixel_order(options:
*const cairo_font_options_t)
-> cairo_subpixel_order_t;
pub fn cairo_font_options_set_hint_style(options:
*mut cairo_font_options_t,
hint_style: cairo_hint_style_t)
;
pub fn cairo_font_options_get_hint_style(options:
*const cairo_font_options_t)
-> cairo_hint_style_t;
pub fn cairo_font_options_set_hint_metrics(options:
*mut cairo_font_options_t,
hint_metrics:
cairo_hint_metrics_t)
;
pub fn cairo_font_options_get_hint_metrics(options:
*const cairo_font_options_t)
-> cairo_hint_metrics_t;
pub fn cairo_select_font_face(cr: *mut cairo_t,
family: *const ::libc::c_char,
slant: cairo_font_slant_t,
weight: cairo_font_weight_t) ;
pub fn cairo_set_font_size(cr: *mut cairo_t, size: ::libc::c_double)
;
pub fn cairo_set_font_matrix(cr: *mut cairo_t,
matrix: *const cairo_matrix_t) ;
pub fn cairo_get_font_matrix(cr: *mut cairo_t,
matrix: *mut cairo_matrix_t) ;
pub fn cairo_set_font_options(cr: *mut cairo_t,
options: *const cairo_font_options_t) ;
pub fn cairo_get_font_options(cr: *mut cairo_t,
options: *mut cairo_font_options_t) ;
pub fn cairo_set_font_face(cr: *mut cairo_t,
font_face: *mut cairo_font_face_t) ;
pub fn cairo_get_font_face(cr: *mut cairo_t) -> *mut cairo_font_face_t;
pub fn cairo_set_scaled_font(cr: *mut cairo_t,
scaled_font: *const cairo_scaled_font_t)
;
pub fn cairo_get_scaled_font(cr: *mut cairo_t)
-> *mut cairo_scaled_font_t;
pub fn cairo_show_text(cr: *mut cairo_t, utf8: *const ::libc::c_char)
;
pub fn cairo_show_glyphs(cr: *mut cairo_t, glyphs: *const cairo_glyph_t,
num_glyphs: ::libc::c_int) ;
pub fn cairo_show_text_glyphs(cr: *mut cairo_t,
utf8: *const ::libc::c_char,
utf8_len: ::libc::c_int,
glyphs: *const cairo_glyph_t,
num_glyphs: ::libc::c_int,
clusters: *const cairo_text_cluster_t,
num_clusters: ::libc::c_int,
cluster_flags: cairo_text_cluster_flags_t)
;
pub fn cairo_text_path(cr: *mut cairo_t, utf8: *const ::libc::c_char)
;
pub fn cairo_glyph_path(cr: *mut cairo_t, glyphs: *const cairo_glyph_t,
num_glyphs: ::libc::c_int) ;
pub fn cairo_text_extents(cr: *mut cairo_t, utf8: *const ::libc::c_char,
extents: *mut cairo_text_extents_t) ;
pub fn cairo_glyph_extents(cr: *mut cairo_t, glyphs: *const cairo_glyph_t,
num_glyphs: ::libc::c_int,
extents: *mut cairo_text_extents_t) ;
pub fn cairo_font_extents(cr: *mut cairo_t,
extents: *mut cairo_font_extents_t) ;
pub fn cairo_font_face_reference(font_face: *mut cairo_font_face_t)
-> *mut cairo_font_face_t;
pub fn cairo_font_face_destroy(font_face: *mut cairo_font_face_t) ;
pub fn cairo_font_face_get_reference_count(font_face:
*mut cairo_font_face_t)
-> ::libc::c_uint;
pub fn cairo_font_face_status(font_face: *mut cairo_font_face_t)
-> cairo_status_t;
pub fn cairo_font_face_get_type(font_face: *mut cairo_font_face_t)
-> cairo_font_type_t;
pub fn cairo_font_face_get_user_data(font_face: *mut cairo_font_face_t,
key: *const cairo_user_data_key_t)
-> *mut ::libc::c_void;
pub fn cairo_font_face_set_user_data(font_face: *mut cairo_font_face_t,
key: *const cairo_user_data_key_t,
user_data: *mut ::libc::c_void,
destroy: cairo_destroy_func_t)
-> cairo_status_t;
pub fn cairo_scaled_font_create(font_face: *mut cairo_font_face_t,
font_matrix: *const cairo_matrix_t,
ctm: *const cairo_matrix_t,
options: *const cairo_font_options_t)
-> *mut cairo_scaled_font_t;
pub fn cairo_scaled_font_reference(scaled_font: *mut cairo_scaled_font_t)
-> *mut cairo_scaled_font_t;
pub fn cairo_scaled_font_destroy(scaled_font: *mut cairo_scaled_font_t)
;
pub fn cairo_scaled_font_get_reference_count(scaled_font:
*mut cairo_scaled_font_t)
-> ::libc::c_uint;
pub fn cairo_scaled_font_status(scaled_font: *mut cairo_scaled_font_t)
-> cairo_status_t;
pub fn cairo_scaled_font_get_type(scaled_font: *mut cairo_scaled_font_t)
-> cairo_font_type_t;
pub fn cairo_scaled_font_get_user_data(scaled_font:
*mut cairo_scaled_font_t,
key: *const cairo_user_data_key_t)
-> *mut ::libc::c_void;
pub fn cairo_scaled_font_set_user_data(scaled_font:
*mut cairo_scaled_font_t,
key: *const cairo_user_data_key_t,
user_data: *mut ::libc::c_void,
destroy: cairo_destroy_func_t)
-> cairo_status_t;
pub fn cairo_scaled_font_extents(scaled_font: *mut cairo_scaled_font_t,
extents: *mut cairo_font_extents_t)
;
pub fn cairo_scaled_font_text_extents(scaled_font:
*mut cairo_scaled_font_t,
utf8: *const ::libc::c_char,
extents: *mut cairo_text_extents_t)
;
pub fn cairo_scaled_font_glyph_extents(scaled_font:
*mut cairo_scaled_font_t,
glyphs: *const cairo_glyph_t,
num_glyphs: ::libc::c_int,
extents: *mut cairo_text_extents_t)
;
pub fn cairo_scaled_font_text_to_glyphs(scaled_font:
*mut cairo_scaled_font_t,
x: ::libc::c_double,
y: ::libc::c_double,
utf8: *const ::libc::c_char,
utf8_len: ::libc::c_int,
glyphs: *mut *mut cairo_glyph_t,
num_glyphs: *mut ::libc::c_int,
clusters:
*mut *mut cairo_text_cluster_t,
num_clusters: *mut ::libc::c_int,
cluster_flags:
*mut cairo_text_cluster_flags_t)
-> cairo_status_t;
pub fn cairo_scaled_font_get_font_face(scaled_font:
*mut cairo_scaled_font_t)
-> *mut cairo_font_face_t;
pub fn cairo_scaled_font_get_font_matrix(scaled_font:
*mut cairo_scaled_font_t,
font_matrix: *mut cairo_matrix_t)
;
pub fn cairo_scaled_font_get_ctm(scaled_font: *mut cairo_scaled_font_t,
ctm: *mut cairo_matrix_t) ;
pub fn cairo_scaled_font_get_scale_matrix(scaled_font:
*mut cairo_scaled_font_t,
scale_matrix:
*mut cairo_matrix_t) ;
pub fn cairo_scaled_font_get_font_options(scaled_font:
*mut cairo_scaled_font_t,
options:
*mut cairo_font_options_t)
;
pub fn cairo_toy_font_face_create(family: *const ::libc::c_char,
slant: cairo_font_slant_t,
weight: cairo_font_weight_t)
-> *mut cairo_font_face_t;
pub fn cairo_toy_font_face_get_family(font_face: *mut cairo_font_face_t)
-> *const ::libc::c_char;
pub fn cairo_toy_font_face_get_slant(font_face: *mut cairo_font_face_t)
-> cairo_font_slant_t;
pub fn cairo_toy_font_face_get_weight(font_face: *mut cairo_font_face_t)
-> cairo_font_weight_t;
pub fn cairo_user_font_face_create() -> *mut cairo_font_face_t;
pub fn cairo_user_font_face_set_init_func(font_face:
*mut cairo_font_face_t,
init_func:
cairo_user_scaled_font_init_func_t)
;
pub fn cairo_user_font_face_set_render_glyph_func(font_face:
*mut cairo_font_face_t,
render_glyph_func:
cairo_user_scaled_font_render_glyph_func_t)
;
pub fn cairo_user_font_face_set_text_to_glyphs_func(font_face:
*mut cairo_font_face_t,
text_to_glyphs_func:
cairo_user_scaled_font_text_to_glyphs_func_t)
;
pub fn cairo_user_font_face_set_unicode_to_glyph_func(font_face:
*mut cairo_font_face_t,
unicode_to_glyph_func:
cairo_user_scaled_font_unicode_to_glyph_func_t)
;
pub fn cairo_user_font_face_get_init_func(font_face:
*mut cairo_font_face_t)
-> cairo_user_scaled_font_init_func_t;
pub fn cairo_user_font_face_get_render_glyph_func(font_face:
*mut cairo_font_face_t)
-> cairo_user_scaled_font_render_glyph_func_t;
pub fn cairo_user_font_face_get_text_to_glyphs_func(font_face:
*mut cairo_font_face_t)
-> cairo_user_scaled_font_text_to_glyphs_func_t;
pub fn cairo_user_font_face_get_unicode_to_glyph_func(font_face:
*mut cairo_font_face_t)
-> cairo_user_scaled_font_unicode_to_glyph_func_t;
pub fn cairo_get_operator(cr: *mut cairo_t) -> cairo_operator_t;
pub fn cairo_get_source(cr: *mut cairo_t) -> *mut cairo_pattern_t;
pub fn cairo_get_tolerance(cr: *mut cairo_t) -> ::libc::c_double;
pub fn cairo_get_antialias(cr: *mut cairo_t) -> cairo_antialias_t;
pub fn cairo_has_current_point(cr: *mut cairo_t) -> cairo_bool_t;
pub fn cairo_get_current_point(cr: *mut cairo_t, x: *mut ::libc::c_double,
y: *mut ::libc::c_double) ;
pub fn cairo_get_fill_rule(cr: *mut cairo_t) -> cairo_fill_rule_t;
pub fn cairo_get_line_width(cr: *mut cairo_t) -> ::libc::c_double;
pub fn cairo_get_line_cap(cr: *mut cairo_t) -> cairo_line_cap_t;
pub fn cairo_get_line_join(cr: *mut cairo_t) -> cairo_line_join_t;
pub fn cairo_get_miter_limit(cr: *mut cairo_t) -> ::libc::c_double;
pub fn cairo_get_dash_count(cr: *mut cairo_t) -> ::libc::c_int;
pub fn cairo_get_dash(cr: *mut cairo_t, dashes: *mut ::libc::c_double,
offset: *mut ::libc::c_double) ;
pub fn cairo_get_matrix(cr: *mut cairo_t, matrix: *mut cairo_matrix_t)
;
pub fn cairo_get_target(cr: *mut cairo_t) -> *mut cairo_surface_t;
pub fn cairo_get_group_target(cr: *mut cairo_t) -> *mut cairo_surface_t;
pub fn cairo_copy_path(cr: *mut cairo_t) -> *mut cairo_path_t;
pub fn cairo_copy_path_flat(cr: *mut cairo_t) -> *mut cairo_path_t;
pub fn cairo_append_path(cr: *mut cairo_t, path: *const cairo_path_t)
;
pub fn cairo_path_destroy(path: *mut cairo_path_t) ;
pub fn cairo_status(cr: *mut cairo_t) -> cairo_status_t;
pub fn cairo_status_to_string(status: cairo_status_t)
-> *const ::libc::c_char;
pub fn cairo_device_reference(device: *mut cairo_device_t)
-> *mut cairo_device_t;
pub fn cairo_device_get_type(device: *mut cairo_device_t)
-> cairo_device_type_t;
pub fn cairo_device_status(device: *mut cairo_device_t) -> cairo_status_t;
pub fn cairo_device_acquire(device: *mut cairo_device_t)
-> cairo_status_t;
pub fn cairo_device_release(device: *mut cairo_device_t) ;
pub fn cairo_device_flush(device: *mut cairo_device_t) ;
pub fn cairo_device_finish(device: *mut cairo_device_t) ;
pub fn cairo_device_destroy(device: *mut cairo_device_t) ;
pub fn cairo_device_get_reference_count(device: *mut cairo_device_t)
-> ::libc::c_uint;
pub fn cairo_device_get_user_data(device: *mut cairo_device_t,
key: *const cairo_user_data_key_t)
-> *mut ::libc::c_void;
pub fn cairo_device_set_user_data(device: *mut cairo_device_t,
key: *const cairo_user_data_key_t,
user_data: *mut ::libc::c_void,
destroy: cairo_destroy_func_t)
-> cairo_status_t;
pub fn cairo_surface_create_similar(other: *mut cairo_surface_t,
content: cairo_content_t,
width: ::libc::c_int,
height: ::libc::c_int)
-> *mut cairo_surface_t;
pub fn cairo_surface_create_similar_image(other: *mut cairo_surface_t,
format: cairo_format_t,
width: ::libc::c_int,
height: ::libc::c_int)
-> *mut cairo_surface_t;
pub fn cairo_surface_map_to_image(surface: *mut cairo_surface_t,
extents: *const cairo_rectangle_int_t)
-> *mut cairo_surface_t;
pub fn cairo_surface_unmap_image(surface: *mut cairo_surface_t,
image: *mut cairo_surface_t) ;
pub fn cairo_surface_create_for_rectangle(target: *mut cairo_surface_t,
x: ::libc::c_double,
y: ::libc::c_double,
width: ::libc::c_double,
height: ::libc::c_double)
-> *mut cairo_surface_t;
pub fn cairo_surface_create_observer(target: *mut cairo_surface_t,
mode: cairo_surface_observer_mode_t)
-> *mut cairo_surface_t;
pub fn cairo_surface_observer_add_paint_callback(abstract_surface:
*mut cairo_surface_t,
func:
cairo_surface_observer_callback_t,
data:
*mut ::libc::c_void)
-> cairo_status_t;
pub fn cairo_surface_observer_add_mask_callback(abstract_surface:
*mut cairo_surface_t,
func:
cairo_surface_observer_callback_t,
data: *mut ::libc::c_void)
-> cairo_status_t;
pub fn cairo_surface_observer_add_fill_callback(abstract_surface:
*mut cairo_surface_t,
func:
cairo_surface_observer_callback_t,
data: *mut ::libc::c_void)
-> cairo_status_t;
pub fn cairo_surface_observer_add_stroke_callback(abstract_surface:
*mut cairo_surface_t,
func:
cairo_surface_observer_callback_t,
data:
*mut ::libc::c_void)
-> cairo_status_t;
pub fn cairo_surface_observer_add_glyphs_callback(abstract_surface:
*mut cairo_surface_t,
func:
cairo_surface_observer_callback_t,
data:
*mut ::libc::c_void)
-> cairo_status_t;
pub fn cairo_surface_observer_add_flush_callback(abstract_surface:
*mut cairo_surface_t,
func:
cairo_surface_observer_callback_t,
data:
*mut ::libc::c_void)
-> cairo_status_t;
pub fn cairo_surface_observer_add_finish_callback(abstract_surface:
*mut cairo_surface_t,
func:
cairo_surface_observer_callback_t,
data:
*mut ::libc::c_void)
-> cairo_status_t;
pub fn cairo_surface_observer_print(surface: *mut cairo_surface_t,
write_func: cairo_write_func_t,
closure: *mut ::libc::c_void)
-> cairo_status_t;
pub fn cairo_surface_observer_elapsed(surface: *mut cairo_surface_t)
-> ::libc::c_double;
pub fn cairo_device_observer_print(device: *mut cairo_device_t,
write_func: cairo_write_func_t,
closure: *mut ::libc::c_void)
-> cairo_status_t;
pub fn cairo_device_observer_elapsed(device: *mut cairo_device_t)
-> ::libc::c_double;
pub fn cairo_device_observer_paint_elapsed(device: *mut cairo_device_t)
-> ::libc::c_double;
pub fn cairo_device_observer_mask_elapsed(device: *mut cairo_device_t)
-> ::libc::c_double;
pub fn cairo_device_observer_fill_elapsed(device: *mut cairo_device_t)
-> ::libc::c_double;
pub fn cairo_device_observer_stroke_elapsed(device: *mut cairo_device_t)
-> ::libc::c_double;
pub fn cairo_device_observer_glyphs_elapsed(device: *mut cairo_device_t)
-> ::libc::c_double;
pub fn cairo_surface_reference(surface: *mut cairo_surface_t)
-> *mut cairo_surface_t;
pub fn cairo_surface_finish(surface: *mut cairo_surface_t) ;
pub fn cairo_surface_destroy(surface: *mut cairo_surface_t) ;
pub fn cairo_surface_get_device(surface: *mut cairo_surface_t)
-> *mut cairo_device_t;
pub fn cairo_surface_get_reference_count(surface: *mut cairo_surface_t)
-> ::libc::c_uint;
pub fn cairo_surface_status(surface: *mut cairo_surface_t)
-> cairo_status_t;
pub fn cairo_surface_get_type(surface: *mut cairo_surface_t)
-> cairo_surface_type_t;
pub fn cairo_surface_get_content(surface: *mut cairo_surface_t)
-> cairo_content_t;
pub fn cairo_surface_write_to_png(surface: *mut cairo_surface_t,
filename: *const ::libc::c_char)
-> cairo_status_t;
pub fn cairo_surface_write_to_png_stream(surface: *mut cairo_surface_t,
write_func: cairo_write_func_t,
closure: *mut ::libc::c_void)
-> cairo_status_t;
pub fn cairo_surface_get_user_data(surface: *mut cairo_surface_t,
key: *const cairo_user_data_key_t)
-> *mut ::libc::c_void;
pub fn cairo_surface_set_user_data(surface: *mut cairo_surface_t,
key: *const cairo_user_data_key_t,
user_data: *mut ::libc::c_void,
destroy: cairo_destroy_func_t)
-> cairo_status_t;
pub fn cairo_surface_get_mime_data(surface: *mut cairo_surface_t,
mime_type: *const ::libc::c_char,
data: *mut *const ::libc::c_uchar,
length: *mut ::libc::c_ulong) ;
pub fn cairo_surface_set_mime_data(surface: *mut cairo_surface_t,
mime_type: *const ::libc::c_char,
data: *const ::libc::c_uchar,
length: ::libc::c_ulong,
destroy: cairo_destroy_func_t,
closure: *mut ::libc::c_void)
-> cairo_status_t;
pub fn cairo_surface_supports_mime_type(surface: *mut cairo_surface_t,
mime_type: *const ::libc::c_char)
-> cairo_bool_t;
pub fn cairo_surface_get_font_options(surface: *mut cairo_surface_t,
options: *mut cairo_font_options_t)
;
pub fn cairo_surface_flush(surface: *mut cairo_surface_t) ;
pub fn cairo_surface_mark_dirty(surface: *mut cairo_surface_t) ;
pub fn cairo_surface_mark_dirty_rectangle(surface: *mut cairo_surface_t,
x: ::libc::c_int,
y: ::libc::c_int,
width: ::libc::c_int,
height: ::libc::c_int) ;
pub fn cairo_surface_set_device_scale(surface: *mut cairo_surface_t,
x_scale: ::libc::c_double,
y_scale: ::libc::c_double) ;
pub fn cairo_surface_get_device_scale(surface: *mut cairo_surface_t,
x_scale: *mut ::libc::c_double,
y_scale: *mut ::libc::c_double)
;
pub fn cairo_surface_set_device_offset(surface: *mut cairo_surface_t,
x_offset: ::libc::c_double,
y_offset: ::libc::c_double) ;
pub fn cairo_surface_get_device_offset(surface: *mut cairo_surface_t,
x_offset: *mut ::libc::c_double,
y_offset: *mut ::libc::c_double)
;
pub fn cairo_surface_set_fallback_resolution(surface:
*mut cairo_surface_t,
x_pixels_per_inch:
::libc::c_double,
y_pixels_per_inch:
::libc::c_double) ;
pub fn cairo_surface_get_fallback_resolution(surface:
*mut cairo_surface_t,
x_pixels_per_inch:
*mut ::libc::c_double,
y_pixels_per_inch:
*mut ::libc::c_double)
;
pub fn cairo_surface_copy_page(surface: *mut cairo_surface_t) ;
pub fn cairo_surface_show_page(surface: *mut cairo_surface_t) ;
pub fn cairo_surface_has_show_text_glyphs(surface: *mut cairo_surface_t)
-> cairo_bool_t;
pub fn cairo_image_surface_create(format: cairo_format_t,
width: ::libc::c_int,
height: ::libc::c_int)
-> *mut cairo_surface_t;
pub fn cairo_format_stride_for_width(format: cairo_format_t,
width: ::libc::c_int)
-> ::libc::c_int;
pub fn cairo_image_surface_create_for_data(data: *mut ::libc::c_uchar,
format: cairo_format_t,
width: ::libc::c_int,
height: ::libc::c_int,
stride: ::libc::c_int)
-> *mut cairo_surface_t;
pub fn cairo_image_surface_get_data(surface: *mut cairo_surface_t)
-> *mut ::libc::c_uchar;
pub fn cairo_image_surface_get_format(surface: *mut cairo_surface_t)
-> cairo_format_t;
pub fn cairo_image_surface_get_width(surface: *mut cairo_surface_t)
-> ::libc::c_int;
pub fn cairo_image_surface_get_height(surface: *mut cairo_surface_t)
-> ::libc::c_int;
pub fn cairo_image_surface_get_stride(surface: *mut cairo_surface_t)
-> ::libc::c_int;
pub fn cairo_image_surface_create_from_png(filename:
*const ::libc::c_char)
-> *mut cairo_surface_t;
pub fn cairo_image_surface_create_from_png_stream(read_func:
cairo_read_func_t,
closure:
*mut ::libc::c_void)
-> *mut cairo_surface_t;
pub fn cairo_recording_surface_create(content: cairo_content_t,
extents: *const cairo_rectangle_t)
-> *mut cairo_surface_t;
pub fn cairo_recording_surface_ink_extents(surface: *mut cairo_surface_t,
x0: *mut ::libc::c_double,
y0: *mut ::libc::c_double,
width: *mut ::libc::c_double,
height: *mut ::libc::c_double)
;
pub fn cairo_recording_surface_get_extents(surface: *mut cairo_surface_t,
extents:
*mut cairo_rectangle_t)
-> cairo_bool_t;
pub fn cairo_pattern_create_raster_source(user_data: *mut ::libc::c_void,
content: cairo_content_t,
width: ::libc::c_int,
height: ::libc::c_int)
-> *mut cairo_pattern_t;
pub fn cairo_raster_source_pattern_set_callback_data(pattern:
*mut cairo_pattern_t,
data:
*mut ::libc::c_void)
;
pub fn cairo_raster_source_pattern_get_callback_data(pattern:
*mut cairo_pattern_t)
-> *mut ::libc::c_void;
pub fn cairo_raster_source_pattern_set_acquire(pattern:
*mut cairo_pattern_t,
acquire:
cairo_raster_source_acquire_func_t,
release:
cairo_raster_source_release_func_t)
;
pub fn cairo_raster_source_pattern_get_acquire(pattern:
*mut cairo_pattern_t,
acquire:
*mut cairo_raster_source_acquire_func_t,
release:
*mut cairo_raster_source_release_func_t)
;
pub fn cairo_raster_source_pattern_set_snapshot(pattern:
*mut cairo_pattern_t,
snapshot:
cairo_raster_source_snapshot_func_t)
;
pub fn cairo_raster_source_pattern_get_snapshot(pattern:
*mut cairo_pattern_t)
-> cairo_raster_source_snapshot_func_t;
pub fn cairo_raster_source_pattern_set_copy(pattern: *mut cairo_pattern_t,
copy:
cairo_raster_source_copy_func_t)
;
pub fn cairo_raster_source_pattern_get_copy(pattern: *mut cairo_pattern_t)
-> cairo_raster_source_copy_func_t;
pub fn cairo_raster_source_pattern_set_finish(pattern:
*mut cairo_pattern_t,
finish:
cairo_raster_source_finish_func_t)
;
pub fn cairo_raster_source_pattern_get_finish(pattern:
*mut cairo_pattern_t)
-> cairo_raster_source_finish_func_t;
pub fn cairo_pattern_create_rgb(red: ::libc::c_double,
green: ::libc::c_double,
blue: ::libc::c_double)
-> *mut cairo_pattern_t;
pub fn cairo_pattern_create_rgba(red: ::libc::c_double,
green: ::libc::c_double,
blue: ::libc::c_double,
alpha: ::libc::c_double)
-> *mut cairo_pattern_t;
pub fn cairo_pattern_create_for_surface(surface: *mut cairo_surface_t)
-> *mut cairo_pattern_t;
pub fn cairo_pattern_create_linear(x0: ::libc::c_double,
y0: ::libc::c_double,
x1: ::libc::c_double,
y1: ::libc::c_double)
-> *mut cairo_pattern_t;
pub fn cairo_pattern_create_radial(cx0: ::libc::c_double,
cy0: ::libc::c_double,
radius0: ::libc::c_double,
cx1: ::libc::c_double,
cy1: ::libc::c_double,
radius1: ::libc::c_double)
-> *mut cairo_pattern_t;
pub fn cairo_pattern_create_mesh() -> *mut cairo_pattern_t;
pub fn cairo_pattern_reference(pattern: *mut cairo_pattern_t)
-> *mut cairo_pattern_t;
pub fn cairo_pattern_destroy(pattern: *mut cairo_pattern_t) ;
pub fn cairo_pattern_get_reference_count(pattern: *mut cairo_pattern_t)
-> ::libc::c_uint;
pub fn cairo_pattern_status(pattern: *mut cairo_pattern_t)
-> cairo_status_t;
pub fn cairo_pattern_get_user_data(pattern: *mut cairo_pattern_t,
key: *const cairo_user_data_key_t)
-> *mut ::libc::c_void;
pub fn cairo_pattern_set_user_data(pattern: *mut cairo_pattern_t,
key: *const cairo_user_data_key_t,
user_data: *mut ::libc::c_void,
destroy: cairo_destroy_func_t)
-> cairo_status_t;
pub fn cairo_pattern_get_type(pattern: *mut cairo_pattern_t)
-> cairo_pattern_type_t;
pub fn cairo_pattern_add_color_stop_rgb(pattern: *mut cairo_pattern_t,
offset: ::libc::c_double,
red: ::libc::c_double,
green: ::libc::c_double,
blue: ::libc::c_double) ;
pub fn cairo_pattern_add_color_stop_rgba(pattern: *mut cairo_pattern_t,
offset: ::libc::c_double,
red: ::libc::c_double,
green: ::libc::c_double,
blue: ::libc::c_double,
alpha: ::libc::c_double) ;
pub fn cairo_mesh_pattern_begin_patch(pattern: *mut cairo_pattern_t)
;
pub fn cairo_mesh_pattern_end_patch(pattern: *mut cairo_pattern_t) ;
pub fn cairo_mesh_pattern_curve_to(pattern: *mut cairo_pattern_t,
x1: ::libc::c_double,
y1: ::libc::c_double,
x2: ::libc::c_double,
y2: ::libc::c_double,
x3: ::libc::c_double,
y3: ::libc::c_double) ;
pub fn cairo_mesh_pattern_line_to(pattern: *mut cairo_pattern_t,
x: ::libc::c_double,
y: ::libc::c_double) ;
pub fn cairo_mesh_pattern_move_to(pattern: *mut cairo_pattern_t,
x: ::libc::c_double,
y: ::libc::c_double) ;
pub fn cairo_mesh_pattern_set_control_point(pattern: *mut cairo_pattern_t,
point_num: ::libc::c_uint,
x: ::libc::c_double,
y: ::libc::c_double) ;
pub fn cairo_mesh_pattern_set_corner_color_rgb(pattern:
*mut cairo_pattern_t,
corner_num: ::libc::c_uint,
red: ::libc::c_double,
green: ::libc::c_double,
blue: ::libc::c_double)
;
pub fn cairo_mesh_pattern_set_corner_color_rgba(pattern:
*mut cairo_pattern_t,
corner_num:
::libc::c_uint,
red: ::libc::c_double,
green: ::libc::c_double,
blue: ::libc::c_double,
alpha: ::libc::c_double)
;
pub fn cairo_pattern_set_matrix(pattern: *mut cairo_pattern_t,
matrix: *const cairo_matrix_t) ;
pub fn cairo_pattern_get_matrix(pattern: *mut cairo_pattern_t,
matrix: *mut cairo_matrix_t) ;
pub fn cairo_pattern_set_extend(pattern: *mut cairo_pattern_t,
extend: cairo_extend_t) ;
pub fn cairo_pattern_get_extend(pattern: *mut cairo_pattern_t)
-> cairo_extend_t;
pub fn cairo_pattern_set_filter(pattern: *mut cairo_pattern_t,
filter: cairo_filter_t) ;
pub fn cairo_pattern_get_filter(pattern: *mut cairo_pattern_t)
-> cairo_filter_t;
pub fn cairo_pattern_get_rgba(pattern: *mut cairo_pattern_t,
red: *mut ::libc::c_double,
green: *mut ::libc::c_double,
blue: *mut ::libc::c_double,
alpha: *mut ::libc::c_double)
-> cairo_status_t;
pub fn cairo_pattern_get_surface(pattern: *mut cairo_pattern_t,
surface: *mut *mut cairo_surface_t)
-> cairo_status_t;
pub fn cairo_pattern_get_color_stop_rgba(pattern: *mut cairo_pattern_t,
index: ::libc::c_int,
offset: *mut ::libc::c_double,
red: *mut ::libc::c_double,
green: *mut ::libc::c_double,
blue: *mut ::libc::c_double,
alpha: *mut ::libc::c_double)
-> cairo_status_t;
pub fn cairo_pattern_get_color_stop_count(pattern: *mut cairo_pattern_t,
count: *mut ::libc::c_int)
-> cairo_status_t;
pub fn cairo_pattern_get_linear_points(pattern: *mut cairo_pattern_t,
x0: *mut ::libc::c_double,
y0: *mut ::libc::c_double,
x1: *mut ::libc::c_double,
y1: *mut ::libc::c_double)
-> cairo_status_t;
pub fn cairo_pattern_get_radial_circles(pattern: *mut cairo_pattern_t,
x0: *mut ::libc::c_double,
y0: *mut ::libc::c_double,
r0: *mut ::libc::c_double,
x1: *mut ::libc::c_double,
y1: *mut ::libc::c_double,
r1: *mut ::libc::c_double)
-> cairo_status_t;
pub fn cairo_mesh_pattern_get_patch_count(pattern: *mut cairo_pattern_t,
count: *mut ::libc::c_uint)
-> cairo_status_t;
pub fn cairo_mesh_pattern_get_path(pattern: *mut cairo_pattern_t,
patch_num: ::libc::c_uint)
-> *mut cairo_path_t;
pub fn cairo_mesh_pattern_get_corner_color_rgba(pattern:
*mut cairo_pattern_t,
patch_num: ::libc::c_uint,
corner_num:
::libc::c_uint,
red:
*mut ::libc::c_double,
green:
*mut ::libc::c_double,
blue:
*mut ::libc::c_double,
alpha:
*mut ::libc::c_double)
-> cairo_status_t;
pub fn cairo_mesh_pattern_get_control_point(pattern: *mut cairo_pattern_t,
patch_num: ::libc::c_uint,
point_num: ::libc::c_uint,
x: *mut ::libc::c_double,
y: *mut ::libc::c_double)
-> cairo_status_t;
pub fn cairo_matrix_init(matrix: *mut cairo_matrix_t,
xx: ::libc::c_double, yx: ::libc::c_double,
xy: ::libc::c_double, yy: ::libc::c_double,
x0: ::libc::c_double, y0: ::libc::c_double)
;
pub fn cairo_matrix_init_identity(matrix: *mut cairo_matrix_t) ;
pub fn cairo_matrix_init_translate(matrix: *mut cairo_matrix_t,
tx: ::libc::c_double,
ty: ::libc::c_double) ;
pub fn cairo_matrix_init_scale(matrix: *mut cairo_matrix_t,
sx: ::libc::c_double, sy: ::libc::c_double)
;
pub fn cairo_matrix_init_rotate(matrix: *mut cairo_matrix_t,
radians: ::libc::c_double) ;
pub fn cairo_matrix_translate(matrix: *mut cairo_matrix_t,
tx: ::libc::c_double, ty: ::libc::c_double)
;
pub fn cairo_matrix_scale(matrix: *mut cairo_matrix_t,
sx: ::libc::c_double, sy: ::libc::c_double)
;
pub fn cairo_matrix_rotate(matrix: *mut cairo_matrix_t,
radians: ::libc::c_double) ;
pub fn cairo_matrix_invert(matrix: *mut cairo_matrix_t) -> cairo_status_t;
pub fn cairo_matrix_multiply(result: *mut cairo_matrix_t,
a: *const cairo_matrix_t,
b: *const cairo_matrix_t) ;
pub fn cairo_matrix_transform_distance(matrix: *const cairo_matrix_t,
dx: *mut ::libc::c_double,
dy: *mut ::libc::c_double) ;
pub fn cairo_matrix_transform_point(matrix: *const cairo_matrix_t,
x: *mut ::libc::c_double,
y: *mut ::libc::c_double) ;
pub fn cairo_region_create() -> *mut cairo_region_t;
pub fn cairo_region_create_rectangle(rectangle:
*const cairo_rectangle_int_t)
-> *mut cairo_region_t;
pub fn cairo_region_create_rectangles(rects: *const cairo_rectangle_int_t,
count: ::libc::c_int)
-> *mut cairo_region_t;
pub fn cairo_region_copy(original: *const cairo_region_t)
-> *mut cairo_region_t;
pub fn cairo_region_reference(region: *mut cairo_region_t)
-> *mut cairo_region_t;
pub fn cairo_region_destroy(region: *mut cairo_region_t) ;
pub fn cairo_region_equal(a: *const cairo_region_t,
b: *const cairo_region_t) -> cairo_bool_t;
pub fn cairo_region_status(region: *const cairo_region_t)
-> cairo_status_t;
pub fn cairo_region_get_extents(region: *const cairo_region_t,
extents: *mut cairo_rectangle_int_t)
;
pub fn cairo_region_num_rectangles(region: *const cairo_region_t)
-> ::libc::c_int;
pub fn cairo_region_get_rectangle(region: *const cairo_region_t,
nth: ::libc::c_int,
rectangle: *mut cairo_rectangle_int_t)
;
pub fn cairo_region_is_empty(region: *const cairo_region_t)
-> cairo_bool_t;
pub fn cairo_region_contains_rectangle(region: *const cairo_region_t,
rectangle:
*const cairo_rectangle_int_t)
-> cairo_region_overlap_t;
pub fn cairo_region_contains_point(region: *const cairo_region_t,
x: ::libc::c_int, y: ::libc::c_int)
-> cairo_bool_t;
pub fn cairo_region_translate(region: *mut cairo_region_t,
dx: ::libc::c_int, dy: ::libc::c_int) ;
pub fn cairo_region_subtract(dst: *mut cairo_region_t,
other: *const cairo_region_t)
-> cairo_status_t;
pub fn cairo_region_subtract_rectangle(dst: *mut cairo_region_t,
rectangle:
*const cairo_rectangle_int_t)
-> cairo_status_t;
pub fn cairo_region_intersect(dst: *mut cairo_region_t,
other: *const cairo_region_t)
-> cairo_status_t;
pub fn cairo_region_intersect_rectangle(dst: *mut cairo_region_t,
rectangle:
*const cairo_rectangle_int_t)
-> cairo_status_t;
pub fn cairo_region_union(dst: *mut cairo_region_t,
other: *const cairo_region_t) -> cairo_status_t;
pub fn cairo_region_union_rectangle(dst: *mut cairo_region_t,
rectangle:
*const cairo_rectangle_int_t)
-> cairo_status_t;
pub fn cairo_region_xor(dst: *mut cairo_region_t,
other: *const cairo_region_t) -> cairo_status_t;
pub fn cairo_region_xor_rectangle(dst: *mut cairo_region_t,
rectangle: *const cairo_rectangle_int_t)
-> cairo_status_t;
pub fn cairo_debug_reset_static_data() ;
}