gstreamer_editing_services/auto/
source_clip.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, Clip, Container, Extractable, MetaContainer, TimelineElement};
7#[cfg(feature = "v1_18")]
8#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
9use glib::translate::*;
10
11glib::wrapper! {
12    #[doc(alias = "GESSourceClip")]
13    pub struct SourceClip(Object<ffi::GESSourceClip, ffi::GESSourceClipClass>) @extends Clip, Container, TimelineElement, @implements Extractable, MetaContainer;
14
15    match fn {
16        type_ => || ffi::ges_source_clip_get_type(),
17    }
18}
19
20impl SourceClip {
21    pub const NONE: Option<&'static SourceClip> = None;
22
23    #[cfg(feature = "v1_18")]
24    #[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
25    #[doc(alias = "ges_source_clip_new_time_overlay")]
26    pub fn new_time_overlay() -> Option<SourceClip> {
27        assert_initialized_main_thread!();
28        unsafe { from_glib_none(ffi::ges_source_clip_new_time_overlay()) }
29    }
30}