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
22pub trait ImageSourceExt: IsA<ImageSource> + 'static {
23 fn uri(&self) -> Option<glib::GString> {
24 ObjectExt::property(self.as_ref(), "uri")
25 }
26}
27
28impl<O: IsA<ImageSource>> ImageSourceExt for O {}