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

69 lines
3.2 KiB
Rust
Raw Normal View History

// 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
2020-11-22 10:12:36 +00:00
use crate::Extractable;
use crate::TimelineElement;
use crate::TrackElement;
2020-06-03 12:26:16 +00:00
use glib::object::IsA;
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
use glib::translate::*;
2020-12-17 22:34:53 +00:00
glib::wrapper! {
2020-11-22 10:12:36 +00:00
pub struct BaseEffect(Object<ffi::GESBaseEffect, ffi::GESBaseEffectClass>) @extends TrackElement, TimelineElement, @implements Extractable;
match fn {
type_ => || ffi::ges_base_effect_get_type(),
}
}
2019-01-16 11:32:39 +00:00
pub const NONE_BASE_EFFECT: Option<&BaseEffect> = None;
2020-06-03 12:26:16 +00:00
pub trait BaseEffectExt: 'static {
2020-11-27 13:37:24 +00:00
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
2020-12-08 13:00:17 +00:00
#[doc(alias = "ges_base_effect_is_time_effect")]
2020-06-03 12:26:16 +00:00
fn is_time_effect(&self) -> bool;
2020-11-27 13:37:24 +00:00
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
2020-12-08 13:00:17 +00:00
#[doc(alias = "ges_base_effect_register_time_property")]
2020-06-03 12:26:16 +00:00
fn register_time_property(&self, child_property_name: &str) -> bool;
2020-11-27 13:37:24 +00:00
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
2020-12-08 13:00:17 +00:00
//#[doc(alias = "ges_base_effect_set_time_translation_funcs")]
2020-06-03 12:26:16 +00:00
//fn set_time_translation_funcs(&self, source_to_sink_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, sink_to_source_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool;
}
impl<O: IsA<BaseEffect>> BaseEffectExt for O {
2020-11-27 13:37:24 +00:00
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
2020-06-03 12:26:16 +00:00
fn is_time_effect(&self) -> bool {
unsafe {
2020-11-22 10:12:36 +00:00
from_glib(ffi::ges_base_effect_is_time_effect(
2020-06-03 12:26:16 +00:00
self.as_ref().to_glib_none().0,
))
}
}
2020-11-27 13:37:24 +00:00
#[cfg(any(feature = "v1_18", feature = "dox"))]
#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
2020-06-03 12:26:16 +00:00
fn register_time_property(&self, child_property_name: &str) -> bool {
unsafe {
2020-11-22 10:12:36 +00:00
from_glib(ffi::ges_base_effect_register_time_property(
2020-06-03 12:26:16 +00:00
self.as_ref().to_glib_none().0,
child_property_name.to_glib_none().0,
))
}
}
2020-11-27 13:37:24 +00:00
//#[cfg(any(feature = "v1_18", feature = "dox"))]
//#[cfg_attr(feature = "dox", doc(cfg(feature = "v1_18")))]
2020-06-03 12:26:16 +00:00
//fn set_time_translation_funcs(&self, source_to_sink_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, sink_to_source_func: /*Unimplemented*/Fn(&BaseEffect, gst::ClockTime, /*Unimplemented*/HashTable TypeId { ns_id: 0, id: 28 }/TypeId { ns_id: 3, id: 11 }) -> gst::ClockTime, user_data: /*Unimplemented*/Option<Fundamental: Pointer>) -> bool {
2020-11-22 10:12:36 +00:00
// unsafe { TODO: call ffi:ges_base_effect_set_time_translation_funcs() }
2020-06-03 12:26:16 +00:00
//}
}