gstreamer_editing_services/auto/
audio_transition.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
4// DO NOT EDIT
5#![allow(deprecated)]
6
7use crate::{
8    ffi, Extractable, MetaContainer, Operation, TimelineElement, TrackElement, Transition,
9};
10use glib::translate::*;
11
12glib::wrapper! {
13    #[doc(alias = "GESAudioTransition")]
14    pub struct AudioTransition(Object<ffi::GESAudioTransition, ffi::GESAudioTransitionClass>) @extends Transition, Operation, TrackElement, TimelineElement, @implements Extractable, MetaContainer;
15
16    match fn {
17        type_ => || ffi::ges_audio_transition_get_type(),
18    }
19}
20
21impl AudioTransition {
22    pub const NONE: Option<&'static AudioTransition> = None;
23
24    #[cfg_attr(feature = "v1_18", deprecated = "Since 1.18")]
25    #[allow(deprecated)]
26    #[doc(alias = "ges_audio_transition_new")]
27    pub fn new() -> AudioTransition {
28        assert_initialized_main_thread!();
29        unsafe { from_glib_none(ffi::ges_audio_transition_new()) }
30    }
31}
32
33impl Default for AudioTransition {
34    fn default() -> Self {
35        Self::new()
36    }
37}