gstreamer-rs/gstreamer-editing-services/src/auto/source_clip.rs

31 lines
1.1 KiB
Rust

// 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::{Clip, Container, Extractable, MetaContainer, TimelineElement};
#[cfg(feature = "v1_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
use glib::translate::*;
glib::wrapper! {
#[doc(alias = "GESSourceClip")]
pub struct SourceClip(Object<ffi::GESSourceClip, ffi::GESSourceClipClass>) @extends Clip, Container, TimelineElement, @implements Extractable, MetaContainer;
match fn {
type_ => || ffi::ges_source_clip_get_type(),
}
}
impl SourceClip {
pub const NONE: Option<&'static SourceClip> = None;
#[cfg(feature = "v1_18")]
#[cfg_attr(docsrs, doc(cfg(feature = "v1_18")))]
#[doc(alias = "ges_source_clip_new_time_overlay")]
pub fn new_time_overlay() -> Option<SourceClip> {
assert_initialized_main_thread!();
unsafe { from_glib_none(ffi::ges_source_clip_new_time_overlay()) }
}
}