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
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from gir-files (https://github.com/gtk-rs/gir-files)
// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
// DO NOT EDIT
#![allow(deprecated)]

use crate::{
    ffi, Extractable, MetaContainer, Operation, TimelineElement, TrackElement, Transition,
};
use glib::translate::*;

glib::wrapper! {
    ///
    ///
    /// # Implements
    ///
    /// [`TransitionExt`][trait@crate::prelude::TransitionExt], [`OperationExt`][trait@crate::prelude::OperationExt], [`TrackElementExt`][trait@crate::prelude::TrackElementExt], [`TimelineElementExt`][trait@crate::prelude::TimelineElementExt], [`trait@glib::ObjectExt`], [`ExtractableExt`][trait@crate::prelude::ExtractableExt], [`MetaContainerExt`][trait@crate::prelude::MetaContainerExt], [`TimelineElementExtManual`][trait@crate::prelude::TimelineElementExtManual]
    #[doc(alias = "GESAudioTransition")]
    pub struct AudioTransition(Object<ffi::GESAudioTransition, ffi::GESAudioTransitionClass>) @extends Transition, Operation, TrackElement, TimelineElement, @implements Extractable, MetaContainer;

    match fn {
        type_ => || ffi::ges_audio_transition_get_type(),
    }
}

impl AudioTransition {
    pub const NONE: Option<&'static AudioTransition> = None;

    /// Creates a new [`AudioTransition`][crate::AudioTransition].
    ///
    /// # Deprecated since 1.18
    ///
    /// This should never be called by applications as this will
    /// be created by clips.
    ///
    /// # Returns
    ///
    /// The newly created [`AudioTransition`][crate::AudioTransition].
    #[cfg_attr(feature = "v1_18", deprecated = "Since 1.18")]
    #[allow(deprecated)]
    #[doc(alias = "ges_audio_transition_new")]
    pub fn new() -> AudioTransition {
        assert_initialized_main_thread!();
        unsafe { from_glib_none(ffi::ges_audio_transition_new()) }
    }
}

impl Default for AudioTransition {
    fn default() -> Self {
        Self::new()
    }
}