gstreamer_editing_services/auto/
image_source.rs1use crate::{ffi, Extractable, MetaContainer, Source, TimelineElement, TrackElement, VideoSource};
7use glib::{prelude::*, translate::*};
8
9glib::wrapper! {
10 #[doc(alias = "GESImageSource")]
11 pub struct ImageSource(Object<ffi::GESImageSource, ffi::GESImageSourceClass>) @extends VideoSource, Source, TrackElement, TimelineElement, @implements Extractable, MetaContainer;
12
13 match fn {
14 type_ => || ffi::ges_image_source_get_type(),
15 }
16}
17
18impl ImageSource {
19 pub const NONE: Option<&'static ImageSource> = None;
20}
21
22mod sealed {
23 pub trait Sealed {}
24 impl<T: super::IsA<super::ImageSource>> Sealed for T {}
25}
26
27pub trait ImageSourceExt: IsA<ImageSource> + sealed::Sealed + 'static {
28 fn uri(&self) -> Option<glib::GString> {
29 ObjectExt::property(self.as_ref(), "uri")
30 }
31}
32
33impl<O: IsA<ImageSource>> ImageSourceExt for O {}