mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-05-19 16:58:22 +00:00
34 lines
1.1 KiB
Rust
34 lines
1.1 KiB
Rust
// 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, Extractable, MetaContainer, Source, TimelineElement, TrackElement};
|
|
use glib::{prelude::*, translate::*};
|
|
|
|
glib::wrapper! {
|
|
#[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;
|
|
}
|
|
|
|
mod sealed {
|
|
pub trait Sealed {}
|
|
impl<T: super::IsA<super::AudioUriSource>> Sealed for T {}
|
|
}
|
|
|
|
pub trait AudioUriSourceExt: IsA<AudioUriSource> + sealed::Sealed + 'static {
|
|
fn uri(&self) -> Option<glib::GString> {
|
|
ObjectExt::property(self.as_ref(), "uri")
|
|
}
|
|
}
|
|
|
|
impl<O: IsA<AudioUriSource>> AudioUriSourceExt for O {}
|