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
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
// Generated by gir (https://github.com/gtk-rs/gir @ 0e476ab5c1de)
// from
// from gir-files (https://github.com/gtk-rs/gir-files.git @ cfc0305f903b)
// DO NOT EDIT

#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
#![allow(
    clippy::approx_constant,
    clippy::type_complexity,
    clippy::unreadable_literal,
    clippy::upper_case_acronyms
)]
#![cfg_attr(docsrs, feature(doc_cfg))]

use adw_sys as adw;
use gio_sys as gio;
use glib_sys as glib;
use gobject_sys as gobject;
use gtk_sys as gtk;

#[allow(unused_imports)]
use libc::{
    c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
    intptr_t, size_t, ssize_t, uintptr_t, FILE,
};

#[allow(unused_imports)]
use glib::{gboolean, gconstpointer, gpointer, GType};

// Enums
pub type PanelArea = c_int;
pub const PANEL_AREA_START: PanelArea = 0;
pub const PANEL_AREA_END: PanelArea = 1;
pub const PANEL_AREA_TOP: PanelArea = 2;
pub const PANEL_AREA_BOTTOM: PanelArea = 3;
pub const PANEL_AREA_CENTER: PanelArea = 4;

// Constants
pub const PANEL_MAJOR_VERSION: c_int = 1;
pub const PANEL_MICRO_VERSION: c_int = 0;
pub const PANEL_MINOR_VERSION: c_int = 3;
pub const PANEL_VERSION_S: &[u8] = b"1.3.0\0";
pub const PANEL_WIDGET_KIND_ANY: &[u8] = b"*\0";
pub const PANEL_WIDGET_KIND_DOCUMENT: &[u8] = b"document\0";
pub const PANEL_WIDGET_KIND_UNKNOWN: &[u8] = b"unknown\0";
pub const PANEL_WIDGET_KIND_UTILITY: &[u8] = b"utility\0";

// Callbacks
pub type PanelActionActivateFunc =
    Option<unsafe extern "C" fn(gpointer, *const c_char, *mut glib::GVariant)>;
pub type PanelFrameCallback = Option<unsafe extern "C" fn(*mut PanelFrame, gpointer)>;
pub type PanelWorkspaceForeach = Option<unsafe extern "C" fn(*mut PanelWorkspace, gpointer)>;

