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
// 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

use crate::AudioSource;
use crate::Extractable;
use crate::MetaContainer;
use crate::Source;
use crate::TimelineElement;
use crate::TrackElement;
use glib::object::IsA;
use glib::translate::*;
use glib::StaticType;

glib::wrapper! {
    /// ### Children Properties
    ///
    ///  {{ libs/GESVideoUriSource-children-props.md }}
    ///
    /// # Implements
    ///
    /// [`AudioUriSourceExt`][trait@crate::prelude::AudioUriSourceExt], [`AudioSourceExt`][trait@crate::prelude::AudioSourceExt], [`SourceExt`][trait@crate::prelude::SourceExt], [`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 = "GESAudioUriSource")]
    pub struct AudioUriSource(Object<ffi::GESAudioUriSource, ffi::GESAudioUriSourceClass>) @extends AudioSource, Source, TrackElement, TimelineElement, @implements Extractable, MetaContainer;

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

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

/// Trait containing all [`struct@AudioUriSource`] methods.
///
/// # Implementors
///
/// [`AudioUriSource`][struct@crate::AudioUriSource]
pub trait AudioUriSourceExt: 'static {
    /// The location of the file/resource to use.
    fn uri(&self) -> Option<glib::GString>;
}

impl<O: IsA<AudioUriSource>> AudioUriSourceExt for O {
    fn uri(&self) -> Option<glib::GString> {
        glib::ObjectExt::property(self.as_ref(), "uri")
    }
}