gstreamer_editing_services/auto/
title_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, SourceClip, TimelineElement};
7use glib::translate::*;
8
9glib::wrapper! {
10    #[doc(alias = "GESTitleClip")]
11    pub struct TitleClip(Object<ffi::GESTitleClip, ffi::GESTitleClipClass>) @extends SourceClip, Clip, Container, TimelineElement, @implements Extractable, MetaContainer;
12
13    match fn {
14        type_ => || ffi::ges_title_clip_get_type(),
15    }
16}
17
18impl TitleClip {
19    pub const NONE: Option<&'static TitleClip> = None;
20
21    #[doc(alias = "ges_title_clip_new")]
22    pub fn new() -> Option<TitleClip> {
23        assert_initialized_main_thread!();
24        unsafe { from_glib_none(ffi::ges_title_clip_new()) }
25    }
26}