gstreamer_editing_services/auto/
effect_clip.rs1use crate::{
7 ffi, BaseEffectClip, Clip, Container, Extractable, MetaContainer, OperationClip,
8 TimelineElement,
9};
10use glib::{prelude::*, translate::*};
11
12glib::wrapper! {
13 #[doc(alias = "GESEffectClip")]
14 pub struct EffectClip(Object<ffi::GESEffectClip, ffi::GESEffectClipClass>) @extends BaseEffectClip, OperationClip, Clip, Container, TimelineElement, @implements Extractable, MetaContainer;
15
16 match fn {
17 type_ => || ffi::ges_effect_clip_get_type(),
18 }
19}
20
21impl EffectClip {
22 pub const NONE: Option<&'static EffectClip> = None;
23
24 #[doc(alias = "ges_effect_clip_new")]
25 pub fn new(
26 video_bin_description: Option<&str>,
27 audio_bin_description: Option<&str>,
28 ) -> Option<EffectClip> {
29 assert_initialized_main_thread!();
30 unsafe {
31 from_glib_none(ffi::ges_effect_clip_new(
32 video_bin_description.to_glib_none().0,
33 audio_bin_description.to_glib_none().0,
34 ))
35 }
36 }
37}
38
39pub trait EffectClipExt: IsA<EffectClip> + 'static {
40 #[doc(alias = "audio-bin-description")]
41 fn audio_bin_description(&self) -> Option<glib::GString> {
42 ObjectExt::property(self.as_ref(), "audio-bin-description")
43 }
44
45 #[doc(alias = "video-bin-description")]
46 fn video_bin_description(&self) -> Option<glib::GString> {
47 ObjectExt::property(self.as_ref(), "video-bin-description")
48 }
49}
50
51impl<O: IsA<EffectClip>> EffectClipExt for O {}