2021-09-19 08:07:33 +00:00
|
|
|
// 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;
|
|
|
|
use crate::Container;
|
|
|
|
use crate::Extractable;
|
|
|
|
use crate::MetaContainer;
|
|
|
|
use crate::TimelineElement;
|
|
|
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", 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 {
|
|
|
|
#[cfg(any(feature = "v1_18", feature = "dox"))]
|
|
|
|
#[cfg_attr(feature = "dox", 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()) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-03 17:28:46 +00:00
|
|
|
impl SourceClip {
|
|
|
|
pub const NONE: Option<&'static SourceClip> = None;
|
|
|
|
}
|