clapper-player-gtk-sys 0.10.1

FFI bindings to clapper gtk library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from ..
// from ../../gir-files-gstreamer
// from ../../gir-files-gtk
// from ../../libclapper-rs
// 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 glib_sys as glib;
use gio_sys as gio;
use gtk_sys as gtk;
use clapper_sys as clapper;

#[allow(unused_imports)]
use std::ffi::{c_int, c_char, c_uchar, c_float, c_uint, c_double,
    c_short, c_ushort, c_long, c_ulong, c_void};
#[allow(unused_imports)]
use libc::{size_t, ssize_t, time_t, off_t, intptr_t, uintptr_t, FILE};
#[cfg(unix)]
#[allow(unused_imports)]
use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t};

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

// Constants
pub const CLAPPER_GTK_MAJOR_VERSION: c_int = 0;
pub const CLAPPER_GTK_MICRO_VERSION: c_int = 0;
pub const CLAPPER_GTK_MINOR_VERSION: c_int = 10;
pub const CLAPPER_GTK_VERSION_S: &[u8] = b"0.10.0\0";

// Flags
pub type ClapperGtkVideoActionMask = c_uint;
pub const CLAPPER_GTK_VIDEO_ACTION_NONE: ClapperGtkVideoActionMask = 0;
pub const CLAPPER_GTK_VIDEO_ACTION_REVEAL_OVERLAYS: ClapperGtkVideoActionMask = 1;
pub const CLAPPER_GTK_VIDEO_ACTION_TOGGLE_PLAY: ClapperGtkVideoActionMask = 2;
pub const CLAPPER_GTK_VIDEO_ACTION_TOGGLE_FULLSCREEN: ClapperGtkVideoActionMask = 4;
pub const CLAPPER_GTK_VIDEO_ACTION_SEEK_REQUEST: ClapperGtkVideoActionMask = 8;
pub const CLAPPER_GTK_VIDEO_ACTION_ANY: ClapperGtkVideoActionMask = 67108863;

// Records
#[derive(Copy, Clone)]
#[repr(C)]
pub struct ClapperGtkAudioClass {
    pub parent_class: ClapperGtkAvClass,
}

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

#[derive(Copy, Clone)]
#[repr(C)]
pub struct ClapperGtkAvClass {
    pub parent_class: gtk::GtkWidgetClass,
    pub padding: [gpointer; 4],
}

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

#[derive(Copy, Clone)]
#[repr(C)]
pub struct ClapperGtkBillboardClass {
    pub parent_class: ClapperGtkContainerClass,
}

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

#[derive(Copy, Clone)]
#[repr(C)]
pub struct ClapperGtkContainerClass {
    pub parent_class: gtk::GtkWidgetClass,
    pub padding: [gpointer; 4],
}

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

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

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

#[derive(Copy, Clone)]
#[repr(C)]
pub struct ClapperGtkLeadContainerClass {
    pub parent_class: ClapperGtkContainerClass,
    pub padding: [gpointer; 4],
}

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

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

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

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

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

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

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

#[derive(Copy, Clone)]
#[repr(C)]
pub struct ClapperGtkSimpleControlsClass {
    pub parent_class: ClapperGtkContainerClass,
}

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

#[derive(Copy, Clone)]
#[repr(C)]
pub struct ClapperGtkTitleHeaderClass {
    pub parent_class: ClapperGtkLeadContainerClass,
}

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

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

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

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

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

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

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

