// 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::{Extractable, MetaContainer, Source, TimelineElement, TrackElement, VideoSource};
use glib::{prelude::*, translate::*};

glib::wrapper! {
    #[doc(alias = "GESVideoUriSource")]
    pub struct VideoUriSource(Object<ffi::GESVideoUriSource, ffi::GESVideoUriSourceClass>) @extends VideoSource, Source, TrackElement, TimelineElement, @implements Extractable, MetaContainer;

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

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

mod sealed {
    pub trait Sealed {}
    impl<T: super::IsA<super::VideoUriSource>> Sealed for T {}
}

pub trait VideoUriSourceExt: IsA<VideoUriSource> + sealed::Sealed + 'static {
    fn uri(&self) -> Option<glib::GString> {
        ObjectExt::property(self.as_ref(), "uri")
    }
}

impl<O: IsA<VideoUriSource>> VideoUriSourceExt for O {}