// Records
#[repr(C)]
pub struct _PanelAction {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

pub type PanelAction = _PanelAction;

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelActionMuxerClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for PanelActionMuxerClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelActionMuxerClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelApplicationClass {
    pub parent_class: adw::AdwApplicationClass,
    pub _reserved: [gpointer; 8],
}

impl ::std::fmt::Debug for PanelApplicationClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelApplicationClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelDockClass {
    pub parent_class: gtk::GtkWidgetClass,
    pub panel_drag_begin: Option<unsafe extern "C" fn(*mut PanelDock, *mut PanelWidget)>,
    pub panel_drag_end: Option<unsafe extern "C" fn(*mut PanelDock, *mut PanelWidget)>,
}

impl ::std::fmt::Debug for PanelDockClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelDockClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .field("panel_drag_begin", &self.panel_drag_begin)
            .field("panel_drag_end", &self.panel_drag_end)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelDocumentWorkspaceClass {
    pub parent_class: PanelWorkspaceClass,
    pub create_frame: Option<
        unsafe extern "C" fn(*mut PanelDocumentWorkspace, *mut PanelPosition) -> *mut PanelFrame,
    >,
    pub add_widget: Option<
        unsafe extern "C" fn(
            *mut PanelDocumentWorkspace,
            *mut PanelWidget,
            *mut PanelPosition,
        ) -> gboolean,
    >,
    pub _reserved: [gpointer; 16],
}

impl ::std::fmt::Debug for PanelDocumentWorkspaceClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelDocumentWorkspaceClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .field("create_frame", &self.create_frame)
            .field("add_widget", &self.add_widget)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelFrameClass {
    pub parent_class: gtk::GtkWidgetClass,
    pub page_closed: Option<unsafe extern "C" fn(*mut PanelFrame, *mut PanelWidget)>,
    pub adopt_widget: Option<unsafe extern "C" fn(*mut PanelFrame, *mut PanelWidget) -> gboolean>,
    pub _reserved: [gpointer; 6],
}

impl ::std::fmt::Debug for PanelFrameClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelFrameClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .field("page_closed", &self.page_closed)
            .field("adopt_widget", &self.adopt_widget)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelFrameHeaderBarClass {
    pub parent_class: gtk::GtkWidgetClass,
}

impl ::std::fmt::Debug for PanelFrameHeaderBarClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelFrameHeaderBarClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelFrameHeaderInterface {
    pub parent_iface: gobject::GTypeInterface,
    pub page_changed: Option<unsafe extern "C" fn(*mut PanelFrameHeader, *mut PanelWidget)>,
    pub can_drop: Option<unsafe extern "C" fn(*mut PanelFrameHeader, *mut PanelWidget) -> gboolean>,
    pub add_prefix: Option<unsafe extern "C" fn(*mut PanelFrameHeader, c_int, *mut gtk::GtkWidget)>,
    pub add_suffix: Option<unsafe extern "C" fn(*mut PanelFrameHeader, c_int, *mut gtk::GtkWidget)>,
}

impl ::std::fmt::Debug for PanelFrameHeaderInterface {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelFrameHeaderInterface @ {self:p}"))
            .field("parent_iface", &self.parent_iface)
            .field("page_changed", &self.page_changed)
            .field("can_drop", &self.can_drop)
            .field("add_prefix", &self.add_prefix)
            .field("add_suffix", &self.add_suffix)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelFrameSwitcherClass {
    pub parent_class: gtk::GtkWidgetClass,
}

impl ::std::fmt::Debug for PanelFrameSwitcherClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelFrameSwitcherClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelFrameTabBarClass {
    pub parent_class: gtk::GtkWidgetClass,
}

impl ::std::fmt::Debug for PanelFrameTabBarClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelFrameTabBarClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelGSettingsActionGroupClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for PanelGSettingsActionGroupClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelGSettingsActionGroupClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelGridClass {
    pub parent_class: gtk::GtkWidgetClass,
    pub create_frame: Option<unsafe extern "C" fn(*mut PanelGrid) -> *mut PanelFrame>,
    pub _reserved: [gpointer; 12],
}

impl ::std::fmt::Debug for PanelGridClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelGridClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .field("create_frame", &self.create_frame)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelGridColumnClass {
    pub parent_class: gtk::GtkWidgetClass,
}

impl ::std::fmt::Debug for PanelGridColumnClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelGridColumnClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelInhibitorClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for PanelInhibitorClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelInhibitorClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelLayeredSettingsClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for PanelLayeredSettingsClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelLayeredSettingsClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelMenuManagerClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for PanelMenuManagerClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelMenuManagerClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelOmniBarClass {
    pub parent_class: gtk::GtkWidgetClass,
    pub _reserved: [gpointer; 8],
}

impl ::std::fmt::Debug for PanelOmniBarClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelOmniBarClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelPanedClass {
    pub parent_class: gtk::GtkWidgetClass,
}

impl ::std::fmt::Debug for PanelPanedClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelPanedClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelPositionClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for PanelPositionClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelPositionClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelSaveDelegateClass {
    pub parent_class: gobject::GObjectClass,
    pub save_async: Option<
        unsafe extern "C" fn(
            *mut PanelSaveDelegate,
            *mut gio::GCancellable,
            gio::GAsyncReadyCallback,
            gpointer,
        ),
    >,
    pub save_finish: Option<
        unsafe extern "C" fn(
            *mut PanelSaveDelegate,
            *mut gio::GAsyncResult,
            *mut *mut glib::GError,
        ) -> gboolean,
    >,
    pub save: Option<unsafe extern "C" fn(*mut PanelSaveDelegate, *mut gio::GTask) -> gboolean>,
    pub discard: Option<unsafe extern "C" fn(*mut PanelSaveDelegate)>,
    pub close: Option<unsafe extern "C" fn(*mut PanelSaveDelegate)>,
    pub _reserved: [gpointer; 8],
}

impl ::std::fmt::Debug for PanelSaveDelegateClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelSaveDelegateClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .field("save_async", &self.save_async)
            .field("save_finish", &self.save_finish)
            .field("save", &self.save)
            .field("discard", &self.discard)
            .field("close", &self.close)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelSaveDialogClass {
    pub parent_class: adw::AdwMessageDialogClass,
}

impl ::std::fmt::Debug for PanelSaveDialogClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelSaveDialogClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelSessionClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for PanelSessionClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelSessionClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelSessionItemClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for PanelSessionItemClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelSessionItemClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelSettingsClass {
    pub parent_class: gobject::GObjectClass,
}

impl ::std::fmt::Debug for PanelSettingsClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelSettingsClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelStatusbarClass {
    pub parent_class: gtk::GtkWidgetClass,
}

impl ::std::fmt::Debug for PanelStatusbarClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelStatusbarClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelThemeSelectorClass {
    pub parent_class: gtk::GtkWidgetClass,
}

impl ::std::fmt::Debug for PanelThemeSelectorClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelThemeSelectorClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelToggleButtonClass {
    pub parent_class: gtk::GtkWidgetClass,
}

impl ::std::fmt::Debug for PanelToggleButtonClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelToggleButtonClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelWidgetClass {
    pub parent_instance: gtk::GtkWidgetClass,
    pub get_default_focus: Option<unsafe extern "C" fn(*mut PanelWidget) -> *mut gtk::GtkWidget>,
    pub presented: Option<unsafe extern "C" fn(*mut PanelWidget)>,
    pub _reserved: [gpointer; 8],
}

impl ::std::fmt::Debug for PanelWidgetClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelWidgetClass @ {self:p}"))
            .field("parent_instance", &self.parent_instance)
            .field("get_default_focus", &self.get_default_focus)
            .field("presented", &self.presented)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelWorkbenchClass {
    pub parent_class: gtk::GtkWindowGroupClass,
    pub activate: Option<unsafe extern "C" fn(*mut PanelWorkbench)>,
    pub unload_async: Option<
        unsafe extern "C" fn(
            *mut PanelWorkbench,
            *mut gio::GCancellable,
            gio::GAsyncReadyCallback,
            gpointer,
        ),
    >,
    pub unload_finish: Option<
        unsafe extern "C" fn(
            *mut PanelWorkbench,
            *mut gio::GAsyncResult,
            *mut *mut glib::GError,
        ) -> gboolean,
    >,
    pub _reserved: [gpointer; 8],
}

impl ::std::fmt::Debug for PanelWorkbenchClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelWorkbenchClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .field("activate", &self.activate)
            .field("unload_async", &self.unload_async)
            .field("unload_finish", &self.unload_finish)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelWorkspaceClass {
    pub parent_class: adw::AdwApplicationWindowClass,
    pub _reserved: [gpointer; 8],
}

impl ::std::fmt::Debug for PanelWorkspaceClass {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelWorkspaceClass @ {self:p}"))
            .field("parent_class", &self.parent_class)
            .finish()
    }
}

// Classes
#[repr(C)]
pub struct PanelActionMuxer {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelActionMuxer {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelActionMuxer @ {self:p}"))
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelApplication {
    pub parent_instance: adw::AdwApplication,
}

impl ::std::fmt::Debug for PanelApplication {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelApplication @ {self:p}"))
            .field("parent_instance", &self.parent_instance)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelDock {
    pub parent_instance: gtk::GtkWidget,
}

impl ::std::fmt::Debug for PanelDock {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelDock @ {self:p}"))
            .field("parent_instance", &self.parent_instance)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelDocumentWorkspace {
    pub parent_instance: PanelWorkspace,
}

impl ::std::fmt::Debug for PanelDocumentWorkspace {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelDocumentWorkspace @ {self:p}"))
            .field("parent_instance", &self.parent_instance)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelFrame {
    pub parent_instance: gtk::GtkWidget,
}

impl ::std::fmt::Debug for PanelFrame {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelFrame @ {self:p}"))
            .field("parent_instance", &self.parent_instance)
            .finish()
    }
}

#[repr(C)]
pub struct PanelFrameHeaderBar {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelFrameHeaderBar {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelFrameHeaderBar @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PanelFrameSwitcher {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelFrameSwitcher {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelFrameSwitcher @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PanelFrameTabBar {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelFrameTabBar {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelFrameTabBar @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PanelGSettingsActionGroup {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelGSettingsActionGroup {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelGSettingsActionGroup @ {self:p}"))
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelGrid {
    pub parent_instance: gtk::GtkWidget,
}

impl ::std::fmt::Debug for PanelGrid {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelGrid @ {self:p}"))
            .field("parent_instance", &self.parent_instance)
            .finish()
    }
}

#[repr(C)]
pub struct PanelGridColumn {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelGridColumn {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelGridColumn @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PanelInhibitor {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelInhibitor {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelInhibitor @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PanelLayeredSettings {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelLayeredSettings {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelLayeredSettings @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PanelMenuManager {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelMenuManager {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelMenuManager @ {self:p}"))
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelOmniBar {
    pub parent_instance: gtk::GtkWidget,
}

impl ::std::fmt::Debug for PanelOmniBar {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelOmniBar @ {self:p}"))
            .field("parent_instance", &self.parent_instance)
            .finish()
    }
}

#[repr(C)]
pub struct PanelPaned {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelPaned {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelPaned @ {self:p}")).finish()
    }
}

#[repr(C)]
pub struct PanelPosition {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelPosition {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelPosition @ {self:p}"))
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelSaveDelegate {
    pub parent_instance: gobject::GObject,
}

impl ::std::fmt::Debug for PanelSaveDelegate {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelSaveDelegate @ {self:p}"))
            .field("parent_instance", &self.parent_instance)
            .finish()
    }
}

#[repr(C)]
pub struct PanelSaveDialog {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelSaveDialog {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelSaveDialog @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PanelSession {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelSession {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelSession @ {self:p}")).finish()
    }
}

#[repr(C)]
pub struct PanelSessionItem {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelSessionItem {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelSessionItem @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PanelSettings {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelSettings {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelSettings @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PanelStatusbar {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelStatusbar {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelStatusbar @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PanelThemeSelector {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelThemeSelector {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelThemeSelector @ {self:p}"))
            .finish()
    }
}

#[repr(C)]
pub struct PanelToggleButton {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelToggleButton {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelToggleButton @ {self:p}"))
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelWidget {
    pub parent_instance: gtk::GtkWidget,
}

impl ::std::fmt::Debug for PanelWidget {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelWidget @ {self:p}"))
            .field("parent_instance", &self.parent_instance)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelWorkbench {
    pub parent_instance: gtk::GtkWindowGroup,
}

impl ::std::fmt::Debug for PanelWorkbench {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelWorkbench @ {self:p}"))
            .field("parent_instance", &self.parent_instance)
            .finish()
    }
}

#[derive(Copy, Clone)]
#[repr(C)]
pub struct PanelWorkspace {
    pub parent_instance: adw::AdwApplicationWindow,
}

impl ::std::fmt::Debug for PanelWorkspace {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        f.debug_struct(&format!("PanelWorkspace @ {self:p}"))
            .field("parent_instance", &self.parent_instance)
            .finish()
    }
}

// Interfaces
#[repr(C)]
pub struct PanelFrameHeader {
    _data: [u8; 0],
    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}

impl ::std::fmt::Debug for PanelFrameHeader {
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
        write!(f, "PanelFrameHeader @ {self:p}")
    }
}

#[link(name = "panel-1")]
extern "C" {

    //=========================================================================
    // PanelArea
    //=========================================================================
    pub fn panel_area_get_type() -> GType;

    //=========================================================================
    // PanelWidgetClass
    //=========================================================================
    pub fn panel_widget_class_install_action(
        widget_class: *mut PanelWidgetClass,
        action_name: *const c_char,
        parameter_type: *const c_char,
        activate: gtk::GtkWidgetActionActivateFunc,
    );
    pub fn panel_widget_class_install_property_action(
        widget_class: *mut PanelWidgetClass,
        action_name: *const c_char,
        property_name: *const c_char,
    );

    //=========================================================================
    // PanelWorkbenchClass
    //=========================================================================
    pub fn panel_workbench_class_install_action(
        workbench_class: *mut PanelWorkbenchClass,
        action_name: *const c_char,
        parameter_type: *const c_char,
        activate: PanelActionActivateFunc,
    );
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_workbench_class_install_property_action(
        workbench_class: *mut PanelWorkbenchClass,
        action_name: *const c_char,
        property_name: *const c_char,
    );

    //=========================================================================
    // PanelWorkspaceClass
    //=========================================================================
    pub fn panel_workspace_class_install_action(
        workspace_class: *mut PanelWorkspaceClass,
        action_name: *const c_char,
        parameter_type: *const c_char,
        activate: PanelActionActivateFunc,
    );
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_workspace_class_install_property_action(
        workspace_class: *mut PanelWorkspaceClass,
        action_name: *const c_char,
        property_name: *const c_char,
    );

    //=========================================================================
    // PanelActionMuxer
    //=========================================================================
    pub fn panel_action_muxer_get_type() -> GType;
    pub fn panel_action_muxer_new() -> *mut PanelActionMuxer;
    pub fn panel_action_muxer_get_action_group(
        self_: *mut PanelActionMuxer,
        prefix: *const c_char,
    ) -> *mut gio::GActionGroup;
    pub fn panel_action_muxer_insert_action_group(
        self_: *mut PanelActionMuxer,
        prefix: *const c_char,
        action_group: *mut gio::GActionGroup,
    );
    pub fn panel_action_muxer_list_groups(self_: *mut PanelActionMuxer) -> *mut *mut c_char;
    pub fn panel_action_muxer_remove_action_group(
        self_: *mut PanelActionMuxer,
        prefix: *const c_char,
    );
    pub fn panel_action_muxer_remove_all(self_: *mut PanelActionMuxer);

    //=========================================================================
    // PanelApplication
    //=========================================================================
    pub fn panel_application_get_type() -> GType;
    pub fn panel_application_new(
        application_id: *const c_char,
        flags: gio::GApplicationFlags,
    ) -> *mut PanelApplication;

    //=========================================================================
    // PanelDock
    //=========================================================================
    pub fn panel_dock_get_type() -> GType;
    pub fn panel_dock_new() -> *mut gtk::GtkWidget;
    pub fn panel_dock_foreach_frame(
        self_: *mut PanelDock,
        callback: PanelFrameCallback,
        user_data: gpointer,
    );
    pub fn panel_dock_get_can_reveal_area(self_: *mut PanelDock, area: PanelArea) -> gboolean;
    pub fn panel_dock_get_can_reveal_bottom(self_: *mut PanelDock) -> gboolean;
    pub fn panel_dock_get_can_reveal_end(self_: *mut PanelDock) -> gboolean;
    pub fn panel_dock_get_can_reveal_start(self_: *mut PanelDock) -> gboolean;
    pub fn panel_dock_get_can_reveal_top(self_: *mut PanelDock) -> gboolean;
    pub fn panel_dock_get_reveal_area(self_: *mut PanelDock, area: PanelArea) -> gboolean;
    pub fn panel_dock_get_reveal_bottom(self_: *mut PanelDock) -> gboolean;
    pub fn panel_dock_get_reveal_end(self_: *mut PanelDock) -> gboolean;
    pub fn panel_dock_get_reveal_start(self_: *mut PanelDock) -> gboolean;
    pub fn panel_dock_get_reveal_top(self_: *mut PanelDock) -> gboolean;
    pub fn panel_dock_remove(self_: *mut PanelDock, widget: *mut gtk::GtkWidget);
    pub fn panel_dock_set_bottom_height(self_: *mut PanelDock, height: c_int);
    pub fn panel_dock_set_end_width(self_: *mut PanelDock, width: c_int);
    pub fn panel_dock_set_reveal_area(self_: *mut PanelDock, area: PanelArea, reveal: gboolean);
    pub fn panel_dock_set_reveal_bottom(self_: *mut PanelDock, reveal_bottom: gboolean);
    pub fn panel_dock_set_reveal_end(self_: *mut PanelDock, reveal_end: gboolean);
    pub fn panel_dock_set_reveal_start(self_: *mut PanelDock, reveal_start: gboolean);
    pub fn panel_dock_set_reveal_top(self_: *mut PanelDock, reveal_top: gboolean);
    pub fn panel_dock_set_start_width(self_: *mut PanelDock, width: c_int);
    pub fn panel_dock_set_top_height(self_: *mut PanelDock, height: c_int);

    //=========================================================================
    // PanelDocumentWorkspace
    //=========================================================================
    pub fn panel_document_workspace_get_type() -> GType;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_document_workspace_new() -> *mut PanelDocumentWorkspace;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_document_workspace_add_widget(
        self_: *mut PanelDocumentWorkspace,
        widget: *mut PanelWidget,
        position: *mut PanelPosition,
    ) -> gboolean;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_document_workspace_get_dock(self_: *mut PanelDocumentWorkspace) -> *mut PanelDock;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_document_workspace_get_grid(self_: *mut PanelDocumentWorkspace) -> *mut PanelGrid;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_document_workspace_get_statusbar(
        self_: *mut PanelDocumentWorkspace,
    ) -> *mut PanelStatusbar;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_document_workspace_get_titlebar(
        self_: *mut PanelDocumentWorkspace,
    ) -> *mut gtk::GtkWidget;
    pub fn panel_document_workspace_set_titlebar(
        self_: *mut PanelDocumentWorkspace,
        titlebar: *mut gtk::GtkWidget,
    );

    //=========================================================================
    // PanelFrame
    //=========================================================================
    pub fn panel_frame_get_type() -> GType;
    pub fn panel_frame_new() -> *mut gtk::GtkWidget;
    pub fn panel_frame_add(self_: *mut PanelFrame, panel: *mut PanelWidget);
    pub fn panel_frame_add_before(
        self_: *mut PanelFrame,
        panel: *mut PanelWidget,
        sibling: *mut PanelWidget,
    );
    pub fn panel_frame_get_closeable(self_: *mut PanelFrame) -> gboolean;
    pub fn panel_frame_get_empty(self_: *mut PanelFrame) -> gboolean;
    pub fn panel_frame_get_header(self_: *mut PanelFrame) -> *mut PanelFrameHeader;
    pub fn panel_frame_get_n_pages(self_: *mut PanelFrame) -> c_uint;
    pub fn panel_frame_get_page(self_: *mut PanelFrame, n: c_uint) -> *mut PanelWidget;
    pub fn panel_frame_get_pages(self_: *mut PanelFrame) -> *mut gtk::GtkSelectionModel;
    pub fn panel_frame_get_placeholder(self_: *mut PanelFrame) -> *mut gtk::GtkWidget;
    pub fn panel_frame_get_position(self_: *mut PanelFrame) -> *mut PanelPosition;
    pub fn panel_frame_get_requested_size(self_: *mut PanelFrame) -> c_int;
    pub fn panel_frame_get_visible_child(self_: *mut PanelFrame) -> *mut PanelWidget;
    pub fn panel_frame_remove(self_: *mut PanelFrame, panel: *mut PanelWidget);
    #[cfg(feature = "v1_2")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_2")))]
    pub fn panel_frame_set_child_pinned(
        self_: *mut PanelFrame,
        child: *mut PanelWidget,
        pinned: gboolean,
    );
    pub fn panel_frame_set_header(self_: *mut PanelFrame, header: *mut PanelFrameHeader);
    pub fn panel_frame_set_placeholder(self_: *mut PanelFrame, placeholder: *mut gtk::GtkWidget);
    pub fn panel_frame_set_requested_size(self_: *mut PanelFrame, requested_size: c_int);
    pub fn panel_frame_set_visible_child(self_: *mut PanelFrame, widget: *mut PanelWidget);

    //=========================================================================
    // PanelFrameHeaderBar
    //=========================================================================
    pub fn panel_frame_header_bar_get_type() -> GType;
    pub fn panel_frame_header_bar_new() -> *mut gtk::GtkWidget;
    pub fn panel_frame_header_bar_get_menu_popover(
        self_: *mut PanelFrameHeaderBar,
    ) -> *mut gtk::GtkPopoverMenu;
    pub fn panel_frame_header_bar_get_show_icon(self_: *mut PanelFrameHeaderBar) -> gboolean;
    pub fn panel_frame_header_bar_set_show_icon(
        self_: *mut PanelFrameHeaderBar,
        show_icon: gboolean,
    );

    //=========================================================================
    // PanelFrameSwitcher
    //=========================================================================
    pub fn panel_frame_switcher_get_type() -> GType;
    pub fn panel_frame_switcher_new() -> *mut gtk::GtkWidget;

    //=========================================================================
    // PanelFrameTabBar
    //=========================================================================
    pub fn panel_frame_tab_bar_get_type() -> GType;
    pub fn panel_frame_tab_bar_new() -> *mut gtk::GtkWidget;
    pub fn panel_frame_tab_bar_get_autohide(self_: *mut PanelFrameTabBar) -> gboolean;
    pub fn panel_frame_tab_bar_get_expand_tabs(self_: *mut PanelFrameTabBar) -> gboolean;
    pub fn panel_frame_tab_bar_get_inverted(self_: *mut PanelFrameTabBar) -> gboolean;
    pub fn panel_frame_tab_bar_set_autohide(self_: *mut PanelFrameTabBar, autohide: gboolean);
    pub fn panel_frame_tab_bar_set_expand_tabs(self_: *mut PanelFrameTabBar, expand_tabs: gboolean);
    pub fn panel_frame_tab_bar_set_inverted(self_: *mut PanelFrameTabBar, inverted: gboolean);

    //=========================================================================
    // PanelGSettingsActionGroup
    //=========================================================================
    pub fn panel_gsettings_action_group_get_type() -> GType;
    pub fn panel_gsettings_action_group_new(
        settings: *mut gio::GSettings,
    ) -> *mut gio::GActionGroup;

    //=========================================================================
    // PanelGrid
    //=========================================================================
    pub fn panel_grid_get_type() -> GType;
    pub fn panel_grid_new() -> *mut gtk::GtkWidget;
    pub fn panel_grid_add(self_: *mut PanelGrid, widget: *mut PanelWidget);
    pub fn panel_grid_agree_to_close_async(
        self_: *mut PanelGrid,
        cancellable: *mut gio::GCancellable,
        callback: gio::GAsyncReadyCallback,
        user_data: gpointer,
    );
    pub fn panel_grid_agree_to_close_finish(
        self_: *mut PanelGrid,
        result: *mut gio::GAsyncResult,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn panel_grid_foreach_frame(
        self_: *mut PanelGrid,
        callback: PanelFrameCallback,
        user_data: gpointer,
    );
    pub fn panel_grid_get_column(self_: *mut PanelGrid, column: c_uint) -> *mut PanelGridColumn;
    pub fn panel_grid_get_most_recent_column(self_: *mut PanelGrid) -> *mut PanelGridColumn;
    pub fn panel_grid_get_most_recent_frame(self_: *mut PanelGrid) -> *mut PanelFrame;
    pub fn panel_grid_get_n_columns(self_: *mut PanelGrid) -> c_uint;
    pub fn panel_grid_insert_column(self_: *mut PanelGrid, position: c_uint);

    //=========================================================================
    // PanelGridColumn
    //=========================================================================
    pub fn panel_grid_column_get_type() -> GType;
    pub fn panel_grid_column_new() -> *mut gtk::GtkWidget;
    pub fn panel_grid_column_foreach_frame(
        self_: *mut PanelGridColumn,
        callback: PanelFrameCallback,
        user_data: gpointer,
    );
    pub fn panel_grid_column_get_empty(self_: *mut PanelGridColumn) -> gboolean;
    pub fn panel_grid_column_get_most_recent_frame(self_: *mut PanelGridColumn) -> *mut PanelFrame;
    pub fn panel_grid_column_get_n_rows(self_: *mut PanelGridColumn) -> c_uint;
    pub fn panel_grid_column_get_row(self_: *mut PanelGridColumn, row: c_uint) -> *mut PanelFrame;

    //=========================================================================
    // PanelInhibitor
    //=========================================================================
    pub fn panel_inhibitor_get_type() -> GType;
    pub fn panel_inhibitor_uninhibit(self_: *mut PanelInhibitor);

    //=========================================================================
    // PanelLayeredSettings
    //=========================================================================
    pub fn panel_layered_settings_get_type() -> GType;
    pub fn panel_layered_settings_new(
        schema_id: *const c_char,
        path: *const c_char,
    ) -> *mut PanelLayeredSettings;
    pub fn panel_layered_settings_append(
        self_: *mut PanelLayeredSettings,
        settings: *mut gio::GSettings,
    );
    pub fn panel_layered_settings_bind(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
        object: gpointer,
        property: *const c_char,
        flags: gio::GSettingsBindFlags,
    );
    pub fn panel_layered_settings_bind_with_mapping(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
        object: gpointer,
        property: *const c_char,
        flags: gio::GSettingsBindFlags,
        get_mapping: gio::GSettingsBindGetMapping,
        set_mapping: gio::GSettingsBindSetMapping,
        user_data: gpointer,
        destroy: glib::GDestroyNotify,
    );
    pub fn panel_layered_settings_get_boolean(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
    ) -> gboolean;
    pub fn panel_layered_settings_get_default_value(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
    ) -> *mut glib::GVariant;
    pub fn panel_layered_settings_get_double(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
    ) -> c_double;
    pub fn panel_layered_settings_get_int(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
    ) -> c_int;
    pub fn panel_layered_settings_get_key(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
    ) -> *mut gio::GSettingsSchemaKey;
    pub fn panel_layered_settings_get_string(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
    ) -> *mut c_char;
    pub fn panel_layered_settings_get_uint(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
    ) -> c_uint;
    pub fn panel_layered_settings_get_user_value(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
    ) -> *mut glib::GVariant;
    pub fn panel_layered_settings_get_value(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
    ) -> *mut glib::GVariant;
    pub fn panel_layered_settings_list_keys(self_: *mut PanelLayeredSettings) -> *mut *mut c_char;
    pub fn panel_layered_settings_set_boolean(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
        val: gboolean,
    );
    pub fn panel_layered_settings_set_double(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
        val: c_double,
    );
    pub fn panel_layered_settings_set_int(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
        val: c_int,
    );
    pub fn panel_layered_settings_set_string(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
        val: *const c_char,
    );
    pub fn panel_layered_settings_set_uint(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
        val: c_uint,
    );
    pub fn panel_layered_settings_set_value(
        self_: *mut PanelLayeredSettings,
        key: *const c_char,
        value: *mut glib::GVariant,
    );
    pub fn panel_layered_settings_unbind(self_: *mut PanelLayeredSettings, property: *const c_char);

    //=========================================================================
    // PanelMenuManager
    //=========================================================================
    pub fn panel_menu_manager_get_type() -> GType;
    pub fn panel_menu_manager_new() -> *mut PanelMenuManager;
    pub fn panel_menu_manager_add_filename(
        self_: *mut PanelMenuManager,
        filename: *const c_char,
        error: *mut *mut glib::GError,
    ) -> c_uint;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_menu_manager_add_resource(
        self_: *mut PanelMenuManager,
        resource: *const c_char,
        error: *mut *mut glib::GError,
    ) -> c_uint;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_menu_manager_find_item_by_id(
        self_: *mut PanelMenuManager,
        id: *const c_char,
        position: *mut c_uint,
    ) -> *mut gio::GMenu;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_menu_manager_get_menu_by_id(
        self_: *mut PanelMenuManager,
        menu_id: *const c_char,
    ) -> *mut gio::GMenu;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_menu_manager_get_menu_ids(self_: *mut PanelMenuManager) -> *const *const c_char;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_menu_manager_merge(
        self_: *mut PanelMenuManager,
        menu_id: *const c_char,
        menu_model: *mut gio::GMenuModel,
    ) -> c_uint;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_menu_manager_remove(self_: *mut PanelMenuManager, merge_id: c_uint);
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_menu_manager_set_attribute_string(
        self_: *mut PanelMenuManager,
        menu: *mut gio::GMenu,
        position: c_uint,
        attribute: *const c_char,
        value: *const c_char,
    );

    //=========================================================================
    // PanelOmniBar
    //=========================================================================
    pub fn panel_omni_bar_get_type() -> GType;
    pub fn panel_omni_bar_new() -> *mut gtk::GtkWidget;
    pub fn panel_omni_bar_add_prefix(
        self_: *mut PanelOmniBar,
        priority: c_int,
        widget: *mut gtk::GtkWidget,
    );
    pub fn panel_omni_bar_add_suffix(
        self_: *mut PanelOmniBar,
        priority: c_int,
        widget: *mut gtk::GtkWidget,
    );
    pub fn panel_omni_bar_get_popover(self_: *mut PanelOmniBar) -> *mut gtk::GtkPopover;
    pub fn panel_omni_bar_get_progress(self_: *mut PanelOmniBar) -> c_double;
    pub fn panel_omni_bar_remove(self_: *mut PanelOmniBar, widget: *mut gtk::GtkWidget);
    pub fn panel_omni_bar_set_popover(self_: *mut PanelOmniBar, popover: *mut gtk::GtkPopover);
    pub fn panel_omni_bar_set_progress(self_: *mut PanelOmniBar, progress: c_double);
    pub fn panel_omni_bar_start_pulsing(self_: *mut PanelOmniBar);
    pub fn panel_omni_bar_stop_pulsing(self_: *mut PanelOmniBar);

    //=========================================================================
    // PanelPaned
    //=========================================================================
    pub fn panel_paned_get_type() -> GType;
    pub fn panel_paned_new() -> *mut gtk::GtkWidget;
    pub fn panel_paned_append(self_: *mut PanelPaned, child: *mut gtk::GtkWidget);
    pub fn panel_paned_get_n_children(self_: *mut PanelPaned) -> c_uint;
    pub fn panel_paned_get_nth_child(self_: *mut PanelPaned, nth: c_uint) -> *mut gtk::GtkWidget;
    pub fn panel_paned_insert(self_: *mut PanelPaned, position: c_int, child: *mut gtk::GtkWidget);
    pub fn panel_paned_insert_after(
        self_: *mut PanelPaned,
        child: *mut gtk::GtkWidget,
        sibling: *mut gtk::GtkWidget,
    );
    pub fn panel_paned_prepend(self_: *mut PanelPaned, child: *mut gtk::GtkWidget);
    pub fn panel_paned_remove(self_: *mut PanelPaned, child: *mut gtk::GtkWidget);

    //=========================================================================
    // PanelPosition
    //=========================================================================
    pub fn panel_position_get_type() -> GType;
    pub fn panel_position_new() -> *mut PanelPosition;
    pub fn panel_position_new_from_variant(variant: *mut glib::GVariant) -> *mut PanelPosition;
    pub fn panel_position_equal(a: *mut PanelPosition, b: *mut PanelPosition) -> gboolean;
    pub fn panel_position_get_area(self_: *mut PanelPosition) -> PanelArea;
    pub fn panel_position_get_area_set(self_: *mut PanelPosition) -> gboolean;
    pub fn panel_position_get_column(self_: *mut PanelPosition) -> c_uint;
    pub fn panel_position_get_column_set(self_: *mut PanelPosition) -> gboolean;
    pub fn panel_position_get_depth(self_: *mut PanelPosition) -> c_uint;
    pub fn panel_position_get_depth_set(self_: *mut PanelPosition) -> gboolean;
    pub fn panel_position_get_row(self_: *mut PanelPosition) -> c_uint;
    pub fn panel_position_get_row_set(self_: *mut PanelPosition) -> gboolean;
    pub fn panel_position_is_indeterminate(self_: *mut PanelPosition) -> gboolean;
    pub fn panel_position_set_area(self_: *mut PanelPosition, area: PanelArea);
    pub fn panel_position_set_area_set(self_: *mut PanelPosition, area_set: gboolean);
    pub fn panel_position_set_column(self_: *mut PanelPosition, column: c_uint);
    pub fn panel_position_set_column_set(self_: *mut PanelPosition, column_set: gboolean);
    pub fn panel_position_set_depth(self_: *mut PanelPosition, depth: c_uint);
    pub fn panel_position_set_depth_set(self_: *mut PanelPosition, depth_set: gboolean);
    pub fn panel_position_set_row(self_: *mut PanelPosition, row: c_uint);
    pub fn panel_position_set_row_set(self_: *mut PanelPosition, row_set: gboolean);
    pub fn panel_position_to_variant(self_: *mut PanelPosition) -> *mut glib::GVariant;

    //=========================================================================
    // PanelSaveDelegate
    //=========================================================================
    pub fn panel_save_delegate_get_type() -> GType;
    pub fn panel_save_delegate_new() -> *mut PanelSaveDelegate;
    pub fn panel_save_delegate_close(self_: *mut PanelSaveDelegate);
    pub fn panel_save_delegate_discard(self_: *mut PanelSaveDelegate);
    pub fn panel_save_delegate_get_icon(self_: *mut PanelSaveDelegate) -> *mut gio::GIcon;
    pub fn panel_save_delegate_get_icon_name(self_: *mut PanelSaveDelegate) -> *const c_char;
    pub fn panel_save_delegate_get_is_draft(self_: *mut PanelSaveDelegate) -> gboolean;
    pub fn panel_save_delegate_get_progress(self_: *mut PanelSaveDelegate) -> c_double;
    pub fn panel_save_delegate_get_subtitle(self_: *mut PanelSaveDelegate) -> *const c_char;
    pub fn panel_save_delegate_get_title(self_: *mut PanelSaveDelegate) -> *const c_char;
    pub fn panel_save_delegate_save_async(
        self_: *mut PanelSaveDelegate,
        cancellable: *mut gio::GCancellable,
        callback: gio::GAsyncReadyCallback,
        user_data: gpointer,
    );
    pub fn panel_save_delegate_save_finish(
        self_: *mut PanelSaveDelegate,
        result: *mut gio::GAsyncResult,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn panel_save_delegate_set_icon(self_: *mut PanelSaveDelegate, icon: *mut gio::GIcon);
    pub fn panel_save_delegate_set_icon_name(self_: *mut PanelSaveDelegate, icon: *const c_char);
    pub fn panel_save_delegate_set_is_draft(self_: *mut PanelSaveDelegate, is_draft: gboolean);
    pub fn panel_save_delegate_set_progress(self_: *mut PanelSaveDelegate, progress: c_double);
    pub fn panel_save_delegate_set_subtitle(self_: *mut PanelSaveDelegate, subtitle: *const c_char);
    pub fn panel_save_delegate_set_title(self_: *mut PanelSaveDelegate, title: *const c_char);

    //=========================================================================
    // PanelSaveDialog
    //=========================================================================
    pub fn panel_save_dialog_get_type() -> GType;
    pub fn panel_save_dialog_new() -> *mut gtk::GtkWidget;
    pub fn panel_save_dialog_add_delegate(
        self_: *mut PanelSaveDialog,
        delegate: *mut PanelSaveDelegate,
    );
    pub fn panel_save_dialog_get_close_after_save(self_: *mut PanelSaveDialog) -> gboolean;
    pub fn panel_save_dialog_run_async(
        self_: *mut PanelSaveDialog,
        cancellable: *mut gio::GCancellable,
        callback: gio::GAsyncReadyCallback,
        user_data: gpointer,
    );
    pub fn panel_save_dialog_run_finish(
        self_: *mut PanelSaveDialog,
        result: *mut gio::GAsyncResult,
        error: *mut *mut glib::GError,
    ) -> gboolean;
    pub fn panel_save_dialog_set_close_after_save(
        self_: *mut PanelSaveDialog,
        close_after_save: gboolean,
    );

    //=========================================================================
    // PanelSession
    //=========================================================================
    pub fn panel_session_get_type() -> GType;
    pub fn panel_session_new() -> *mut PanelSession;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_session_new_from_variant(
        variant: *mut glib::GVariant,
        error: *mut *mut glib::GError,
    ) -> *mut PanelSession;
    pub fn panel_session_append(self_: *mut PanelSession, item: *mut PanelSessionItem);
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_session_get_item(
        self_: *mut PanelSession,
        position: c_uint,
    ) -> *mut PanelSessionItem;
    pub fn panel_session_get_n_items(self_: *mut PanelSession) -> c_uint;
    pub fn panel_session_insert(
        self_: *mut PanelSession,
        position: c_uint,
        item: *mut PanelSessionItem,
    );
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_session_lookup_by_id(
        self_: *mut PanelSession,
        id: *const c_char,
    ) -> *mut PanelSessionItem;
    pub fn panel_session_prepend(self_: *mut PanelSession, item: *mut PanelSessionItem);
    pub fn panel_session_remove(self_: *mut PanelSession, item: *mut PanelSessionItem);
    pub fn panel_session_remove_at(self_: *mut PanelSession, position: c_uint);
    pub fn panel_session_to_variant(self_: *mut PanelSession) -> *mut glib::GVariant;

    //=========================================================================
    // PanelSessionItem
    //=========================================================================
    pub fn panel_session_item_get_type() -> GType;
    pub fn panel_session_item_new() -> *mut PanelSessionItem;
    pub fn panel_session_item_get_id(self_: *mut PanelSessionItem) -> *const c_char;
    pub fn panel_session_item_get_metadata(
        self_: *mut PanelSessionItem,
        key: *const c_char,
        format: *const c_char,
        ...
    ) -> gboolean;
    pub fn panel_session_item_get_metadata_value(
        self_: *mut PanelSessionItem,
        key: *const c_char,
        expected_type: *const glib::GVariantType,
    ) -> *mut glib::GVariant;
    pub fn panel_session_item_get_module_name(self_: *mut PanelSessionItem) -> *const c_char;
    pub fn panel_session_item_get_position(self_: *mut PanelSessionItem) -> *mut PanelPosition;
    pub fn panel_session_item_get_type_hint(self_: *mut PanelSessionItem) -> *const c_char;
    pub fn panel_session_item_get_workspace(self_: *mut PanelSessionItem) -> *const c_char;
    pub fn panel_session_item_has_metadata(
        self_: *mut PanelSessionItem,
        key: *const c_char,
        value_type: *mut *const glib::GVariantType,
    ) -> gboolean;
    pub fn panel_session_item_has_metadata_with_type(
        self_: *mut PanelSessionItem,
        key: *const c_char,
        expected_type: *const glib::GVariantType,
    ) -> gboolean;
    pub fn panel_session_item_set_id(self_: *mut PanelSessionItem, id: *const c_char);
    pub fn panel_session_item_set_metadata(
        self_: *mut PanelSessionItem,
        key: *const c_char,
        format: *const c_char,
        ...
    );
    pub fn panel_session_item_set_metadata_value(
        self_: *mut PanelSessionItem,
        key: *const c_char,
        value: *mut glib::GVariant,
    );
    pub fn panel_session_item_set_module_name(
        self_: *mut PanelSessionItem,
        module_name: *const c_char,
    );
    pub fn panel_session_item_set_position(
        self_: *mut PanelSessionItem,
        position: *mut PanelPosition,
    );
    pub fn panel_session_item_set_type_hint(self_: *mut PanelSessionItem, type_hint: *const c_char);
    pub fn panel_session_item_set_workspace(self_: *mut PanelSessionItem, workspace: *const c_char);

    //=========================================================================
    // PanelSettings
    //=========================================================================
    pub fn panel_settings_get_type() -> GType;
    pub fn panel_settings_new(
        identifier: *const c_char,
        schema_id: *const c_char,
    ) -> *mut PanelSettings;
    pub fn panel_settings_new_relocatable(
        identifier: *const c_char,
        schema_id: *const c_char,
        schema_id_prefix: *const c_char,
        path_prefix: *const c_char,
        path_suffix: *const c_char,
    ) -> *mut PanelSettings;
    pub fn panel_settings_new_with_path(
        identifier: *const c_char,
        schema_id: *const c_char,
        path: *const c_char,
    ) -> *mut PanelSettings;
    pub fn panel_settings_resolve_schema_path(
        schema_id_prefix: *const c_char,
        schema_id: *const c_char,
        identifier: *const c_char,
        path_prefix: *const c_char,
        path_suffix: *const c_char,
    ) -> *mut c_char;
    pub fn panel_settings_bind(
        self_: *mut PanelSettings,
        key: *const c_char,
        object: gpointer,
        property: *const c_char,
        flags: gio::GSettingsBindFlags,
    );
    pub fn panel_settings_bind_with_mapping(
        self_: *mut PanelSettings,
        key: *const c_char,
        object: gpointer,
        property: *const c_char,
        flags: gio::GSettingsBindFlags,
        get_mapping: gio::GSettingsBindGetMapping,
        set_mapping: gio::GSettingsBindSetMapping,
        user_data: gpointer,
        destroy: glib::GDestroyNotify,
    );
    pub fn panel_settings_get_boolean(self_: *mut PanelSettings, key: *const c_char) -> gboolean;
    pub fn panel_settings_get_default_value(
        self_: *mut PanelSettings,
        key: *const c_char,
    ) -> *mut glib::GVariant;
    pub fn panel_settings_get_double(self_: *mut PanelSettings, key: *const c_char) -> c_double;
    pub fn panel_settings_get_int(self_: *mut PanelSettings, key: *const c_char) -> c_int;
    pub fn panel_settings_get_schema_id(self_: *mut PanelSettings) -> *const c_char;
    pub fn panel_settings_get_string(self_: *mut PanelSettings, key: *const c_char) -> *mut c_char;
    pub fn panel_settings_get_uint(self_: *mut PanelSettings, key: *const c_char) -> c_uint;
    pub fn panel_settings_get_user_value(
        self_: *mut PanelSettings,
        key: *const c_char,
    ) -> *mut glib::GVariant;
    pub fn panel_settings_get_value(
        self_: *mut PanelSettings,
        key: *const c_char,
    ) -> *mut glib::GVariant;
    pub fn panel_settings_set_boolean(self_: *mut PanelSettings, key: *const c_char, val: gboolean);
    pub fn panel_settings_set_double(self_: *mut PanelSettings, key: *const c_char, val: c_double);
    pub fn panel_settings_set_int(self_: *mut PanelSettings, key: *const c_char, val: c_int);
    pub fn panel_settings_set_string(
        self_: *mut PanelSettings,
        key: *const c_char,
        val: *const c_char,
    );
    pub fn panel_settings_set_uint(self_: *mut PanelSettings, key: *const c_char, val: c_uint);
    pub fn panel_settings_set_value(
        self_: *mut PanelSettings,
        key: *const c_char,
        value: *mut glib::GVariant,
    );
    pub fn panel_settings_unbind(self_: *mut PanelSettings, property: *const c_char);

    //=========================================================================
    // PanelStatusbar
    //=========================================================================
    pub fn panel_statusbar_get_type() -> GType;
    pub fn panel_statusbar_new() -> *mut gtk::GtkWidget;
    pub fn panel_statusbar_add_prefix(
        self_: *mut PanelStatusbar,
        priority: c_int,
        widget: *mut gtk::GtkWidget,
    );
    pub fn panel_statusbar_add_suffix(
        self_: *mut PanelStatusbar,
        priority: c_int,
        widget: *mut gtk::GtkWidget,
    );
    pub fn panel_statusbar_remove(self_: *mut PanelStatusbar, widget: *mut gtk::GtkWidget);

    //=========================================================================
    // PanelThemeSelector
    //=========================================================================
    pub fn panel_theme_selector_get_type() -> GType;
    pub fn panel_theme_selector_new() -> *mut gtk::GtkWidget;
    pub fn panel_theme_selector_get_action_name(self_: *mut PanelThemeSelector) -> *const c_char;
    pub fn panel_theme_selector_set_action_name(
        self_: *mut PanelThemeSelector,
        action_name: *const c_char,
    );

    //=========================================================================
    // PanelToggleButton
    //=========================================================================
    pub fn panel_toggle_button_get_type() -> GType;
    pub fn panel_toggle_button_new(dock: *mut PanelDock, area: PanelArea) -> *mut gtk::GtkWidget;

    //=========================================================================
    // PanelWidget
    //=========================================================================
    pub fn panel_widget_get_type() -> GType;
    pub fn panel_widget_new() -> *mut gtk::GtkWidget;
    pub fn panel_widget_action_set_enabled(
        widget: *mut PanelWidget,
        action_name: *const c_char,
        enabled: gboolean,
    );
    pub fn panel_widget_close(self_: *mut PanelWidget);
    pub fn panel_widget_focus_default(self_: *mut PanelWidget) -> gboolean;
    pub fn panel_widget_force_close(self_: *mut PanelWidget);
    pub fn panel_widget_get_busy(self_: *mut PanelWidget) -> gboolean;
    pub fn panel_widget_get_can_maximize(self_: *mut PanelWidget) -> gboolean;
    pub fn panel_widget_get_child(self_: *mut PanelWidget) -> *mut gtk::GtkWidget;
    pub fn panel_widget_get_default_focus(self_: *mut PanelWidget) -> *mut gtk::GtkWidget;
    pub fn panel_widget_get_icon(self_: *mut PanelWidget) -> *mut gio::GIcon;
    pub fn panel_widget_get_icon_name(self_: *mut PanelWidget) -> *const c_char;
    pub fn panel_widget_get_id(self_: *mut PanelWidget) -> *const c_char;
    pub fn panel_widget_get_kind(self_: *mut PanelWidget) -> *const c_char;
    pub fn panel_widget_get_menu_model(self_: *mut PanelWidget) -> *mut gio::GMenuModel;
    pub fn panel_widget_get_modified(self_: *mut PanelWidget) -> gboolean;
    pub fn panel_widget_get_needs_attention(self_: *mut PanelWidget) -> gboolean;
    pub fn panel_widget_get_position(self_: *mut PanelWidget) -> *mut PanelPosition;
    pub fn panel_widget_get_reorderable(self_: *mut PanelWidget) -> gboolean;
    pub fn panel_widget_get_save_delegate(self_: *mut PanelWidget) -> *mut PanelSaveDelegate;
    pub fn panel_widget_get_title(self_: *mut PanelWidget) -> *const c_char;
    pub fn panel_widget_get_tooltip(self_: *mut PanelWidget) -> *const c_char;
    pub fn panel_widget_insert_action_group(
        self_: *mut PanelWidget,
        prefix: *const c_char,
        group: *mut gio::GActionGroup,
    );
    pub fn panel_widget_mark_busy(self_: *mut PanelWidget);
    pub fn panel_widget_maximize(self_: *mut PanelWidget);
    pub fn panel_widget_raise(self_: *mut PanelWidget);
    pub fn panel_widget_set_can_maximize(self_: *mut PanelWidget, can_maximize: gboolean);
    pub fn panel_widget_set_child(self_: *mut PanelWidget, child: *mut gtk::GtkWidget);
    pub fn panel_widget_set_icon(self_: *mut PanelWidget, icon: *mut gio::GIcon);
    pub fn panel_widget_set_icon_name(self_: *mut PanelWidget, icon_name: *const c_char);
    pub fn panel_widget_set_id(self_: *mut PanelWidget, id: *const c_char);
    pub fn panel_widget_set_kind(self_: *mut PanelWidget, kind: *const c_char);
    pub fn panel_widget_set_menu_model(self_: *mut PanelWidget, menu_model: *mut gio::GMenuModel);
    pub fn panel_widget_set_modified(self_: *mut PanelWidget, modified: gboolean);
    pub fn panel_widget_set_needs_attention(self_: *mut PanelWidget, needs_attention: gboolean);
    pub fn panel_widget_set_reorderable(self_: *mut PanelWidget, reorderable: gboolean);
    pub fn panel_widget_set_save_delegate(
        self_: *mut PanelWidget,
        save_delegate: *mut PanelSaveDelegate,
    );
    pub fn panel_widget_set_title(self_: *mut PanelWidget, title: *const c_char);
    pub fn panel_widget_set_tooltip(self_: *mut PanelWidget, tooltip: *const c_char);
    pub fn panel_widget_unmark_busy(self_: *mut PanelWidget);
    pub fn panel_widget_unmaximize(self_: *mut PanelWidget);

    //=========================================================================
    // PanelWorkbench
    //=========================================================================
    pub fn panel_workbench_get_type() -> GType;
    pub fn panel_workbench_new() -> *mut PanelWorkbench;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_workbench_find_from_widget(widget: *mut gtk::GtkWidget) -> *mut PanelWorkbench;
    pub fn panel_workbench_action_set_enabled(
        self_: *mut PanelWorkbench,
        action_name: *const c_char,
        enabled: gboolean,
    );
    pub fn panel_workbench_activate(self_: *mut PanelWorkbench);
    pub fn panel_workbench_add_workspace(
        self_: *mut PanelWorkbench,
        workspace: *mut PanelWorkspace,
    );
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_workbench_find_workspace_typed(
        self_: *mut PanelWorkbench,
        workspace_type: GType,
    ) -> *mut PanelWorkspace;
    pub fn panel_workbench_focus_workspace(
        self_: *mut PanelWorkbench,
        workspace: *mut PanelWorkspace,
    );
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_workbench_foreach_workspace(
        self_: *mut PanelWorkbench,
        foreach_func: PanelWorkspaceForeach,
        foreach_func_data: gpointer,
    );
    pub fn panel_workbench_get_id(self_: *mut PanelWorkbench) -> *const c_char;
    pub fn panel_workbench_remove_workspace(
        self_: *mut PanelWorkbench,
        workspace: *mut PanelWorkspace,
    );
    pub fn panel_workbench_set_id(self_: *mut PanelWorkbench, id: *const c_char);

    //=========================================================================
    // PanelWorkspace
    //=========================================================================
    pub fn panel_workspace_get_type() -> GType;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_workspace_find_from_widget(widget: *mut gtk::GtkWidget) -> *mut PanelWorkspace;
    pub fn panel_workspace_action_set_enabled(
        self_: *mut PanelWorkspace,
        action_name: *const c_char,
        enabled: gboolean,
    );
    pub fn panel_workspace_get_id(self_: *mut PanelWorkspace) -> *const c_char;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_workspace_get_workbench(self_: *mut PanelWorkspace) -> *mut PanelWorkbench;
    #[cfg(feature = "v1_4")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v1_4")))]
    pub fn panel_workspace_inhibit(
        self_: *mut PanelWorkspace,
        flags: gtk::GtkApplicationInhibitFlags,
        reason: *const c_char,
    ) -> *mut PanelInhibitor;
    pub fn panel_workspace_set_id(self_: *mut PanelWorkspace, id: *const c_char);

    //=========================================================================
    // PanelFrameHeader
    //=========================================================================
    pub fn panel_frame_header_get_type() -> GType;
    pub fn panel_frame_header_add_prefix(
        self_: *mut PanelFrameHeader,
        priority: c_int,
        child: *mut gtk::GtkWidget,
    );
    pub fn panel_frame_header_add_suffix(
        self_: *mut PanelFrameHeader,
        priority: c_int,
        child: *mut gtk::GtkWidget,
    );
    pub fn panel_frame_header_can_drop(
        self_: *mut PanelFrameHeader,
        widget: *mut PanelWidget,
    ) -> gboolean;
    pub fn panel_frame_header_get_frame(self_: *mut PanelFrameHeader) -> *mut PanelFrame;
    pub fn panel_frame_header_page_changed(self_: *mut PanelFrameHeader, widget: *mut PanelWidget);
    pub fn panel_frame_header_set_frame(self_: *mut PanelFrameHeader, frame: *mut PanelFrame);

    //=========================================================================
    // Other functions
    //=========================================================================
    pub fn panel_check_version(major: c_uint, minor: c_uint, micro: c_uint) -> gboolean;
    pub fn panel_finalize();
    pub fn panel_get_major_version() -> c_uint;
    pub fn panel_get_micro_version() -> c_uint;
    pub fn panel_get_minor_version() -> c_uint;
    pub fn panel_get_resource() -> *mut gio::GResource;
    pub fn panel_init();
    pub fn panel_marshal_BOOLEAN__OBJECT_OBJECT(
        closure: *mut gobject::GClosure,
        return_value: *mut gobject::GValue,
        n_param_values: c_uint,
        param_values: *const gobject::GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn panel_marshal_BOOLEAN__OBJECT_OBJECTv(closure: *mut gobject::GClosure, return_value: *mut gobject::GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);
    pub fn panel_marshal_OBJECT__OBJECT(
        closure: *mut gobject::GClosure,
        return_value: *mut gobject::GValue,
        n_param_values: c_uint,
        param_values: *const gobject::GValue,
        invocation_hint: gpointer,
        marshal_data: gpointer,
    );
    //pub fn panel_marshal_OBJECT__OBJECTv(closure: *mut gobject::GClosure, return_value: *mut gobject::GValue, instance: gpointer, args: /*Unimplemented*/va_list, marshal_data: gpointer, n_params: c_int, param_types: *mut GType);

}