#[derive(Copy, Clone)]
#[repr(C)]
pub struct ClapperGtkVideoClass {
    pub parent_class: ClapperGtkAvClass,
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

extern "C" {

    //=========================================================================
    // ClapperGtkVideoActionMask
    //=========================================================================
    pub fn clapper_gtk_video_action_mask_get_type() -> GType;

    //=========================================================================
    // ClapperGtkAudio
    //=========================================================================
    #[cfg(feature = "v0_10")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_10")))]
    pub fn clapper_gtk_audio_get_type() -> GType;
    #[cfg(feature = "v0_10")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_10")))]
    pub fn clapper_gtk_audio_new() -> *mut gtk::GtkWidget;
    #[cfg(feature = "v0_10")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_10")))]
    pub fn clapper_gtk_audio_get_child(audio: *mut ClapperGtkAudio) -> *mut gtk::GtkWidget;
    #[cfg(feature = "v0_10")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_10")))]
    pub fn clapper_gtk_audio_set_child(audio: *mut ClapperGtkAudio, child: *mut gtk::GtkWidget);

    //=========================================================================
    // ClapperGtkAv
    //=========================================================================
    #[cfg(feature = "v0_10")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_10")))]
    pub fn clapper_gtk_av_get_type() -> GType;
    #[cfg(feature = "v0_10")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_10")))]
    pub fn clapper_gtk_av_get_auto_inhibit(av: *mut ClapperGtkAv) -> gboolean;
    #[cfg(feature = "v0_10")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_10")))]
    pub fn clapper_gtk_av_get_inhibited(av: *mut ClapperGtkAv) -> gboolean;
    #[cfg(feature = "v0_10")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_10")))]
    pub fn clapper_gtk_av_get_player(av: *mut ClapperGtkAv) -> *mut clapper::ClapperPlayer;
    #[cfg(feature = "v0_10")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_10")))]
    pub fn clapper_gtk_av_set_auto_inhibit(av: *mut ClapperGtkAv, inhibit: gboolean);

    //=========================================================================
    // ClapperGtkBillboard
    //=========================================================================
    pub fn clapper_gtk_billboard_get_type() -> GType;
    pub fn clapper_gtk_billboard_new() -> *mut gtk::GtkWidget;
    pub fn clapper_gtk_billboard_announce_speed(billboard: *mut ClapperGtkBillboard);
    pub fn clapper_gtk_billboard_announce_volume(billboard: *mut ClapperGtkBillboard);
    pub fn clapper_gtk_billboard_pin_message(billboard: *mut ClapperGtkBillboard, icon_name: *const c_char, message: *const c_char);
    pub fn clapper_gtk_billboard_post_message(billboard: *mut ClapperGtkBillboard, icon_name: *const c_char, message: *const c_char);
    pub fn clapper_gtk_billboard_unpin_pinned_message(billboard: *mut ClapperGtkBillboard);

    //=========================================================================
    // ClapperGtkContainer
    //=========================================================================
    pub fn clapper_gtk_container_get_type() -> GType;
    pub fn clapper_gtk_container_new() -> *mut gtk::GtkWidget;
    pub fn clapper_gtk_container_get_adaptive_height(container: *mut ClapperGtkContainer) -> c_int;
    pub fn clapper_gtk_container_get_adaptive_width(container: *mut ClapperGtkContainer) -> c_int;
    pub fn clapper_gtk_container_get_child(container: *mut ClapperGtkContainer) -> *mut gtk::GtkWidget;
    pub fn clapper_gtk_container_get_height_target(container: *mut ClapperGtkContainer) -> c_int;
    pub fn clapper_gtk_container_get_width_target(container: *mut ClapperGtkContainer) -> c_int;
    pub fn clapper_gtk_container_set_adaptive_height(container: *mut ClapperGtkContainer, height: c_int);
    pub fn clapper_gtk_container_set_adaptive_width(container: *mut ClapperGtkContainer, width: c_int);
    pub fn clapper_gtk_container_set_child(container: *mut ClapperGtkContainer, child: *mut gtk::GtkWidget);
    pub fn clapper_gtk_container_set_height_target(container: *mut ClapperGtkContainer, height: c_int);
    pub fn clapper_gtk_container_set_width_target(container: *mut ClapperGtkContainer, width: c_int);

    //=========================================================================
    // ClapperGtkExtraMenuButton
    //=========================================================================
    pub fn clapper_gtk_extra_menu_button_get_type() -> GType;
    pub fn clapper_gtk_extra_menu_button_new() -> *mut gtk::GtkWidget;
    pub fn clapper_gtk_extra_menu_button_get_can_open_subtitles(button: *mut ClapperGtkExtraMenuButton) -> gboolean;
    pub fn clapper_gtk_extra_menu_button_get_speed_visible(button: *mut ClapperGtkExtraMenuButton) -> gboolean;
    pub fn clapper_gtk_extra_menu_button_get_volume_visible(button: *mut ClapperGtkExtraMenuButton) -> gboolean;
    pub fn clapper_gtk_extra_menu_button_set_can_open_subtitles(button: *mut ClapperGtkExtraMenuButton, allowed: gboolean);
    pub fn clapper_gtk_extra_menu_button_set_speed_visible(button: *mut ClapperGtkExtraMenuButton, visible: gboolean);
    pub fn clapper_gtk_extra_menu_button_set_volume_visible(button: *mut ClapperGtkExtraMenuButton, visible: gboolean);

    //=========================================================================
    // ClapperGtkLeadContainer
    //=========================================================================
    pub fn clapper_gtk_lead_container_get_type() -> GType;
    pub fn clapper_gtk_lead_container_new() -> *mut gtk::GtkWidget;
    pub fn clapper_gtk_lead_container_get_blocked_actions(lead_container: *mut ClapperGtkLeadContainer) -> ClapperGtkVideoActionMask;
    pub fn clapper_gtk_lead_container_get_leading(lead_container: *mut ClapperGtkLeadContainer) -> gboolean;
    pub fn clapper_gtk_lead_container_set_blocked_actions(lead_container: *mut ClapperGtkLeadContainer, actions: ClapperGtkVideoActionMask);
    pub fn clapper_gtk_lead_container_set_leading(lead_container: *mut ClapperGtkLeadContainer, leading: gboolean);

    //=========================================================================
    // ClapperGtkNextItemButton
    //=========================================================================
    pub fn clapper_gtk_next_item_button_get_type() -> GType;
    pub fn clapper_gtk_next_item_button_new() -> *mut gtk::GtkWidget;

    //=========================================================================
    // ClapperGtkPreviousItemButton
    //=========================================================================
    pub fn clapper_gtk_previous_item_button_get_type() -> GType;
    pub fn clapper_gtk_previous_item_button_new() -> *mut gtk::GtkWidget;

    //=========================================================================
    // ClapperGtkSeekBar
    //=========================================================================
    pub fn clapper_gtk_seek_bar_get_type() -> GType;
    pub fn clapper_gtk_seek_bar_new() -> *mut gtk::GtkWidget;
    pub fn clapper_gtk_seek_bar_get_reveal_labels(seek_bar: *mut ClapperGtkSeekBar) -> gboolean;
    pub fn clapper_gtk_seek_bar_get_seek_method(seek_bar: *mut ClapperGtkSeekBar) -> clapper::ClapperPlayerSeekMethod;
    pub fn clapper_gtk_seek_bar_set_reveal_labels(seek_bar: *mut ClapperGtkSeekBar, reveal: gboolean);
    pub fn clapper_gtk_seek_bar_set_seek_method(seek_bar: *mut ClapperGtkSeekBar, method: clapper::ClapperPlayerSeekMethod);

    //=========================================================================
    // ClapperGtkSimpleControls
    //=========================================================================
    pub fn clapper_gtk_simple_controls_get_type() -> GType;
    pub fn clapper_gtk_simple_controls_new() -> *mut gtk::GtkWidget;
    pub fn clapper_gtk_simple_controls_get_extra_menu_button(controls: *mut ClapperGtkSimpleControls) -> *mut ClapperGtkExtraMenuButton;
    pub fn clapper_gtk_simple_controls_get_fullscreenable(controls: *mut ClapperGtkSimpleControls) -> gboolean;
    pub fn clapper_gtk_simple_controls_get_seek_method(controls: *mut ClapperGtkSimpleControls) -> clapper::ClapperPlayerSeekMethod;
    pub fn clapper_gtk_simple_controls_set_fullscreenable(controls: *mut ClapperGtkSimpleControls, fullscreenable: gboolean);
    pub fn clapper_gtk_simple_controls_set_seek_method(controls: *mut ClapperGtkSimpleControls, method: clapper::ClapperPlayerSeekMethod);

    //=========================================================================
    // ClapperGtkTitleHeader
    //=========================================================================
    pub fn clapper_gtk_title_header_get_type() -> GType;
    pub fn clapper_gtk_title_header_new() -> *mut gtk::GtkWidget;
    pub fn clapper_gtk_title_header_get_current_title(header: *mut ClapperGtkTitleHeader) -> *const c_char;
    pub fn clapper_gtk_title_header_get_fallback_to_uri(header: *mut ClapperGtkTitleHeader) -> gboolean;
    pub fn clapper_gtk_title_header_set_fallback_to_uri(header: *mut ClapperGtkTitleHeader, enabled: gboolean);

    //=========================================================================
    // ClapperGtkTitleLabel
    //=========================================================================
    pub fn clapper_gtk_title_label_get_type() -> GType;
    pub fn clapper_gtk_title_label_new() -> *mut gtk::GtkWidget;
    pub fn clapper_gtk_title_label_get_current_title(label: *mut ClapperGtkTitleLabel) -> *const c_char;
    pub fn clapper_gtk_title_label_get_fallback_to_uri(label: *mut ClapperGtkTitleLabel) -> gboolean;
    pub fn clapper_gtk_title_label_get_media_item(label: *mut ClapperGtkTitleLabel) -> *mut clapper::ClapperMediaItem;
    pub fn clapper_gtk_title_label_set_fallback_to_uri(label: *mut ClapperGtkTitleLabel, enabled: gboolean);
    pub fn clapper_gtk_title_label_set_media_item(label: *mut ClapperGtkTitleLabel, item: *mut clapper::ClapperMediaItem);

    //=========================================================================
    // ClapperGtkToggleFullscreenButton
    //=========================================================================
    pub fn clapper_gtk_toggle_fullscreen_button_get_type() -> GType;
    pub fn clapper_gtk_toggle_fullscreen_button_new() -> *mut gtk::GtkWidget;

    //=========================================================================
    // ClapperGtkTogglePlayButton
    //=========================================================================
    pub fn clapper_gtk_toggle_play_button_get_type() -> GType;
    pub fn clapper_gtk_toggle_play_button_new() -> *mut gtk::GtkWidget;

    //=========================================================================
    // ClapperGtkVideo
    //=========================================================================
    pub fn clapper_gtk_video_get_type() -> GType;
    pub fn clapper_gtk_video_new() -> *mut gtk::GtkWidget;
    pub fn clapper_gtk_video_add_fading_overlay(video: *mut ClapperGtkVideo, widget: *mut gtk::GtkWidget);
    pub fn clapper_gtk_video_add_overlay(video: *mut ClapperGtkVideo, widget: *mut gtk::GtkWidget);
    pub fn clapper_gtk_video_get_auto_inhibit(video: *mut ClapperGtkVideo) -> gboolean;
    pub fn clapper_gtk_video_get_fade_delay(video: *mut ClapperGtkVideo) -> c_uint;
    pub fn clapper_gtk_video_get_inhibited(video: *mut ClapperGtkVideo) -> gboolean;
    pub fn clapper_gtk_video_get_player(video: *mut ClapperGtkVideo) -> *mut clapper::ClapperPlayer;
    pub fn clapper_gtk_video_get_touch_fade_delay(video: *mut ClapperGtkVideo) -> c_uint;
    pub fn clapper_gtk_video_set_auto_inhibit(video: *mut ClapperGtkVideo, inhibit: gboolean);
    pub fn clapper_gtk_video_set_fade_delay(video: *mut ClapperGtkVideo, delay: c_uint);
    pub fn clapper_gtk_video_set_touch_fade_delay(video: *mut ClapperGtkVideo, delay: c_uint);

    //=========================================================================
    // Other functions
    //=========================================================================
    #[cfg(feature = "v0_10")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_10")))]
    pub fn clapper_gtk_get_major_version() -> c_uint;
    #[cfg(feature = "v0_10")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_10")))]
    pub fn clapper_gtk_get_micro_version() -> c_uint;
    #[cfg(feature = "v0_10")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_10")))]
    pub fn clapper_gtk_get_minor_version() -> c_uint;
    pub fn clapper_gtk_get_player_from_ancestor(widget: *mut gtk::GtkWidget) -> *mut clapper::ClapperPlayer;
    pub fn clapper_gtk_get_resource() -> *mut gio::GResource;
    #[cfg(feature = "v0_10")]
    #[cfg_attr(docsrs, doc(cfg(feature = "v0_10")))]
    pub fn clapper_gtk_get_version_s() -> *const c_char;

}