gr-sys 0.1.7

Bindings to the GR C library
Documentation
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
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
/* automatically generated by rust-bindgen 0.68.1 */

pub const GR_MAX_CONTEXT: ::core::ffi::c_int = 8192;
pub const GR_DEFAULT_MATH_FONT: ::core::ffi::c_int = 232;
pub const GR_COLORMAP_DEFAULT: ::core::ffi::c_int = 0;
pub const GR_COLORMAP_TEMPERATURE: ::core::ffi::c_int = 1;
pub const GR_COLORMAP_GRAYSCALE: ::core::ffi::c_int = 2;
pub const GR_COLORMAP_GLOWING: ::core::ffi::c_int = 3;
pub const GR_COLORMAP_RAINBOWLIKE: ::core::ffi::c_int = 4;
pub const GR_COLORMAP_GEOLOGIC: ::core::ffi::c_int = 5;
pub const GR_COLORMAP_GREENSCALE: ::core::ffi::c_int = 6;
pub const GR_COLORMAP_CYANSCALE: ::core::ffi::c_int = 7;
pub const GR_COLORMAP_BLUESCALE: ::core::ffi::c_int = 8;
pub const GR_COLORMAP_MAGENTASCALE: ::core::ffi::c_int = 9;
pub const GR_COLORMAP_REDSCALE: ::core::ffi::c_int = 10;
pub const GR_COLORMAP_FLAME: ::core::ffi::c_int = 11;
pub const GR_COLORMAP_BROWNSCALE: ::core::ffi::c_int = 12;
pub const GR_COLORMAP_PILATUS: ::core::ffi::c_int = 13;
pub const GR_COLORMAP_AUTUMN: ::core::ffi::c_int = 14;
pub const GR_COLORMAP_BONE: ::core::ffi::c_int = 15;
pub const GR_COLORMAP_COOL: ::core::ffi::c_int = 16;
pub const GR_COLORMAP_COPPER: ::core::ffi::c_int = 17;
pub const GR_COLORMAP_GRAY: ::core::ffi::c_int = 18;
pub const GR_COLORMAP_HOT: ::core::ffi::c_int = 19;
pub const GR_COLORMAP_HSV: ::core::ffi::c_int = 20;
pub const GR_COLORMAP_JET: ::core::ffi::c_int = 21;
pub const GR_COLORMAP_PINK: ::core::ffi::c_int = 22;
pub const GR_COLORMAP_SPECTRAL: ::core::ffi::c_int = 23;
pub const GR_COLORMAP_SPRING: ::core::ffi::c_int = 24;
pub const GR_COLORMAP_SUMMER: ::core::ffi::c_int = 25;
pub const GR_COLORMAP_WINTER: ::core::ffi::c_int = 26;
pub const GR_COLORMAP_GIST_EARTH: ::core::ffi::c_int = 27;
pub const GR_COLORMAP_GIST_HEAT: ::core::ffi::c_int = 28;
pub const GR_COLORMAP_GIST_NCAR: ::core::ffi::c_int = 29;
pub const GR_COLORMAP_GIST_RAINBOW: ::core::ffi::c_int = 30;
pub const GR_COLORMAP_GIST_STERN: ::core::ffi::c_int = 31;
pub const GR_COLORMAP_AFMHOT: ::core::ffi::c_int = 32;
pub const GR_COLORMAP_BRG: ::core::ffi::c_int = 33;
pub const GR_COLORMAP_BWR: ::core::ffi::c_int = 34;
pub const GR_COLORMAP_COOLWARM: ::core::ffi::c_int = 35;
pub const GR_COLORMAP_CMRMAP: ::core::ffi::c_int = 36;
pub const GR_COLORMAP_CUBEHELIX: ::core::ffi::c_int = 37;
pub const GR_COLORMAP_GNUPLOT: ::core::ffi::c_int = 38;
pub const GR_COLORMAP_GNUPLOT2: ::core::ffi::c_int = 39;
pub const GR_COLORMAP_OCEAN: ::core::ffi::c_int = 40;
pub const GR_COLORMAP_RAINBOW: ::core::ffi::c_int = 41;
pub const GR_COLORMAP_SEISMIC: ::core::ffi::c_int = 42;
pub const GR_COLORMAP_TERRAIN: ::core::ffi::c_int = 43;
pub const GR_COLORMAP_VIRIDIS: ::core::ffi::c_int = 44;
pub const GR_COLORMAP_INFERNO: ::core::ffi::c_int = 45;
pub const GR_COLORMAP_PLASMA: ::core::ffi::c_int = 46;
pub const GR_COLORMAP_MAGMA: ::core::ffi::c_int = 47;
pub const GR_COLORMAP_UNIFORM: ::core::ffi::c_int = 48;
pub const GR_COLOR_RED: ::core::ffi::c_int = 236;
pub const GR_COLOR_GREEN: ::core::ffi::c_int = 237;
pub const GR_COLOR_YELLOW: ::core::ffi::c_int = 238;
pub const GR_COLOR_BLUE: ::core::ffi::c_int = 239;
pub const GR_COLOR_ORANGE: ::core::ffi::c_int = 240;
pub const GR_COLOR_PURPLE: ::core::ffi::c_int = 241;
pub const GR_COLOR_CYAN: ::core::ffi::c_int = 242;
pub const GR_COLOR_MAGENTA: ::core::ffi::c_int = 243;
pub const GR_COLOR_LIME: ::core::ffi::c_int = 244;
pub const GR_COLOR_PINK: ::core::ffi::c_int = 245;
pub const GR_COLOR_TEAL: ::core::ffi::c_int = 246;
pub const GR_COLOR_LAVENDER: ::core::ffi::c_int = 247;
pub const GR_COLOR_BROWN: ::core::ffi::c_int = 248;
pub const GR_COLOR_BEIGE: ::core::ffi::c_int = 249;
pub const GR_COLOR_MAROON: ::core::ffi::c_int = 250;
pub const GR_COLOR_MINT: ::core::ffi::c_int = 251;
pub const GR_COLOR_OLIVE: ::core::ffi::c_int = 252;
pub const GR_COLOR_APRICOT: ::core::ffi::c_int = 253;
pub const GR_COLOR_NAVY: ::core::ffi::c_int = 254;
pub const GR_COLOR_GREY: ::core::ffi::c_int = 255;
pub const GR_AXES_SIMPLE_AXES: ::core::ffi::c_int = 1;
pub const GR_AXES_TWIN_AXES: ::core::ffi::c_int = 2;
pub const GR_AXES_WITH_GRID: ::core::ffi::c_int = 4;
pub const projection_type_t_GR_PROJECTION_DEFAULT: projection_type_t = 0;
pub const projection_type_t_GR_PROJECTION_ORTHOGRAPHIC: projection_type_t = 1;
pub const projection_type_t_GR_PROJECTION_PERSPECTIVE: projection_type_t = 2;
pub type projection_type_t = ::core::ffi::c_uint;
pub const volume_border_calculation_t_GR_VOLUME_WITHOUT_BORDER: volume_border_calculation_t = 0;
pub const volume_border_calculation_t_GR_VOLUME_WITH_BORDER: volume_border_calculation_t = 1;
pub type volume_border_calculation_t = ::core::ffi::c_uint;
pub const volume_rendering_model_t_GR_VOLUME_EMISSION: volume_rendering_model_t = 0;
pub const volume_rendering_model_t_GR_VOLUME_ABSORPTION: volume_rendering_model_t = 1;
pub const volume_rendering_model_t_GR_VOLUME_MIP: volume_rendering_model_t = 2;
pub type volume_rendering_model_t = ::core::ffi::c_uint;
pub const textx_option_t_GR_TEXT_USE_WC: textx_option_t = 1;
pub const textx_option_t_GR_TEXT_ENABLE_INLINE_MATH: textx_option_t = 2;
pub type textx_option_t = ::core::ffi::c_uint;
pub const f2pass_option_t_GR_2PASS_CLEANUP: f2pass_option_t = 1;
pub const f2pass_option_t_GR_2PASS_RENDER: f2pass_option_t = 2;
pub type f2pass_option_t = ::core::ffi::c_uint;
pub const scale_option_t_GR_OPTION_X_LOG: scale_option_t = 1;
pub const scale_option_t_GR_OPTION_Y_LOG: scale_option_t = 2;
pub const scale_option_t_GR_OPTION_Z_LOG: scale_option_t = 4;
pub const scale_option_t_GR_OPTION_FLIP_X: scale_option_t = 8;
pub const scale_option_t_GR_OPTION_FLIP_Y: scale_option_t = 16;
pub const scale_option_t_GR_OPTION_FLIP_Z: scale_option_t = 32;
pub const scale_option_t_GR_OPTION_X_LOG2: scale_option_t = 64;
pub const scale_option_t_GR_OPTION_Y_LOG2: scale_option_t = 128;
pub const scale_option_t_GR_OPTION_Z_LOG2: scale_option_t = 256;
pub const scale_option_t_GR_OPTION_X_LN: scale_option_t = 512;
pub const scale_option_t_GR_OPTION_Y_LN: scale_option_t = 1024;
pub const scale_option_t_GR_OPTION_Z_LN: scale_option_t = 2048;
pub type scale_option_t = ::core::ffi::c_uint;
pub const linespec_t_GR_SPEC_LINE: linespec_t = 1;
pub const linespec_t_GR_SPEC_MARKER: linespec_t = 2;
pub const linespec_t_GR_SPEC_COLOR: linespec_t = 4;
pub type linespec_t = ::core::ffi::c_uint;
pub const surface_option_t_GR_OPTION_LINES: surface_option_t = 0;
pub const surface_option_t_GR_OPTION_MESH: surface_option_t = 1;
pub const surface_option_t_GR_OPTION_FILLED_MESH: surface_option_t = 2;
pub const surface_option_t_GR_OPTION_Z_SHADED_MESH: surface_option_t = 3;
pub const surface_option_t_GR_OPTION_COLORED_MESH: surface_option_t = 4;
pub const surface_option_t_GR_OPTION_CELL_ARRAY: surface_option_t = 5;
pub const surface_option_t_GR_OPTION_SHADED_MESH: surface_option_t = 6;
pub const surface_option_t_GR_OPTION_3D_MESH: surface_option_t = 7;
pub type surface_option_t = ::core::ffi::c_uint;
pub const color_model_t_GR_MODEL_RGB: color_model_t = 0;
pub const color_model_t_GR_MODEL_HSV: color_model_t = 1;
pub type color_model_t = ::core::ffi::c_uint;
pub const path_code_t_GR_STOP: path_code_t = 0;
pub const path_code_t_GR_MOVETO: path_code_t = 1;
pub const path_code_t_GR_LINETO: path_code_t = 2;
pub const path_code_t_GR_CURVE3: path_code_t = 3;
pub const path_code_t_GR_CURVE4: path_code_t = 4;
pub const path_code_t_GR_CLOSEPOLY: path_code_t = 79;
pub type path_code_t = ::core::ffi::c_uint;
pub const xform_types_t_GR_XFORM_BOOLEAN: xform_types_t = 0;
pub const xform_types_t_GR_XFORM_LINEAR: xform_types_t = 1;
pub const xform_types_t_GR_XFORM_LOG: xform_types_t = 2;
pub const xform_types_t_GR_XFORM_LOGLOG: xform_types_t = 3;
pub const xform_types_t_GR_XFORM_CUBIC: xform_types_t = 4;
pub const xform_types_t_GR_XFORM_EQUALIZED: xform_types_t = 5;
pub type xform_types_t = ::core::ffi::c_uint;
pub const interp2_method_t_GR_INTERP2_NEAREST: interp2_method_t = 0;
pub const interp2_method_t_GR_INTERP2_LINEAR: interp2_method_t = 1;
pub const interp2_method_t_GR_INTERP2_SPLINE: interp2_method_t = 2;
pub const interp2_method_t_GR_INTERP2_CUBIC: interp2_method_t = 3;
pub type interp2_method_t = ::core::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct vertex_t {
    pub x: f64,
    pub y: f64,
}
#[doc = " Three-dimensional coordinate"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct point3d_t {
    pub x: f64,
    pub y: f64,
    pub z: f64,
}
#[doc = " Data point for `gr_volume_nogrid`"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct data_point3d_t {
    #[doc = "< Coordinates of data point"]
    pub pt: point3d_t,
    #[doc = "< Intensity of data point"]
    pub data: f64,
}
#[doc = " Provides optional extra data for `gr_volume_interp_gauss`"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct gauss_t {
    #[doc = "< Square root of determinant of covariance matrix"]
    pub sqrt_det: f64,
    #[doc = "< \\f$\\Sigma^{-\\frac{1}{2}}\\f$ encoded as three column vectors"]
    pub gauss_sig_1: point3d_t,
    #[doc = "< \\f$\\Sigma^{-\\frac{1}{2}}\\f$ encoded as three column vectors"]
    pub gauss_sig_2: point3d_t,
    #[doc = "< \\f$\\Sigma^{-\\frac{1}{2}}\\f$ encoded as three column vectors"]
    pub gauss_sig_3: point3d_t,
}
#[doc = " Provides optional extra data for `gr_volume_interp_tri_linear`"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tri_linear_t {
    #[doc = "< Reciproke of interpolation kernel extent in x-direction"]
    pub grid_x_re: f64,
    #[doc = "< Reciproke of interpolation kernel extent in y-direction"]
    pub grid_y_re: f64,
    #[doc = "< Reciproke of interpolation kernel extent in z-direction"]
    pub grid_z_re: f64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cpubasedvolume_2pass_priv {
    _unused: [u8; 0],
}
pub type cpubasedvolume_2pass_priv_t = cpubasedvolume_2pass_priv;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct cpubasedvolume_2pass_t {
    pub dmin: f64,
    pub dmax: f64,
    pub action: ::core::ffi::c_int,
    pub priv_: *mut cpubasedvolume_2pass_priv_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct hexbin_2pass_priv {
    _unused: [u8; 0],
}
pub type hexbin_2pass_priv_t = hexbin_2pass_priv;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct hexbin_2pass_t {
    pub nc: ::core::ffi::c_int,
    pub cntmax: ::core::ffi::c_int,
    pub action: ::core::ffi::c_int,
    pub priv_: *mut hexbin_2pass_priv_t,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct format_reference_t {
    pub scientific: ::core::ffi::c_int,
    pub decimal_digits: ::core::ffi::c_int,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tick_t {
    pub value: f64,
    pub is_major: ::core::ffi::c_int,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tick_label_t {
    pub tick: f64,
    pub label: *mut ::core::ffi::c_char,
    pub width: f64,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct axis_t {
    pub min: f64,
    pub max: f64,
    pub tick: f64,
    pub org: f64,
    pub position: f64,
    pub major_count: ::core::ffi::c_int,
    pub num_ticks: ::core::ffi::c_int,
    pub ticks: *mut tick_t,
    pub tick_size: f64,
    pub num_tick_labels: ::core::ffi::c_int,
    pub tick_labels: *mut tick_label_t,
    pub label_position: f64,
    pub draw_axis_line: ::core::ffi::c_int,
    pub label_orientation: ::core::ffi::c_int,
}
extern "C" {
    pub fn gr_initgr();
}
extern "C" {
    pub fn gr_debug() -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_opengks();
}
extern "C" {
    pub fn gr_closegks();
}
extern "C" {
    pub fn gr_inqdspsize(
        arg1: *mut f64,
        arg2: *mut f64,
        arg3: *mut ::core::ffi::c_int,
        arg4: *mut ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_openws(
        arg1: ::core::ffi::c_int,
        arg2: *mut ::core::ffi::c_char,
        arg3: ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_closews(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_activatews(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_deactivatews(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_configurews();
}
extern "C" {
    pub fn gr_clearws();
}
extern "C" {
    pub fn gr_updatews();
}
extern "C" {
    pub fn gr_polyline(arg1: ::core::ffi::c_int, arg2: *mut f64, arg3: *mut f64);
}
extern "C" {
    pub fn gr_polymarker(arg1: ::core::ffi::c_int, arg2: *mut f64, arg3: *mut f64);
}
extern "C" {
    pub fn gr_text(arg1: f64, arg2: f64, arg3: *mut ::core::ffi::c_char);
}
extern "C" {
    pub fn gr_textx(arg1: f64, arg2: f64, arg3: *mut ::core::ffi::c_char, arg4: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqtext(
        arg1: f64,
        arg2: f64,
        arg3: *mut ::core::ffi::c_char,
        arg4: *mut f64,
        arg5: *mut f64,
    );
}
extern "C" {
    pub fn gr_inqtextx(
        arg1: f64,
        arg2: f64,
        arg3: *mut ::core::ffi::c_char,
        arg4: ::core::ffi::c_int,
        arg5: *mut f64,
        arg6: *mut f64,
    );
}
extern "C" {
    pub fn gr_fillarea(arg1: ::core::ffi::c_int, arg2: *mut f64, arg3: *mut f64);
}
extern "C" {
    pub fn gr_cellarray(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: f64,
        arg5: ::core::ffi::c_int,
        arg6: ::core::ffi::c_int,
        arg7: ::core::ffi::c_int,
        arg8: ::core::ffi::c_int,
        arg9: ::core::ffi::c_int,
        arg10: ::core::ffi::c_int,
        arg11: *mut ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_nonuniformcellarray(
        arg1: *mut f64,
        arg2: *mut f64,
        arg3: ::core::ffi::c_int,
        arg4: ::core::ffi::c_int,
        arg5: ::core::ffi::c_int,
        arg6: ::core::ffi::c_int,
        arg7: ::core::ffi::c_int,
        arg8: ::core::ffi::c_int,
        arg9: *mut ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_polarcellarray(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: f64,
        arg5: f64,
        arg6: f64,
        arg7: ::core::ffi::c_int,
        arg8: ::core::ffi::c_int,
        arg9: ::core::ffi::c_int,
        arg10: ::core::ffi::c_int,
        arg11: ::core::ffi::c_int,
        arg12: ::core::ffi::c_int,
        arg13: *mut ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_nonuniformpolarcellarray(
        arg1: f64,
        arg2: f64,
        arg3: *mut f64,
        arg4: *mut f64,
        arg5: ::core::ffi::c_int,
        arg6: ::core::ffi::c_int,
        arg7: ::core::ffi::c_int,
        arg8: ::core::ffi::c_int,
        arg9: ::core::ffi::c_int,
        arg10: ::core::ffi::c_int,
        arg11: *mut ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_gdp(
        arg1: ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: ::core::ffi::c_int,
        arg5: ::core::ffi::c_int,
        arg6: *mut ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_spline(
        arg1: ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: ::core::ffi::c_int,
        arg5: ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_gridit(
        arg1: ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: *mut f64,
        arg5: ::core::ffi::c_int,
        arg6: ::core::ffi::c_int,
        arg7: *mut f64,
        arg8: *mut f64,
        arg9: *mut f64,
    );
}
extern "C" {
    pub fn gr_setlinetype(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqlinetype(arg1: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setlinewidth(arg1: f64);
}
extern "C" {
    pub fn gr_inqlinewidth(arg1: *mut f64);
}
extern "C" {
    pub fn gr_setlinecolorind(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqlinecolorind(arg1: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setmarkertype(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqmarkertype(arg1: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setmarkersize(arg1: f64);
}
extern "C" {
    pub fn gr_inqmarkersize(arg1: *mut f64);
}
extern "C" {
    pub fn gr_setmarkercolorind(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqmarkercolorind(arg1: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_settextfontprec(arg1: ::core::ffi::c_int, arg2: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setcharexpan(arg1: f64);
}
extern "C" {
    pub fn gr_setcharspace(arg1: f64);
}
extern "C" {
    pub fn gr_settextcolorind(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqtextcolorind(arg1: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setcharheight(arg1: f64);
}
extern "C" {
    pub fn gr_setwscharheight(chh: f64, height: f64);
}
extern "C" {
    pub fn gr_inqcharheight(arg1: *mut f64);
}
extern "C" {
    pub fn gr_setcharup(arg1: f64, arg2: f64);
}
extern "C" {
    pub fn gr_settextpath(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_settextalign(arg1: ::core::ffi::c_int, arg2: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setfillintstyle(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqfillintstyle(arg1: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setfillstyle(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqfillstyle(arg1: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setfillcolorind(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqfillcolorind(arg1: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setnominalsize(arg1: f64);
}
extern "C" {
    pub fn gr_inqnominalsize(arg1: *mut f64);
}
extern "C" {
    pub fn gr_setcolorrep(arg1: ::core::ffi::c_int, arg2: f64, arg3: f64, arg4: f64);
}
extern "C" {
    pub fn gr_setwindow(arg1: f64, arg2: f64, arg3: f64, arg4: f64);
}
extern "C" {
    pub fn gr_inqwindow(arg1: *mut f64, arg2: *mut f64, arg3: *mut f64, arg4: *mut f64);
}
extern "C" {
    pub fn gr_setviewport(arg1: f64, arg2: f64, arg3: f64, arg4: f64);
}
extern "C" {
    pub fn gr_inqviewport(arg1: *mut f64, arg2: *mut f64, arg3: *mut f64, arg4: *mut f64);
}
extern "C" {
    pub fn gr_selntran(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setclip(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setwswindow(arg1: f64, arg2: f64, arg3: f64, arg4: f64);
}
extern "C" {
    pub fn gr_setwsviewport(arg1: f64, arg2: f64, arg3: f64, arg4: f64);
}
extern "C" {
    pub fn gr_createseg(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_copysegws(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_redrawsegws();
}
extern "C" {
    pub fn gr_setsegtran(
        arg1: ::core::ffi::c_int,
        arg2: f64,
        arg3: f64,
        arg4: f64,
        arg5: f64,
        arg6: f64,
        arg7: f64,
        arg8: f64,
    );
}
extern "C" {
    pub fn gr_closeseg();
}
extern "C" {
    pub fn gr_samplelocator(arg1: *mut f64, arg2: *mut f64, arg3: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_emergencyclosegks();
}
extern "C" {
    pub fn gr_updategks();
}
extern "C" {
    pub fn gr_setspace(
        arg1: f64,
        arg2: f64,
        arg3: ::core::ffi::c_int,
        arg4: ::core::ffi::c_int,
    ) -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_inqspace(
        arg1: *mut f64,
        arg2: *mut f64,
        arg3: *mut ::core::ffi::c_int,
        arg4: *mut ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_setscale(arg1: ::core::ffi::c_int) -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_inqscale(arg1: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_textext(arg1: f64, arg2: f64, arg3: *mut ::core::ffi::c_char) -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_inqtextext(
        arg1: f64,
        arg2: f64,
        arg3: *mut ::core::ffi::c_char,
        arg4: *mut f64,
        arg5: *mut f64,
    );
}
extern "C" {
    pub fn gr_setscientificformat(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_axes(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: f64,
        arg5: ::core::ffi::c_int,
        arg6: ::core::ffi::c_int,
        arg7: f64,
    );
}
extern "C" {
    pub fn gr_axeslbl(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: f64,
        arg5: ::core::ffi::c_int,
        arg6: ::core::ffi::c_int,
        arg7: f64,
        arg8: ::core::option::Option<
            unsafe extern "C" fn(arg1: f64, arg2: f64, arg3: *const ::core::ffi::c_char, arg4: f64),
        >,
        arg9: ::core::option::Option<
            unsafe extern "C" fn(arg1: f64, arg2: f64, arg3: *const ::core::ffi::c_char, arg4: f64),
        >,
    );
}
extern "C" {
    pub fn gr_axis(arg1: ::core::ffi::c_char, arg2: *mut axis_t);
}
extern "C" {
    pub fn gr_drawaxis(arg1: ::core::ffi::c_char, arg2: *mut axis_t);
}
extern "C" {
    pub fn gr_drawaxes(arg1: *mut axis_t, arg2: *mut axis_t, arg3: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_freeaxis(arg1: *mut axis_t);
}
extern "C" {
    pub fn gr_grid(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: f64,
        arg5: ::core::ffi::c_int,
        arg6: ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_grid3d(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: f64,
        arg5: f64,
        arg6: f64,
        arg7: ::core::ffi::c_int,
        arg8: ::core::ffi::c_int,
        arg9: ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_verrorbars(
        arg1: ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: *mut f64,
        arg5: *mut f64,
    );
}
extern "C" {
    pub fn gr_herrorbars(
        arg1: ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: *mut f64,
        arg5: *mut f64,
    );
}
extern "C" {
    pub fn gr_polyline3d(arg1: ::core::ffi::c_int, arg2: *mut f64, arg3: *mut f64, arg4: *mut f64);
}
extern "C" {
    pub fn gr_polymarker3d(
        arg1: ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: *mut f64,
    );
}
extern "C" {
    pub fn gr_axes3d(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: f64,
        arg5: f64,
        arg6: f64,
        arg7: ::core::ffi::c_int,
        arg8: ::core::ffi::c_int,
        arg9: ::core::ffi::c_int,
        arg10: f64,
    );
}
extern "C" {
    pub fn gr_titles3d(
        arg1: *mut ::core::ffi::c_char,
        arg2: *mut ::core::ffi::c_char,
        arg3: *mut ::core::ffi::c_char,
    );
}
extern "C" {
    pub fn gr_settitles3d(
        arg1: *mut ::core::ffi::c_char,
        arg2: *mut ::core::ffi::c_char,
        arg3: *mut ::core::ffi::c_char,
    );
}
extern "C" {
    pub fn gr_surface(
        arg1: ::core::ffi::c_int,
        arg2: ::core::ffi::c_int,
        arg3: *mut f64,
        arg4: *mut f64,
        arg5: *mut f64,
        arg6: ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_contour(
        arg1: ::core::ffi::c_int,
        arg2: ::core::ffi::c_int,
        arg3: ::core::ffi::c_int,
        arg4: *mut f64,
        arg5: *mut f64,
        arg6: *mut f64,
        arg7: *mut f64,
        arg8: ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_contourf(
        arg1: ::core::ffi::c_int,
        arg2: ::core::ffi::c_int,
        arg3: ::core::ffi::c_int,
        arg4: *mut f64,
        arg5: *mut f64,
        arg6: *mut f64,
        arg7: *mut f64,
        arg8: ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_tricontour(
        arg1: ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: *mut f64,
        arg5: ::core::ffi::c_int,
        arg6: *mut f64,
    );
}
extern "C" {
    pub fn gr_hexbin(
        arg1: ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: ::core::ffi::c_int,
    ) -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_hexbin_2pass(
        arg1: ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: ::core::ffi::c_int,
        arg5: *const hexbin_2pass_t,
    ) -> *const hexbin_2pass_t;
}
extern "C" {
    pub fn gr_setcolormap(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqcolormap(arg1: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setcolormapfromrgb(
        n: ::core::ffi::c_int,
        r: *mut f64,
        g: *mut f64,
        b: *mut f64,
        x: *mut f64,
    );
}
extern "C" {
    pub fn gr_inqcolormapinds(arg1: *mut ::core::ffi::c_int, arg2: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_colorbar();
}
extern "C" {
    pub fn gr_inqcolor(arg1: ::core::ffi::c_int, arg2: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqcolorfromrgb(arg1: f64, arg2: f64, arg3: f64) -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_hsvtorgb(h: f64, s: f64, v: f64, r: *mut f64, g: *mut f64, b: *mut f64);
}
extern "C" {
    pub fn gr_tick(arg1: f64, arg2: f64) -> f64;
}
extern "C" {
    pub fn gr_validaterange(arg1: f64, arg2: f64) -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_adjustlimits(arg1: *mut f64, arg2: *mut f64);
}
extern "C" {
    pub fn gr_adjustrange(arg1: *mut f64, arg2: *mut f64);
}
extern "C" {
    pub fn gr_beginprint(arg1: *mut ::core::ffi::c_char);
}
extern "C" {
    pub fn gr_beginprintext(
        arg1: *mut ::core::ffi::c_char,
        arg2: *mut ::core::ffi::c_char,
        arg3: *mut ::core::ffi::c_char,
        arg4: *mut ::core::ffi::c_char,
    );
}
extern "C" {
    pub fn gr_endprint();
}
extern "C" {
    pub fn gr_ndctowc(arg1: *mut f64, arg2: *mut f64);
}
extern "C" {
    pub fn gr_wctondc(arg1: *mut f64, arg2: *mut f64);
}
extern "C" {
    pub fn gr_wc3towc(arg1: *mut f64, arg2: *mut f64, arg3: *mut f64);
}
extern "C" {
    pub fn gr_drawrect(arg1: f64, arg2: f64, arg3: f64, arg4: f64);
}
extern "C" {
    pub fn gr_fillrect(arg1: f64, arg2: f64, arg3: f64, arg4: f64);
}
extern "C" {
    pub fn gr_drawarc(arg1: f64, arg2: f64, arg3: f64, arg4: f64, arg5: f64, arg6: f64);
}
extern "C" {
    pub fn gr_fillarc(arg1: f64, arg2: f64, arg3: f64, arg4: f64, arg5: f64, arg6: f64);
}
extern "C" {
    pub fn gr_drawpath(
        arg1: ::core::ffi::c_int,
        arg2: *mut vertex_t,
        arg3: *mut ::core::ffi::c_uchar,
        arg4: ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_setarrowstyle(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setarrowsize(arg1: f64);
}
extern "C" {
    pub fn gr_drawarrow(arg1: f64, arg2: f64, arg3: f64, arg4: f64);
}
extern "C" {
    pub fn gr_readimage(
        arg1: *mut ::core::ffi::c_char,
        arg2: *mut ::core::ffi::c_int,
        arg3: *mut ::core::ffi::c_int,
        arg4: *mut *mut ::core::ffi::c_int,
    ) -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_drawimage(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: f64,
        arg5: ::core::ffi::c_int,
        arg6: ::core::ffi::c_int,
        arg7: *mut ::core::ffi::c_int,
        arg8: ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_importgraphics(arg1: *mut ::core::ffi::c_char) -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_setshadow(arg1: f64, arg2: f64, arg3: f64);
}
extern "C" {
    pub fn gr_settransparency(arg1: f64);
}
extern "C" {
    pub fn gr_inqtransparency(arg1: *mut f64);
}
extern "C" {
    pub fn gr_setcoordxform(arg1: *mut [f64; 2usize]);
}
extern "C" {
    pub fn gr_begingraphics(arg1: *mut ::core::ffi::c_char);
}
extern "C" {
    pub fn gr_endgraphics();
}
extern "C" {
    pub fn gr_getgraphics() -> *mut ::core::ffi::c_char;
}
extern "C" {
    pub fn gr_drawgraphics(arg1: *mut ::core::ffi::c_char) -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_startlistener() -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_inqgrplotport() -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_setgrplotport(arg1: ::core::ffi::c_int) -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_mathtex(arg1: f64, arg2: f64, arg3: *mut ::core::ffi::c_char);
}
extern "C" {
    pub fn gr_inqmathtex(
        arg1: f64,
        arg2: f64,
        arg3: *mut ::core::ffi::c_char,
        arg4: *mut f64,
        arg5: *mut f64,
    );
}
extern "C" {
    pub fn gr_mathtex3d(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: *mut ::core::ffi::c_char,
        arg5: ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_inqmathtex3d(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: *mut ::core::ffi::c_char,
        arg5: ::core::ffi::c_int,
        arg6: *mut f64,
        arg7: *mut f64,
        arg8: *mut f64,
        arg9: *mut f64,
    );
}
extern "C" {
    pub fn gr_beginselection(arg1: ::core::ffi::c_int, arg2: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_endselection();
}
extern "C" {
    pub fn gr_setbboxcallback(
        arg1: ::core::ffi::c_int,
        arg2: ::core::option::Option<
            unsafe extern "C" fn(
                arg1: ::core::ffi::c_int,
                arg2: f64,
                arg3: f64,
                arg4: f64,
                arg5: f64,
            ),
        >,
    );
}
extern "C" {
    pub fn gr_cancelbboxcallback();
}
extern "C" {
    pub fn gr_moveselection(arg1: f64, arg2: f64);
}
extern "C" {
    pub fn gr_resizeselection(arg1: ::core::ffi::c_int, arg2: f64, arg3: f64);
}
extern "C" {
    pub fn gr_inqbbox(arg1: *mut f64, arg2: *mut f64, arg3: *mut f64, arg4: *mut f64);
}
extern "C" {
    pub fn gr_setbackground();
}
extern "C" {
    pub fn gr_clearbackground();
}
extern "C" {
    pub fn gr_precision() -> f64;
}
extern "C" {
    pub fn gr_text_maxsize() -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_setregenflags(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqregenflags() -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_savestate();
}
extern "C" {
    pub fn gr_restorestate();
}
extern "C" {
    pub fn gr_savecontext(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_selectcontext(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_destroycontext(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_unselectcontext();
}
extern "C" {
    pub fn gr_uselinespec(arg1: *mut ::core::ffi::c_char) -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_delaunay(
        arg1: ::core::ffi::c_int,
        arg2: *const f64,
        arg3: *const f64,
        arg4: *mut ::core::ffi::c_int,
        arg5: *mut *mut ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_reducepoints(
        arg1: ::core::ffi::c_int,
        arg2: *const f64,
        arg3: *const f64,
        arg4: ::core::ffi::c_int,
        arg5: *mut f64,
        arg6: *mut f64,
    );
}
extern "C" {
    pub fn gr_trisurface(arg1: ::core::ffi::c_int, arg2: *mut f64, arg3: *mut f64, arg4: *mut f64);
}
extern "C" {
    pub fn gr_gradient(
        arg1: ::core::ffi::c_int,
        arg2: ::core::ffi::c_int,
        arg3: *mut f64,
        arg4: *mut f64,
        arg5: *mut f64,
        arg6: *mut f64,
        arg7: *mut f64,
    );
}
extern "C" {
    pub fn gr_quiver(
        arg1: ::core::ffi::c_int,
        arg2: ::core::ffi::c_int,
        arg3: *mut f64,
        arg4: *mut f64,
        arg5: *mut f64,
        arg6: *mut f64,
        arg7: ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_interp2(
        nx: ::core::ffi::c_int,
        ny: ::core::ffi::c_int,
        x: *const f64,
        y: *const f64,
        z: *const f64,
        nxq: ::core::ffi::c_int,
        nyq: ::core::ffi::c_int,
        xq: *const f64,
        yq: *const f64,
        zq: *mut f64,
        method: interp2_method_t,
        extrapval: f64,
    );
}
extern "C" {
    pub fn gr_version() -> *const ::core::ffi::c_char;
}
extern "C" {
    pub fn gr_shade(
        arg1: ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: ::core::ffi::c_int,
        arg5: ::core::ffi::c_int,
        arg6: *mut f64,
        arg7: ::core::ffi::c_int,
        arg8: ::core::ffi::c_int,
        arg9: *mut ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_shadepoints(
        arg1: ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: ::core::ffi::c_int,
        arg5: ::core::ffi::c_int,
        arg6: ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_shadelines(
        arg1: ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: ::core::ffi::c_int,
        arg5: ::core::ffi::c_int,
        arg6: ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_panzoom(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: f64,
        arg5: *mut f64,
        arg6: *mut f64,
        arg7: *mut f64,
        arg8: *mut f64,
    );
}
extern "C" {
    pub fn gr_findboundary(
        arg1: ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: f64,
        arg5: ::core::option::Option<unsafe extern "C" fn(arg1: f64, arg2: f64) -> f64>,
        arg6: ::core::ffi::c_int,
        arg7: *mut ::core::ffi::c_int,
    ) -> ::core::ffi::c_int;
}
extern "C" {
    pub fn gr_setresamplemethod(arg1: ::core::ffi::c_uint);
}
extern "C" {
    pub fn gr_inqresamplemethod(arg1: *mut ::core::ffi::c_uint);
}
extern "C" {
    pub fn gr_path(
        arg1: ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: *const ::core::ffi::c_char,
    );
}
extern "C" {
    pub fn gr_setborderwidth(arg1: f64);
}
extern "C" {
    pub fn gr_inqborderwidth(arg1: *mut f64);
}
extern "C" {
    pub fn gr_setbordercolorind(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqbordercolorind(arg1: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_selectclipxform(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqclipxform(arg1: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqclip(arg1: *mut ::core::ffi::c_int, arg2: *mut f64);
}
extern "C" {
    pub fn gr_setprojectiontype(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqprojectiontype(arg1: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setperspectiveprojection(arg1: f64, arg2: f64, arg3: f64);
}
extern "C" {
    pub fn gr_inqperspectiveprojection(arg1: *mut f64, arg2: *mut f64, arg3: *mut f64);
}
extern "C" {
    pub fn gr_settransformationparameters(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: f64,
        arg5: f64,
        arg6: f64,
        arg7: f64,
        arg8: f64,
        arg9: f64,
    );
}
extern "C" {
    pub fn gr_inqtransformationparameters(
        arg1: *mut f64,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: *mut f64,
        arg5: *mut f64,
        arg6: *mut f64,
        arg7: *mut f64,
        arg8: *mut f64,
        arg9: *mut f64,
    );
}
extern "C" {
    pub fn gr_setorthographicprojection(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: f64,
        arg5: f64,
        arg6: f64,
    );
}
extern "C" {
    pub fn gr_inqorthographicprojection(
        arg1: *mut f64,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: *mut f64,
        arg5: *mut f64,
        arg6: *mut f64,
    );
}
extern "C" {
    pub fn gr_camerainteraction(arg1: f64, arg2: f64, arg3: f64, arg4: f64);
}
extern "C" {
    pub fn gr_setwindow3d(arg1: f64, arg2: f64, arg3: f64, arg4: f64, arg5: f64, arg6: f64);
}
extern "C" {
    pub fn gr_inqwindow3d(
        arg1: *mut f64,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: *mut f64,
        arg5: *mut f64,
        arg6: *mut f64,
    );
}
extern "C" {
    pub fn gr_setscalefactors3d(arg1: f64, arg2: f64, arg3: f64);
}
extern "C" {
    pub fn gr_inqscalefactors3d(arg1: *mut f64, arg2: *mut f64, arg3: *mut f64);
}
extern "C" {
    pub fn gr_setspace3d(arg1: f64, arg2: f64, arg3: f64, arg4: f64);
}
extern "C" {
    pub fn gr_inqspace3d(
        arg1: *mut ::core::ffi::c_int,
        arg2: *mut f64,
        arg3: *mut f64,
        arg4: *mut f64,
        arg5: *mut f64,
    );
}
extern "C" {
    pub fn gr_text3d(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: *mut ::core::ffi::c_char,
        axis: ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_inqtext3d(
        arg1: f64,
        arg2: f64,
        arg3: f64,
        arg4: *mut ::core::ffi::c_char,
        axis: ::core::ffi::c_int,
        arg5: *mut f64,
        arg6: *mut f64,
    );
}
extern "C" {
    pub fn gr_settextencoding(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqtextencoding(arg1: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_loadfont(arg1: *mut ::core::ffi::c_char, arg2: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setcallback(
        arg1: ::core::option::Option<
            unsafe extern "C" fn(arg1: *const ::core::ffi::c_char) -> *mut ::core::ffi::c_char,
        >,
    );
}
extern "C" {
    pub fn gr_setthreadnumber(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setpicturesizeforvolume(arg1: ::core::ffi::c_int, arg2: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setvolumebordercalculation(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setapproximativecalculation(arg1: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqvolumeflags(
        arg1: *mut ::core::ffi::c_int,
        arg2: *mut ::core::ffi::c_int,
        arg3: *mut ::core::ffi::c_int,
        arg4: *mut ::core::ffi::c_int,
        arg5: *mut ::core::ffi::c_int,
    );
}
extern "C" {
    pub fn gr_cpubasedvolume(
        arg1: ::core::ffi::c_int,
        arg2: ::core::ffi::c_int,
        arg3: ::core::ffi::c_int,
        arg4: *mut f64,
        arg5: ::core::ffi::c_int,
        arg6: *mut f64,
        arg7: *mut f64,
        arg8: *mut f64,
        arg9: *mut f64,
    );
}
extern "C" {
    pub fn gr_cpubasedvolume_2pass(
        arg1: ::core::ffi::c_int,
        arg2: ::core::ffi::c_int,
        arg3: ::core::ffi::c_int,
        arg4: *mut f64,
        arg5: ::core::ffi::c_int,
        arg6: *mut f64,
        arg7: *mut f64,
        arg8: *mut f64,
        arg9: *mut f64,
        arg10: *const cpubasedvolume_2pass_t,
    ) -> *const cpubasedvolume_2pass_t;
}
extern "C" {
    pub fn gr_inqvpsize(
        arg1: *mut ::core::ffi::c_int,
        arg2: *mut ::core::ffi::c_int,
        arg3: *mut f64,
    );
}
extern "C" {
    pub fn gr_polygonmesh3d(
        arg1: ::core::ffi::c_int,
        arg2: *const f64,
        arg3: *const f64,
        arg4: *const f64,
        arg5: ::core::ffi::c_int,
        arg6: *const ::core::ffi::c_int,
        arg7: *const ::core::ffi::c_int,
    );
}
pub type kernel_f = ::core::option::Option<
    unsafe extern "C" fn(
        arg1: *const data_point3d_t,
        arg2: *const ::core::ffi::c_void,
        arg3: *const point3d_t,
        arg4: *const point3d_t,
    ) -> f64,
>;
pub type radius_f = ::core::option::Option<
    unsafe extern "C" fn(arg1: *const data_point3d_t, arg2: *const ::core::ffi::c_void) -> f64,
>;
extern "C" {
    pub fn gr_volume_nogrid(
        arg1: ::core::ffi::c_ulong,
        arg2: *const data_point3d_t,
        arg3: *const ::core::ffi::c_void,
        arg4: ::core::ffi::c_int,
        arg5: kernel_f,
        arg6: *mut f64,
        arg7: *mut f64,
        arg8: f64,
        arg9: radius_f,
    );
}
extern "C" {
    pub fn gr_volume_interp_tri_linear_init(arg1: f64, arg2: f64, arg3: f64);
}
extern "C" {
    pub fn gr_volume_interp_gauss_init(arg1: f64, arg2: *mut f64);
}
extern "C" {
    pub fn gr_volume_interp_tri_linear(
        arg1: *const data_point3d_t,
        arg2: *const ::core::ffi::c_void,
        arg3: *const point3d_t,
        arg4: *const point3d_t,
    ) -> f64;
}
extern "C" {
    pub fn gr_volume_interp_gauss(
        arg1: *const data_point3d_t,
        arg2: *const ::core::ffi::c_void,
        arg3: *const point3d_t,
        arg4: *const point3d_t,
    ) -> f64;
}
extern "C" {
    pub fn gr_setmathfont(font: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqmathfont(font: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setclipregion(region: ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_inqclipregion(region: *mut ::core::ffi::c_int);
}
extern "C" {
    pub fn gr_setclipsector(start_angle: f64, end_angle: f64);
}
extern "C" {
    pub fn gr_inqclipsector(start_angle: *mut f64, end_angle: *mut f64);
}
extern "C" {
    pub fn gr_settextoffset(xoff: f64, yoff: f64);
}
extern "C" {
    pub fn gr_ftoa(
        string: *mut ::core::ffi::c_char,
        value: f64,
        reference: *mut format_reference_t,
    ) -> *mut ::core::ffi::c_char;
}
extern "C" {
    pub fn gr_getformat(
        result: *mut format_reference_t,
        origin: f64,
        min: f64,
        max: f64,
        tick_width: f64,
        major: ::core::ffi::c_int,
    );
}