gstreamer_editing_services/auto/
video_uri_source.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from gir-files (https://github.com/gtk-rs/gir-files)
3// from gst-gir-files (https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git)
4// DO NOT EDIT
5
6use crate::{ffi, Extractable, MetaContainer, Source, TimelineElement, TrackElement, VideoSource};
7use glib::{prelude::*, translate::*};
8
9glib::wrapper! {
10    #[doc(alias = "GESVideoUriSource")]
11    pub struct VideoUriSource(Object<ffi::GESVideoUriSource, ffi::GESVideoUriSourceClass>) @extends VideoSource, Source, TrackElement, TimelineElement, @implements Extractable, MetaContainer;
12
13    match fn {
14        type_ => || ffi::ges_video_uri_source_get_type(),
15    }
16}
17
18impl VideoUriSource {
19    pub const NONE: Option<&'static VideoUriSource> = None;
20}
21
22pub trait VideoUriSourceExt: IsA<VideoUriSource> + 'static {
23    fn uri(&self) -> Option<glib::GString> {
24        ObjectExt::property(self.as_ref(), "uri")
25    }
26}
27
28impl<O: IsA<VideoUriSource>> VideoUriSourceExt for O {}