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 ///
14 ///
15 /// # Implements
16 ///
17 /// [`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]
18 #[doc(alias = "GESAudioTransition")]
19 pub struct AudioTransition(Object<ffi::GESAudioTransition, ffi::GESAudioTransitionClass>) @extends Transition, Operation, TrackElement, TimelineElement, @implements Extractable, MetaContainer;
20
21 match fn {
22 type_ => || ffi::ges_audio_transition_get_type(),
23 }
24}
25
26impl AudioTransition {
27 pub const NONE: Option<&'static AudioTransition> = None;
28
29 /// Creates a new [`AudioTransition`][crate::AudioTransition].
30 ///
31 /// # Deprecated since 1.18
32 ///
33 /// This should never be called by applications as this will
34 /// be created by clips.
35 ///
36 /// # Returns
37 ///
38 /// The newly created [`AudioTransition`][crate::AudioTransition].
39 #[cfg_attr(feature = "v1_18", deprecated = "Since 1.18")]
40 #[allow(deprecated)]
41 #[doc(alias = "ges_audio_transition_new")]
42 pub fn new() -> AudioTransition {
43 assert_initialized_main_thread!();
44 unsafe { from_glib_none(ffi::ges_audio_transition_new()) }
45 }
46}
47
48impl Default for AudioTransition {
49 fn default() -> Self {
50 Self::new()
51 }
52}