libayatana_appindicator/
bindings.rs

1#![allow(non_upper_case_globals)]
2#![allow(non_camel_case_types)]
3#![allow(non_snake_case)]
4
5use gtk_sys::{
6    GtkContainer,
7    GtkContainerPrivate,
8    GtkMenu,
9    GtkMenuPrivate,
10    GtkMenuShell,
11    GtkMenuShellPrivate,
12    GtkStatusIcon,
13    GtkStatusIconPrivate,
14    GtkWidget,
15    GtkWidgetPrivate,
16};
17
18/* automatically generated by rust-bindgen 0.58.1 */
19
20pub type guint32 = ::std::os::raw::c_uint;
21pub type gint64 = ::std::os::raw::c_long;
22pub type guint64 = ::std::os::raw::c_ulong;
23pub type gsize = ::std::os::raw::c_ulong;
24pub type gchar = ::std::os::raw::c_char;
25pub type glong = ::std::os::raw::c_long;
26pub type gint = ::std::os::raw::c_int;
27pub type gboolean = gint;
28pub type gulong = ::std::os::raw::c_ulong;
29pub type guint = ::std::os::raw::c_uint;
30pub type gfloat = f32;
31pub type gdouble = f64;
32pub type gpointer = *mut ::std::os::raw::c_void;
33#[repr(C)]
34#[derive(Debug, Copy, Clone)]
35pub struct _GData {
36    _unused: [u8; 0],
37}
38pub type GData = _GData;
39pub type GSList = _GSList;
40#[repr(C)]
41#[derive(Debug, Copy, Clone)]
42pub struct _GSList {
43    pub data: gpointer,
44    pub next: *mut GSList,
45}
46#[test]
47fn bindgen_test_layout__GSList() {
48    assert_eq!(
49        ::std::mem::size_of::<_GSList>(),
50        16usize,
51        concat!("Size of: ", stringify!(_GSList))
52    );
53    assert_eq!(
54        ::std::mem::align_of::<_GSList>(),
55        8usize,
56        concat!("Alignment of ", stringify!(_GSList))
57    );
58    assert_eq!(
59        unsafe {
60            &(*(::std::ptr::null::<_GSList>())).data as *const _ as usize
61        },
62        0usize,
63        concat!(
64            "Offset of field: ",
65            stringify!(_GSList),
66            "::",
67            stringify!(data)
68        )
69    );
70    assert_eq!(
71        unsafe {
72            &(*(::std::ptr::null::<_GSList>())).next as *const _ as usize
73        },
74        8usize,
75        concat!(
76            "Offset of field: ",
77            stringify!(_GSList),
78            "::",
79            stringify!(next)
80        )
81    );
82}
83pub type GType = gsize;
84pub type GValue = _GValue;
85pub type GTypeClass = _GTypeClass;
86pub type GTypeInstance = _GTypeInstance;
87#[repr(C)]
88#[derive(Debug, Copy, Clone)]
89pub struct _GTypeClass {
90    pub g_type: GType,
91}
92#[test]
93fn bindgen_test_layout__GTypeClass() {
94    assert_eq!(
95        ::std::mem::size_of::<_GTypeClass>(),
96        8usize,
97        concat!("Size of: ", stringify!(_GTypeClass))
98    );
99    assert_eq!(
100        ::std::mem::align_of::<_GTypeClass>(),
101        8usize,
102        concat!("Alignment of ", stringify!(_GTypeClass))
103    );
104    assert_eq!(
105        unsafe {
106            &(*(::std::ptr::null::<_GTypeClass>())).g_type as *const _ as usize
107        },
108        0usize,
109        concat!(
110            "Offset of field: ",
111            stringify!(_GTypeClass),
112            "::",
113            stringify!(g_type)
114        )
115    );
116}
117#[repr(C)]
118#[derive(Debug, Copy, Clone)]
119pub struct _GTypeInstance {
120    pub g_class: *mut GTypeClass,
121}
122#[test]
123fn bindgen_test_layout__GTypeInstance() {
124    assert_eq!(
125        ::std::mem::size_of::<_GTypeInstance>(),
126        8usize,
127        concat!("Size of: ", stringify!(_GTypeInstance))
128    );
129    assert_eq!(
130        ::std::mem::align_of::<_GTypeInstance>(),
131        8usize,
132        concat!("Alignment of ", stringify!(_GTypeInstance))
133    );
134    assert_eq!(
135        unsafe {
136            &(*(::std::ptr::null::<_GTypeInstance>())).g_class as *const _
137                as usize
138        },
139        0usize,
140        concat!(
141            "Offset of field: ",
142            stringify!(_GTypeInstance),
143            "::",
144            stringify!(g_class)
145        )
146    );
147}
148#[repr(C)]
149#[derive(Copy, Clone)]
150pub struct _GValue {
151    pub g_type: GType,
152    pub data: [_GValue__bindgen_ty_1; 2usize],
153}
154#[repr(C)]
155#[derive(Copy, Clone)]
156pub union _GValue__bindgen_ty_1 {
157    pub v_int: gint,
158    pub v_uint: guint,
159    pub v_long: glong,
160    pub v_ulong: gulong,
161    pub v_int64: gint64,
162    pub v_uint64: guint64,
163    pub v_float: gfloat,
164    pub v_double: gdouble,
165    pub v_pointer: gpointer,
166}
167#[test]
168fn bindgen_test_layout__GValue__bindgen_ty_1() {
169    assert_eq!(
170        ::std::mem::size_of::<_GValue__bindgen_ty_1>(),
171        8usize,
172        concat!("Size of: ", stringify!(_GValue__bindgen_ty_1))
173    );
174    assert_eq!(
175        ::std::mem::align_of::<_GValue__bindgen_ty_1>(),
176        8usize,
177        concat!("Alignment of ", stringify!(_GValue__bindgen_ty_1))
178    );
179    assert_eq!(
180        unsafe {
181            &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_int as *const _
182                as usize
183        },
184        0usize,
185        concat!(
186            "Offset of field: ",
187            stringify!(_GValue__bindgen_ty_1),
188            "::",
189            stringify!(v_int)
190        )
191    );
192    assert_eq!(
193        unsafe {
194            &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_uint as *const _
195                as usize
196        },
197        0usize,
198        concat!(
199            "Offset of field: ",
200            stringify!(_GValue__bindgen_ty_1),
201            "::",
202            stringify!(v_uint)
203        )
204    );
205    assert_eq!(
206        unsafe {
207            &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_long as *const _
208                as usize
209        },
210        0usize,
211        concat!(
212            "Offset of field: ",
213            stringify!(_GValue__bindgen_ty_1),
214            "::",
215            stringify!(v_long)
216        )
217    );
218    assert_eq!(
219        unsafe {
220            &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_ulong
221                as *const _ as usize
222        },
223        0usize,
224        concat!(
225            "Offset of field: ",
226            stringify!(_GValue__bindgen_ty_1),
227            "::",
228            stringify!(v_ulong)
229        )
230    );
231    assert_eq!(
232        unsafe {
233            &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_int64
234                as *const _ as usize
235        },
236        0usize,
237        concat!(
238            "Offset of field: ",
239            stringify!(_GValue__bindgen_ty_1),
240            "::",
241            stringify!(v_int64)
242        )
243    );
244    assert_eq!(
245        unsafe {
246            &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_uint64
247                as *const _ as usize
248        },
249        0usize,
250        concat!(
251            "Offset of field: ",
252            stringify!(_GValue__bindgen_ty_1),
253            "::",
254            stringify!(v_uint64)
255        )
256    );
257    assert_eq!(
258        unsafe {
259            &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_float
260                as *const _ as usize
261        },
262        0usize,
263        concat!(
264            "Offset of field: ",
265            stringify!(_GValue__bindgen_ty_1),
266            "::",
267            stringify!(v_float)
268        )
269    );
270    assert_eq!(
271        unsafe {
272            &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_double
273                as *const _ as usize
274        },
275        0usize,
276        concat!(
277            "Offset of field: ",
278            stringify!(_GValue__bindgen_ty_1),
279            "::",
280            stringify!(v_double)
281        )
282    );
283    assert_eq!(
284        unsafe {
285            &(*(::std::ptr::null::<_GValue__bindgen_ty_1>())).v_pointer
286                as *const _ as usize
287        },
288        0usize,
289        concat!(
290            "Offset of field: ",
291            stringify!(_GValue__bindgen_ty_1),
292            "::",
293            stringify!(v_pointer)
294        )
295    );
296}
297#[test]
298fn bindgen_test_layout__GValue() {
299    assert_eq!(
300        ::std::mem::size_of::<_GValue>(),
301        24usize,
302        concat!("Size of: ", stringify!(_GValue))
303    );
304    assert_eq!(
305        ::std::mem::align_of::<_GValue>(),
306        8usize,
307        concat!("Alignment of ", stringify!(_GValue))
308    );
309    assert_eq!(
310        unsafe {
311            &(*(::std::ptr::null::<_GValue>())).g_type as *const _ as usize
312        },
313        0usize,
314        concat!(
315            "Offset of field: ",
316            stringify!(_GValue),
317            "::",
318            stringify!(g_type)
319        )
320    );
321    assert_eq!(
322        unsafe {
323            &(*(::std::ptr::null::<_GValue>())).data as *const _ as usize
324        },
325        8usize,
326        concat!(
327            "Offset of field: ",
328            stringify!(_GValue),
329            "::",
330            stringify!(data)
331        )
332    );
333}
334pub const GParamFlags_G_PARAM_READABLE: GParamFlags = 1;
335pub const GParamFlags_G_PARAM_WRITABLE: GParamFlags = 2;
336pub const GParamFlags_G_PARAM_READWRITE: GParamFlags = 3;
337pub const GParamFlags_G_PARAM_CONSTRUCT: GParamFlags = 4;
338pub const GParamFlags_G_PARAM_CONSTRUCT_ONLY: GParamFlags = 8;
339pub const GParamFlags_G_PARAM_LAX_VALIDATION: GParamFlags = 16;
340pub const GParamFlags_G_PARAM_STATIC_NAME: GParamFlags = 32;
341pub const GParamFlags_G_PARAM_PRIVATE: GParamFlags = 32;
342pub const GParamFlags_G_PARAM_STATIC_NICK: GParamFlags = 64;
343pub const GParamFlags_G_PARAM_STATIC_BLURB: GParamFlags = 128;
344pub const GParamFlags_G_PARAM_EXPLICIT_NOTIFY: GParamFlags = 1073741824;
345pub const GParamFlags_G_PARAM_DEPRECATED: GParamFlags = -2147483648;
346pub type GParamFlags = ::std::os::raw::c_int;
347pub type GParamSpec = _GParamSpec;
348#[repr(C)]
349#[derive(Debug, Copy, Clone)]
350pub struct _GParamSpec {
351    pub g_type_instance: GTypeInstance,
352    pub name: *const gchar,
353    pub flags: GParamFlags,
354    pub value_type: GType,
355    pub owner_type: GType,
356    pub _nick: *mut gchar,
357    pub _blurb: *mut gchar,
358    pub qdata: *mut GData,
359    pub ref_count: guint,
360    pub param_id: guint,
361}
362#[test]
363fn bindgen_test_layout__GParamSpec() {
364    assert_eq!(
365        ::std::mem::size_of::<_GParamSpec>(),
366        72usize,
367        concat!("Size of: ", stringify!(_GParamSpec))
368    );
369    assert_eq!(
370        ::std::mem::align_of::<_GParamSpec>(),
371        8usize,
372        concat!("Alignment of ", stringify!(_GParamSpec))
373    );
374    assert_eq!(
375        unsafe {
376            &(*(::std::ptr::null::<_GParamSpec>())).g_type_instance as *const _
377                as usize
378        },
379        0usize,
380        concat!(
381            "Offset of field: ",
382            stringify!(_GParamSpec),
383            "::",
384            stringify!(g_type_instance)
385        )
386    );
387    assert_eq!(
388        unsafe {
389            &(*(::std::ptr::null::<_GParamSpec>())).name as *const _ as usize
390        },
391        8usize,
392        concat!(
393            "Offset of field: ",
394            stringify!(_GParamSpec),
395            "::",
396            stringify!(name)
397        )
398    );
399    assert_eq!(
400        unsafe {
401            &(*(::std::ptr::null::<_GParamSpec>())).flags as *const _ as usize
402        },
403        16usize,
404        concat!(
405            "Offset of field: ",
406            stringify!(_GParamSpec),
407            "::",
408            stringify!(flags)
409        )
410    );
411    assert_eq!(
412        unsafe {
413            &(*(::std::ptr::null::<_GParamSpec>())).value_type as *const _
414                as usize
415        },
416        24usize,
417        concat!(
418            "Offset of field: ",
419            stringify!(_GParamSpec),
420            "::",
421            stringify!(value_type)
422        )
423    );
424    assert_eq!(
425        unsafe {
426            &(*(::std::ptr::null::<_GParamSpec>())).owner_type as *const _
427                as usize
428        },
429        32usize,
430        concat!(
431            "Offset of field: ",
432            stringify!(_GParamSpec),
433            "::",
434            stringify!(owner_type)
435        )
436    );
437    assert_eq!(
438        unsafe {
439            &(*(::std::ptr::null::<_GParamSpec>()))._nick as *const _ as usize
440        },
441        40usize,
442        concat!(
443            "Offset of field: ",
444            stringify!(_GParamSpec),
445            "::",
446            stringify!(_nick)
447        )
448    );
449    assert_eq!(
450        unsafe {
451            &(*(::std::ptr::null::<_GParamSpec>()))._blurb as *const _ as usize
452        },
453        48usize,
454        concat!(
455            "Offset of field: ",
456            stringify!(_GParamSpec),
457            "::",
458            stringify!(_blurb)
459        )
460    );
461    assert_eq!(
462        unsafe {
463            &(*(::std::ptr::null::<_GParamSpec>())).qdata as *const _ as usize
464        },
465        56usize,
466        concat!(
467            "Offset of field: ",
468            stringify!(_GParamSpec),
469            "::",
470            stringify!(qdata)
471        )
472    );
473    assert_eq!(
474        unsafe {
475            &(*(::std::ptr::null::<_GParamSpec>())).ref_count as *const _
476                as usize
477        },
478        64usize,
479        concat!(
480            "Offset of field: ",
481            stringify!(_GParamSpec),
482            "::",
483            stringify!(ref_count)
484        )
485    );
486    assert_eq!(
487        unsafe {
488            &(*(::std::ptr::null::<_GParamSpec>())).param_id as *const _
489                as usize
490        },
491        68usize,
492        concat!(
493            "Offset of field: ",
494            stringify!(_GParamSpec),
495            "::",
496            stringify!(param_id)
497        )
498    );
499}
500pub type GObject = _GObject;
501pub type GObjectClass = _GObjectClass;
502pub type GInitiallyUnowned = _GObject;
503pub type GObjectConstructParam = _GObjectConstructParam;
504#[repr(C)]
505#[derive(Debug, Copy, Clone)]
506pub struct _GObject {
507    pub g_type_instance: GTypeInstance,
508    pub ref_count: guint,
509    pub qdata: *mut GData,
510}
511#[test]
512fn bindgen_test_layout__GObject() {
513    assert_eq!(
514        ::std::mem::size_of::<_GObject>(),
515        24usize,
516        concat!("Size of: ", stringify!(_GObject))
517    );
518    assert_eq!(
519        ::std::mem::align_of::<_GObject>(),
520        8usize,
521        concat!("Alignment of ", stringify!(_GObject))
522    );
523    assert_eq!(
524        unsafe {
525            &(*(::std::ptr::null::<_GObject>())).g_type_instance as *const _
526                as usize
527        },
528        0usize,
529        concat!(
530            "Offset of field: ",
531            stringify!(_GObject),
532            "::",
533            stringify!(g_type_instance)
534        )
535    );
536    assert_eq!(
537        unsafe {
538            &(*(::std::ptr::null::<_GObject>())).ref_count as *const _ as usize
539        },
540        8usize,
541        concat!(
542            "Offset of field: ",
543            stringify!(_GObject),
544            "::",
545            stringify!(ref_count)
546        )
547    );
548    assert_eq!(
549        unsafe {
550            &(*(::std::ptr::null::<_GObject>())).qdata as *const _ as usize
551        },
552        16usize,
553        concat!(
554            "Offset of field: ",
555            stringify!(_GObject),
556            "::",
557            stringify!(qdata)
558        )
559    );
560}
561#[repr(C)]
562#[derive(Debug, Copy, Clone)]
563pub struct _GObjectClass {
564    pub g_type_class: GTypeClass,
565    pub construct_properties: *mut GSList,
566    pub constructor: ::std::option::Option<
567        unsafe extern "C" fn(
568            type_: GType,
569            n_construct_properties: guint,
570            construct_properties: *mut GObjectConstructParam,
571        ) -> *mut GObject,
572    >,
573    pub set_property: ::std::option::Option<
574        unsafe extern "C" fn(
575            object: *mut GObject,
576            property_id: guint,
577            value: *const GValue,
578            pspec: *mut GParamSpec,
579        ),
580    >,
581    pub get_property: ::std::option::Option<
582        unsafe extern "C" fn(
583            object: *mut GObject,
584            property_id: guint,
585            value: *mut GValue,
586            pspec: *mut GParamSpec,
587        ),
588    >,
589    pub dispose:
590        ::std::option::Option<unsafe extern "C" fn(object: *mut GObject)>,
591    pub finalize:
592        ::std::option::Option<unsafe extern "C" fn(object: *mut GObject)>,
593    pub dispatch_properties_changed: ::std::option::Option<
594        unsafe extern "C" fn(
595            object: *mut GObject,
596            n_pspecs: guint,
597            pspecs: *mut *mut GParamSpec,
598        ),
599    >,
600    pub notify: ::std::option::Option<
601        unsafe extern "C" fn(object: *mut GObject, pspec: *mut GParamSpec),
602    >,
603    pub constructed:
604        ::std::option::Option<unsafe extern "C" fn(object: *mut GObject)>,
605    pub flags: gsize,
606    pub pdummy: [gpointer; 6usize],
607}
608#[test]
609fn bindgen_test_layout__GObjectClass() {
610    assert_eq!(
611        ::std::mem::size_of::<_GObjectClass>(),
612        136usize,
613        concat!("Size of: ", stringify!(_GObjectClass))
614    );
615    assert_eq!(
616        ::std::mem::align_of::<_GObjectClass>(),
617        8usize,
618        concat!("Alignment of ", stringify!(_GObjectClass))
619    );
620    assert_eq!(
621        unsafe {
622            &(*(::std::ptr::null::<_GObjectClass>())).g_type_class as *const _
623                as usize
624        },
625        0usize,
626        concat!(
627            "Offset of field: ",
628            stringify!(_GObjectClass),
629            "::",
630            stringify!(g_type_class)
631        )
632    );
633    assert_eq!(
634        unsafe {
635            &(*(::std::ptr::null::<_GObjectClass>())).construct_properties
636                as *const _ as usize
637        },
638        8usize,
639        concat!(
640            "Offset of field: ",
641            stringify!(_GObjectClass),
642            "::",
643            stringify!(construct_properties)
644        )
645    );
646    assert_eq!(
647        unsafe {
648            &(*(::std::ptr::null::<_GObjectClass>())).constructor as *const _
649                as usize
650        },
651        16usize,
652        concat!(
653            "Offset of field: ",
654            stringify!(_GObjectClass),
655            "::",
656            stringify!(constructor)
657        )
658    );
659    assert_eq!(
660        unsafe {
661            &(*(::std::ptr::null::<_GObjectClass>())).set_property as *const _
662                as usize
663        },
664        24usize,
665        concat!(
666            "Offset of field: ",
667            stringify!(_GObjectClass),
668            "::",
669            stringify!(set_property)
670        )
671    );
672    assert_eq!(
673        unsafe {
674            &(*(::std::ptr::null::<_GObjectClass>())).get_property as *const _
675                as usize
676        },
677        32usize,
678        concat!(
679            "Offset of field: ",
680            stringify!(_GObjectClass),
681            "::",
682            stringify!(get_property)
683        )
684    );
685    assert_eq!(
686        unsafe {
687            &(*(::std::ptr::null::<_GObjectClass>())).dispose as *const _
688                as usize
689        },
690        40usize,
691        concat!(
692            "Offset of field: ",
693            stringify!(_GObjectClass),
694            "::",
695            stringify!(dispose)
696        )
697    );
698    assert_eq!(
699        unsafe {
700            &(*(::std::ptr::null::<_GObjectClass>())).finalize as *const _
701                as usize
702        },
703        48usize,
704        concat!(
705            "Offset of field: ",
706            stringify!(_GObjectClass),
707            "::",
708            stringify!(finalize)
709        )
710    );
711    assert_eq!(
712        unsafe {
713            &(*(::std::ptr::null::<_GObjectClass>()))
714                .dispatch_properties_changed as *const _ as usize
715        },
716        56usize,
717        concat!(
718            "Offset of field: ",
719            stringify!(_GObjectClass),
720            "::",
721            stringify!(dispatch_properties_changed)
722        )
723    );
724    assert_eq!(
725        unsafe {
726            &(*(::std::ptr::null::<_GObjectClass>())).notify as *const _
727                as usize
728        },
729        64usize,
730        concat!(
731            "Offset of field: ",
732            stringify!(_GObjectClass),
733            "::",
734            stringify!(notify)
735        )
736    );
737    assert_eq!(
738        unsafe {
739            &(*(::std::ptr::null::<_GObjectClass>())).constructed as *const _
740                as usize
741        },
742        72usize,
743        concat!(
744            "Offset of field: ",
745            stringify!(_GObjectClass),
746            "::",
747            stringify!(constructed)
748        )
749    );
750    assert_eq!(
751        unsafe {
752            &(*(::std::ptr::null::<_GObjectClass>())).flags as *const _ as usize
753        },
754        80usize,
755        concat!(
756            "Offset of field: ",
757            stringify!(_GObjectClass),
758            "::",
759            stringify!(flags)
760        )
761    );
762    assert_eq!(
763        unsafe {
764            &(*(::std::ptr::null::<_GObjectClass>())).pdummy as *const _
765                as usize
766        },
767        88usize,
768        concat!(
769            "Offset of field: ",
770            stringify!(_GObjectClass),
771            "::",
772            stringify!(pdummy)
773        )
774    );
775}
776#[repr(C)]
777#[derive(Debug, Copy, Clone)]
778pub struct _GObjectConstructParam {
779    pub pspec: *mut GParamSpec,
780    pub value: *mut GValue,
781}
782#[test]
783fn bindgen_test_layout__GObjectConstructParam() {
784    assert_eq!(
785        ::std::mem::size_of::<_GObjectConstructParam>(),
786        16usize,
787        concat!("Size of: ", stringify!(_GObjectConstructParam))
788    );
789    assert_eq!(
790        ::std::mem::align_of::<_GObjectConstructParam>(),
791        8usize,
792        concat!("Alignment of ", stringify!(_GObjectConstructParam))
793    );
794    assert_eq!(
795        unsafe {
796            &(*(::std::ptr::null::<_GObjectConstructParam>())).pspec as *const _
797                as usize
798        },
799        0usize,
800        concat!(
801            "Offset of field: ",
802            stringify!(_GObjectConstructParam),
803            "::",
804            stringify!(pspec)
805        )
806    );
807    assert_eq!(
808        unsafe {
809            &(*(::std::ptr::null::<_GObjectConstructParam>())).value as *const _
810                as usize
811        },
812        8usize,
813        concat!(
814            "Offset of field: ",
815            stringify!(_GObjectConstructParam),
816            "::",
817            stringify!(value)
818        )
819    );
820}
821pub const GdkScrollDirection_GDK_SCROLL_UP: GdkScrollDirection = 0;
822pub const GdkScrollDirection_GDK_SCROLL_DOWN: GdkScrollDirection = 1;
823pub const GdkScrollDirection_GDK_SCROLL_LEFT: GdkScrollDirection = 2;
824pub const GdkScrollDirection_GDK_SCROLL_RIGHT: GdkScrollDirection = 3;
825pub const GdkScrollDirection_GDK_SCROLL_SMOOTH: GdkScrollDirection = 4;
826pub type GdkScrollDirection = ::std::os::raw::c_uint;
827#[repr(C)]
828#[derive(Debug, Copy, Clone)]
829pub struct _GtkWidgetPrivate {
830    _unused: [u8; 0],
831}
832#[repr(C)]
833#[derive(Debug, Copy, Clone)]
834pub struct _GtkWidget {
835    pub parent_instance: GInitiallyUnowned,
836    pub priv_: *mut GtkWidgetPrivate,
837}
838#[test]
839fn bindgen_test_layout__GtkWidget() {
840    assert_eq!(
841        ::std::mem::size_of::<_GtkWidget>(),
842        32usize,
843        concat!("Size of: ", stringify!(_GtkWidget))
844    );
845    assert_eq!(
846        ::std::mem::align_of::<_GtkWidget>(),
847        8usize,
848        concat!("Alignment of ", stringify!(_GtkWidget))
849    );
850    assert_eq!(
851        unsafe {
852            &(*(::std::ptr::null::<_GtkWidget>())).parent_instance as *const _
853                as usize
854        },
855        0usize,
856        concat!(
857            "Offset of field: ",
858            stringify!(_GtkWidget),
859            "::",
860            stringify!(parent_instance)
861        )
862    );
863    assert_eq!(
864        unsafe {
865            &(*(::std::ptr::null::<_GtkWidget>())).priv_ as *const _ as usize
866        },
867        24usize,
868        concat!(
869            "Offset of field: ",
870            stringify!(_GtkWidget),
871            "::",
872            stringify!(priv_)
873        )
874    );
875}
876#[repr(C)]
877#[derive(Debug, Copy, Clone)]
878pub struct _GtkContainerPrivate {
879    _unused: [u8; 0],
880}
881#[repr(C)]
882pub struct _GtkContainer {
883    pub widget: GtkWidget,
884    pub priv_: *mut GtkContainerPrivate,
885}
886#[test]
887fn bindgen_test_layout__GtkContainer() {
888    assert_eq!(
889        ::std::mem::size_of::<_GtkContainer>(),
890        40usize,
891        concat!("Size of: ", stringify!(_GtkContainer))
892    );
893    assert_eq!(
894        ::std::mem::align_of::<_GtkContainer>(),
895        8usize,
896        concat!("Alignment of ", stringify!(_GtkContainer))
897    );
898    assert_eq!(
899        unsafe {
900            &(*(::std::ptr::null::<_GtkContainer>())).widget as *const _
901                as usize
902        },
903        0usize,
904        concat!(
905            "Offset of field: ",
906            stringify!(_GtkContainer),
907            "::",
908            stringify!(widget)
909        )
910    );
911    assert_eq!(
912        unsafe {
913            &(*(::std::ptr::null::<_GtkContainer>())).priv_ as *const _ as usize
914        },
915        32usize,
916        concat!(
917            "Offset of field: ",
918            stringify!(_GtkContainer),
919            "::",
920            stringify!(priv_)
921        )
922    );
923}
924#[repr(C)]
925#[derive(Debug, Copy, Clone)]
926pub struct _GtkMenuShellPrivate {
927    _unused: [u8; 0],
928}
929#[repr(C)]
930pub struct _GtkMenuShell {
931    pub container: GtkContainer,
932    pub priv_: *mut GtkMenuShellPrivate,
933}
934#[test]
935fn bindgen_test_layout__GtkMenuShell() {
936    assert_eq!(
937        ::std::mem::size_of::<_GtkMenuShell>(),
938        48usize,
939        concat!("Size of: ", stringify!(_GtkMenuShell))
940    );
941    assert_eq!(
942        ::std::mem::align_of::<_GtkMenuShell>(),
943        8usize,
944        concat!("Alignment of ", stringify!(_GtkMenuShell))
945    );
946    assert_eq!(
947        unsafe {
948            &(*(::std::ptr::null::<_GtkMenuShell>())).container as *const _
949                as usize
950        },
951        0usize,
952        concat!(
953            "Offset of field: ",
954            stringify!(_GtkMenuShell),
955            "::",
956            stringify!(container)
957        )
958    );
959    assert_eq!(
960        unsafe {
961            &(*(::std::ptr::null::<_GtkMenuShell>())).priv_ as *const _ as usize
962        },
963        40usize,
964        concat!(
965            "Offset of field: ",
966            stringify!(_GtkMenuShell),
967            "::",
968            stringify!(priv_)
969        )
970    );
971}
972#[repr(C)]
973#[derive(Debug, Copy, Clone)]
974pub struct _GtkMenuPrivate {
975    _unused: [u8; 0],
976}
977#[repr(C)]
978pub struct _GtkMenu {
979    pub menu_shell: GtkMenuShell,
980    pub priv_: *mut GtkMenuPrivate,
981}
982#[test]
983fn bindgen_test_layout__GtkMenu() {
984    assert_eq!(
985        ::std::mem::size_of::<_GtkMenu>(),
986        56usize,
987        concat!("Size of: ", stringify!(_GtkMenu))
988    );
989    assert_eq!(
990        ::std::mem::align_of::<_GtkMenu>(),
991        8usize,
992        concat!("Alignment of ", stringify!(_GtkMenu))
993    );
994    assert_eq!(
995        unsafe {
996            &(*(::std::ptr::null::<_GtkMenu>())).menu_shell as *const _ as usize
997        },
998        0usize,
999        concat!(
1000            "Offset of field: ",
1001            stringify!(_GtkMenu),
1002            "::",
1003            stringify!(menu_shell)
1004        )
1005    );
1006    assert_eq!(
1007        unsafe {
1008            &(*(::std::ptr::null::<_GtkMenu>())).priv_ as *const _ as usize
1009        },
1010        48usize,
1011        concat!(
1012            "Offset of field: ",
1013            stringify!(_GtkMenu),
1014            "::",
1015            stringify!(priv_)
1016        )
1017    );
1018}
1019#[repr(C)]
1020#[derive(Debug, Copy, Clone)]
1021pub struct _GtkStatusIconPrivate {
1022    _unused: [u8; 0],
1023}
1024#[repr(C)]
1025#[derive(Debug, Copy, Clone)]
1026pub struct _GtkStatusIcon {
1027    pub parent_instance: GObject,
1028    pub priv_: *mut GtkStatusIconPrivate,
1029}
1030#[test]
1031fn bindgen_test_layout__GtkStatusIcon() {
1032    assert_eq!(
1033        ::std::mem::size_of::<_GtkStatusIcon>(),
1034        32usize,
1035        concat!("Size of: ", stringify!(_GtkStatusIcon))
1036    );
1037    assert_eq!(
1038        ::std::mem::align_of::<_GtkStatusIcon>(),
1039        8usize,
1040        concat!("Alignment of ", stringify!(_GtkStatusIcon))
1041    );
1042    assert_eq!(
1043        unsafe {
1044            &(*(::std::ptr::null::<_GtkStatusIcon>())).parent_instance
1045                as *const _ as usize
1046        },
1047        0usize,
1048        concat!(
1049            "Offset of field: ",
1050            stringify!(_GtkStatusIcon),
1051            "::",
1052            stringify!(parent_instance)
1053        )
1054    );
1055    assert_eq!(
1056        unsafe {
1057            &(*(::std::ptr::null::<_GtkStatusIcon>())).priv_ as *const _
1058                as usize
1059        },
1060        24usize,
1061        concat!(
1062            "Offset of field: ",
1063            stringify!(_GtkStatusIcon),
1064            "::",
1065            stringify!(priv_)
1066        )
1067    );
1068}
1069pub const AppIndicatorCategory_APP_INDICATOR_CATEGORY_APPLICATION_STATUS:
1070    AppIndicatorCategory = 0;
1071pub const AppIndicatorCategory_APP_INDICATOR_CATEGORY_COMMUNICATIONS:
1072    AppIndicatorCategory = 1;
1073pub const AppIndicatorCategory_APP_INDICATOR_CATEGORY_SYSTEM_SERVICES:
1074    AppIndicatorCategory = 2;
1075pub const AppIndicatorCategory_APP_INDICATOR_CATEGORY_HARDWARE:
1076    AppIndicatorCategory = 3;
1077pub const AppIndicatorCategory_APP_INDICATOR_CATEGORY_OTHER:
1078    AppIndicatorCategory = 4;
1079pub type AppIndicatorCategory = ::std::os::raw::c_uint;
1080pub const AppIndicatorStatus_APP_INDICATOR_STATUS_PASSIVE: AppIndicatorStatus =
1081    0;
1082pub const AppIndicatorStatus_APP_INDICATOR_STATUS_ACTIVE: AppIndicatorStatus =
1083    1;
1084pub const AppIndicatorStatus_APP_INDICATOR_STATUS_ATTENTION:
1085    AppIndicatorStatus = 2;
1086pub type AppIndicatorStatus = ::std::os::raw::c_uint;
1087pub type AppIndicator = _AppIndicator;
1088pub type AppIndicatorClass = _AppIndicatorClass;
1089#[repr(C)]
1090#[derive(Debug, Copy, Clone)]
1091pub struct _AppIndicatorClass {
1092    pub parent_class: GObjectClass,
1093    pub new_icon: ::std::option::Option<
1094        unsafe extern "C" fn(indicator: *mut AppIndicator, user_data: gpointer),
1095    >,
1096    pub new_attention_icon: ::std::option::Option<
1097        unsafe extern "C" fn(indicator: *mut AppIndicator, user_data: gpointer),
1098    >,
1099    pub new_status: ::std::option::Option<
1100        unsafe extern "C" fn(
1101            indicator: *mut AppIndicator,
1102            status: *const gchar,
1103            user_data: gpointer,
1104        ),
1105    >,
1106    pub new_icon_theme_path: ::std::option::Option<
1107        unsafe extern "C" fn(
1108            indicator: *mut AppIndicator,
1109            icon_theme_path: *const gchar,
1110            user_data: gpointer,
1111        ),
1112    >,
1113    pub new_label: ::std::option::Option<
1114        unsafe extern "C" fn(
1115            indicator: *mut AppIndicator,
1116            label: *const gchar,
1117            guide: *const gchar,
1118            user_data: gpointer,
1119        ),
1120    >,
1121    pub connection_changed: ::std::option::Option<
1122        unsafe extern "C" fn(
1123            indicator: *mut AppIndicator,
1124            connected: gboolean,
1125            user_data: gpointer,
1126        ),
1127    >,
1128    pub scroll_event: ::std::option::Option<
1129        unsafe extern "C" fn(
1130            indicator: *mut AppIndicator,
1131            delta: gint,
1132            direction: GdkScrollDirection,
1133            user_data: gpointer,
1134        ),
1135    >,
1136    pub app_indicator_reserved_ats:
1137        ::std::option::Option<unsafe extern "C" fn()>,
1138    pub fallback: ::std::option::Option<
1139        unsafe extern "C" fn(
1140            indicator: *mut AppIndicator,
1141        ) -> *mut GtkStatusIcon,
1142    >,
1143    pub unfallback: ::std::option::Option<
1144        unsafe extern "C" fn(
1145            indicator: *mut AppIndicator,
1146            status_icon: *mut GtkStatusIcon,
1147        ),
1148    >,
1149    pub app_indicator_reserved_1: ::std::option::Option<unsafe extern "C" fn()>,
1150    pub app_indicator_reserved_2: ::std::option::Option<unsafe extern "C" fn()>,
1151    pub app_indicator_reserved_3: ::std::option::Option<unsafe extern "C" fn()>,
1152    pub app_indicator_reserved_4: ::std::option::Option<unsafe extern "C" fn()>,
1153    pub app_indicator_reserved_5: ::std::option::Option<unsafe extern "C" fn()>,
1154    pub app_indicator_reserved_6: ::std::option::Option<unsafe extern "C" fn()>,
1155}
1156#[test]
1157fn bindgen_test_layout__AppIndicatorClass() {
1158    assert_eq!(
1159        ::std::mem::size_of::<_AppIndicatorClass>(),
1160        264usize,
1161        concat!("Size of: ", stringify!(_AppIndicatorClass))
1162    );
1163    assert_eq!(
1164        ::std::mem::align_of::<_AppIndicatorClass>(),
1165        8usize,
1166        concat!("Alignment of ", stringify!(_AppIndicatorClass))
1167    );
1168    assert_eq!(
1169        unsafe {
1170            &(*(::std::ptr::null::<_AppIndicatorClass>())).parent_class
1171                as *const _ as usize
1172        },
1173        0usize,
1174        concat!(
1175            "Offset of field: ",
1176            stringify!(_AppIndicatorClass),
1177            "::",
1178            stringify!(parent_class)
1179        )
1180    );
1181    assert_eq!(
1182        unsafe {
1183            &(*(::std::ptr::null::<_AppIndicatorClass>())).new_icon as *const _
1184                as usize
1185        },
1186        136usize,
1187        concat!(
1188            "Offset of field: ",
1189            stringify!(_AppIndicatorClass),
1190            "::",
1191            stringify!(new_icon)
1192        )
1193    );
1194    assert_eq!(
1195        unsafe {
1196            &(*(::std::ptr::null::<_AppIndicatorClass>())).new_attention_icon
1197                as *const _ as usize
1198        },
1199        144usize,
1200        concat!(
1201            "Offset of field: ",
1202            stringify!(_AppIndicatorClass),
1203            "::",
1204            stringify!(new_attention_icon)
1205        )
1206    );
1207    assert_eq!(
1208        unsafe {
1209            &(*(::std::ptr::null::<_AppIndicatorClass>())).new_status
1210                as *const _ as usize
1211        },
1212        152usize,
1213        concat!(
1214            "Offset of field: ",
1215            stringify!(_AppIndicatorClass),
1216            "::",
1217            stringify!(new_status)
1218        )
1219    );
1220    assert_eq!(
1221        unsafe {
1222            &(*(::std::ptr::null::<_AppIndicatorClass>())).new_icon_theme_path
1223                as *const _ as usize
1224        },
1225        160usize,
1226        concat!(
1227            "Offset of field: ",
1228            stringify!(_AppIndicatorClass),
1229            "::",
1230            stringify!(new_icon_theme_path)
1231        )
1232    );
1233    assert_eq!(
1234        unsafe {
1235            &(*(::std::ptr::null::<_AppIndicatorClass>())).new_label as *const _
1236                as usize
1237        },
1238        168usize,
1239        concat!(
1240            "Offset of field: ",
1241            stringify!(_AppIndicatorClass),
1242            "::",
1243            stringify!(new_label)
1244        )
1245    );
1246    assert_eq!(
1247        unsafe {
1248            &(*(::std::ptr::null::<_AppIndicatorClass>())).connection_changed
1249                as *const _ as usize
1250        },
1251        176usize,
1252        concat!(
1253            "Offset of field: ",
1254            stringify!(_AppIndicatorClass),
1255            "::",
1256            stringify!(connection_changed)
1257        )
1258    );
1259    assert_eq!(
1260        unsafe {
1261            &(*(::std::ptr::null::<_AppIndicatorClass>())).scroll_event
1262                as *const _ as usize
1263        },
1264        184usize,
1265        concat!(
1266            "Offset of field: ",
1267            stringify!(_AppIndicatorClass),
1268            "::",
1269            stringify!(scroll_event)
1270        )
1271    );
1272    assert_eq!(
1273        unsafe {
1274            &(*(::std::ptr::null::<_AppIndicatorClass>()))
1275                .app_indicator_reserved_ats as *const _ as usize
1276        },
1277        192usize,
1278        concat!(
1279            "Offset of field: ",
1280            stringify!(_AppIndicatorClass),
1281            "::",
1282            stringify!(app_indicator_reserved_ats)
1283        )
1284    );
1285    assert_eq!(
1286        unsafe {
1287            &(*(::std::ptr::null::<_AppIndicatorClass>())).fallback as *const _
1288                as usize
1289        },
1290        200usize,
1291        concat!(
1292            "Offset of field: ",
1293            stringify!(_AppIndicatorClass),
1294            "::",
1295            stringify!(fallback)
1296        )
1297    );
1298    assert_eq!(
1299        unsafe {
1300            &(*(::std::ptr::null::<_AppIndicatorClass>())).unfallback
1301                as *const _ as usize
1302        },
1303        208usize,
1304        concat!(
1305            "Offset of field: ",
1306            stringify!(_AppIndicatorClass),
1307            "::",
1308            stringify!(unfallback)
1309        )
1310    );
1311    assert_eq!(
1312        unsafe {
1313            &(*(::std::ptr::null::<_AppIndicatorClass>()))
1314                .app_indicator_reserved_1 as *const _ as usize
1315        },
1316        216usize,
1317        concat!(
1318            "Offset of field: ",
1319            stringify!(_AppIndicatorClass),
1320            "::",
1321            stringify!(app_indicator_reserved_1)
1322        )
1323    );
1324    assert_eq!(
1325        unsafe {
1326            &(*(::std::ptr::null::<_AppIndicatorClass>()))
1327                .app_indicator_reserved_2 as *const _ as usize
1328        },
1329        224usize,
1330        concat!(
1331            "Offset of field: ",
1332            stringify!(_AppIndicatorClass),
1333            "::",
1334            stringify!(app_indicator_reserved_2)
1335        )
1336    );
1337    assert_eq!(
1338        unsafe {
1339            &(*(::std::ptr::null::<_AppIndicatorClass>()))
1340                .app_indicator_reserved_3 as *const _ as usize
1341        },
1342        232usize,
1343        concat!(
1344            "Offset of field: ",
1345            stringify!(_AppIndicatorClass),
1346            "::",
1347            stringify!(app_indicator_reserved_3)
1348        )
1349    );
1350    assert_eq!(
1351        unsafe {
1352            &(*(::std::ptr::null::<_AppIndicatorClass>()))
1353                .app_indicator_reserved_4 as *const _ as usize
1354        },
1355        240usize,
1356        concat!(
1357            "Offset of field: ",
1358            stringify!(_AppIndicatorClass),
1359            "::",
1360            stringify!(app_indicator_reserved_4)
1361        )
1362    );
1363    assert_eq!(
1364        unsafe {
1365            &(*(::std::ptr::null::<_AppIndicatorClass>()))
1366                .app_indicator_reserved_5 as *const _ as usize
1367        },
1368        248usize,
1369        concat!(
1370            "Offset of field: ",
1371            stringify!(_AppIndicatorClass),
1372            "::",
1373            stringify!(app_indicator_reserved_5)
1374        )
1375    );
1376    assert_eq!(
1377        unsafe {
1378            &(*(::std::ptr::null::<_AppIndicatorClass>()))
1379                .app_indicator_reserved_6 as *const _ as usize
1380        },
1381        256usize,
1382        concat!(
1383            "Offset of field: ",
1384            stringify!(_AppIndicatorClass),
1385            "::",
1386            stringify!(app_indicator_reserved_6)
1387        )
1388    );
1389}
1390#[repr(C)]
1391#[derive(Debug, Copy, Clone)]
1392pub struct _AppIndicator {
1393    pub parent: GObject,
1394}
1395#[test]
1396fn bindgen_test_layout__AppIndicator() {
1397    assert_eq!(
1398        ::std::mem::size_of::<_AppIndicator>(),
1399        24usize,
1400        concat!("Size of: ", stringify!(_AppIndicator))
1401    );
1402    assert_eq!(
1403        ::std::mem::align_of::<_AppIndicator>(),
1404        8usize,
1405        concat!("Alignment of ", stringify!(_AppIndicator))
1406    );
1407    assert_eq!(
1408        unsafe {
1409            &(*(::std::ptr::null::<_AppIndicator>())).parent as *const _
1410                as usize
1411        },
1412        0usize,
1413        concat!(
1414            "Offset of field: ",
1415            stringify!(_AppIndicator),
1416            "::",
1417            stringify!(parent)
1418        )
1419    );
1420}
1421extern "C" {
1422    pub fn app_indicator_get_type() -> GType;
1423}
1424extern "C" {
1425    pub fn app_indicator_new(
1426        id: *const gchar,
1427        icon_name: *const gchar,
1428        category: AppIndicatorCategory,
1429    ) -> *mut AppIndicator;
1430}
1431extern "C" {
1432    pub fn app_indicator_new_with_path(
1433        id: *const gchar,
1434        icon_name: *const gchar,
1435        category: AppIndicatorCategory,
1436        icon_theme_path: *const gchar,
1437    ) -> *mut AppIndicator;
1438}
1439extern "C" {
1440    pub fn app_indicator_set_status(
1441        self_: *mut AppIndicator,
1442        status: AppIndicatorStatus,
1443    );
1444}
1445extern "C" {
1446    pub fn app_indicator_set_attention_icon(
1447        self_: *mut AppIndicator,
1448        icon_name: *const gchar,
1449    );
1450}
1451extern "C" {
1452    pub fn app_indicator_set_attention_icon_full(
1453        self_: *mut AppIndicator,
1454        icon_name: *const gchar,
1455        icon_desc: *const gchar,
1456    );
1457}
1458extern "C" {
1459    pub fn app_indicator_set_menu(self_: *mut AppIndicator, menu: *mut GtkMenu);
1460}
1461extern "C" {
1462    pub fn app_indicator_set_icon(
1463        self_: *mut AppIndicator,
1464        icon_name: *const gchar,
1465    );
1466}
1467extern "C" {
1468    pub fn app_indicator_set_icon_full(
1469        self_: *mut AppIndicator,
1470        icon_name: *const gchar,
1471        icon_desc: *const gchar,
1472    );
1473}
1474extern "C" {
1475    pub fn app_indicator_set_label(
1476        self_: *mut AppIndicator,
1477        label: *const gchar,
1478        guide: *const gchar,
1479    );
1480}
1481extern "C" {
1482    pub fn app_indicator_set_icon_theme_path(
1483        self_: *mut AppIndicator,
1484        icon_theme_path: *const gchar,
1485    );
1486}
1487extern "C" {
1488    pub fn app_indicator_set_ordering_index(
1489        self_: *mut AppIndicator,
1490        ordering_index: guint32,
1491    );
1492}
1493extern "C" {
1494    pub fn app_indicator_set_secondary_activate_target(
1495        self_: *mut AppIndicator,
1496        menuitem: *mut GtkWidget,
1497    );
1498}
1499extern "C" {
1500    pub fn app_indicator_set_title(
1501        self_: *mut AppIndicator,
1502        title: *const gchar,
1503    );
1504}
1505extern "C" {
1506    pub fn app_indicator_get_id(self_: *mut AppIndicator) -> *const gchar;
1507}
1508extern "C" {
1509    pub fn app_indicator_get_category(
1510        self_: *mut AppIndicator,
1511    ) -> AppIndicatorCategory;
1512}
1513extern "C" {
1514    pub fn app_indicator_get_status(
1515        self_: *mut AppIndicator,
1516    ) -> AppIndicatorStatus;
1517}
1518extern "C" {
1519    pub fn app_indicator_get_icon(self_: *mut AppIndicator) -> *const gchar;
1520}
1521extern "C" {
1522    pub fn app_indicator_get_icon_desc(
1523        self_: *mut AppIndicator,
1524    ) -> *const gchar;
1525}
1526extern "C" {
1527    pub fn app_indicator_get_icon_theme_path(
1528        self_: *mut AppIndicator,
1529    ) -> *const gchar;
1530}
1531extern "C" {
1532    pub fn app_indicator_get_attention_icon(
1533        self_: *mut AppIndicator,
1534    ) -> *const gchar;
1535}
1536extern "C" {
1537    pub fn app_indicator_get_attention_icon_desc(
1538        self_: *mut AppIndicator,
1539    ) -> *const gchar;
1540}
1541extern "C" {
1542    pub fn app_indicator_get_title(self_: *mut AppIndicator) -> *const gchar;
1543}
1544extern "C" {
1545    pub fn app_indicator_get_menu(self_: *mut AppIndicator) -> *mut GtkMenu;
1546}
1547extern "C" {
1548    pub fn app_indicator_get_label(self_: *mut AppIndicator) -> *const gchar;
1549}
1550extern "C" {
1551    pub fn app_indicator_get_label_guide(
1552        self_: *mut AppIndicator,
1553    ) -> *const gchar;
1554}
1555extern "C" {
1556    pub fn app_indicator_get_ordering_index(
1557        self_: *mut AppIndicator,
1558    ) -> guint32;
1559}
1560extern "C" {
1561    pub fn app_indicator_get_secondary_activate_target(
1562        self_: *mut AppIndicator,
1563    ) -> *mut GtkWidget;
1564}
1565extern "C" {
1566    pub fn app_indicator_build_menu_from_desktop(
1567        self_: *mut AppIndicator,
1568        desktop_file: *const gchar,
1569        desktop_profile: *const gchar,
1570    );
1571}