2018-10-31 16:10:30 +00:00
|
|
|
// This file was generated by gir (https://github.com/gtk-rs/gir)
|
|
|
|
// from gir-files (https://github.com/gtk-rs/gir-files)
|
|
|
|
// DO NOT EDIT
|
|
|
|
|
|
|
|
use Extractable;
|
|
|
|
use Timeline;
|
|
|
|
use TrackType;
|
|
|
|
use ffi;
|
2018-12-09 16:06:12 +00:00
|
|
|
use glib::GString;
|
2018-10-31 16:10:30 +00:00
|
|
|
use glib::StaticType;
|
|
|
|
use glib::Value;
|
2019-01-16 11:32:39 +00:00
|
|
|
use glib::object::Cast;
|
2018-10-31 16:10:30 +00:00
|
|
|
use glib::object::IsA;
|
|
|
|
use glib::signal::SignalHandlerId;
|
2018-12-08 09:05:20 +00:00
|
|
|
use glib::signal::connect_raw;
|
2018-10-31 16:10:30 +00:00
|
|
|
use glib::translate::*;
|
|
|
|
use glib_ffi;
|
|
|
|
use gobject_ffi;
|
|
|
|
use gst;
|
|
|
|
use std::boxed::Box as Box_;
|
|
|
|
use std::mem::transmute;
|
|
|
|
|
|
|
|
glib_wrapper! {
|
2019-01-16 11:32:39 +00:00
|
|
|
pub struct TimelineElement(Object<ffi::GESTimelineElement, ffi::GESTimelineElementClass, TimelineElementClass>) @implements Extractable;
|
2018-10-31 16:10:30 +00:00
|
|
|
|
|
|
|
match fn {
|
|
|
|
get_type => || ffi::ges_timeline_element_get_type(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-16 11:32:39 +00:00
|
|
|
pub const NONE_TIMELINE_ELEMENT: Option<&TimelineElement> = None;
|
|
|
|
|
2018-12-08 09:05:20 +00:00
|
|
|
pub trait TimelineElementExt: 'static {
|
2019-01-29 13:53:44 +00:00
|
|
|
//fn add_child_property<P: IsA<glib::Object>>(&self, pspec: /*Ignored*/&glib::ParamSpec, child: &P) -> bool;
|
2018-10-31 16:10:30 +00:00
|
|
|
|
|
|
|
fn copy(&self, deep: bool) -> Option<TimelineElement>;
|
|
|
|
|
|
|
|
//fn get_child_properties(&self, first_property_name: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs);
|
|
|
|
|
|
|
|
//fn get_child_property(&self, property_name: &str, value: /*Ignored*/glib::Value) -> bool;
|
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
//fn get_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/glib::Value);
|
2018-10-31 16:10:30 +00:00
|
|
|
|
|
|
|
//fn get_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported);
|
|
|
|
|
|
|
|
fn get_duration(&self) -> gst::ClockTime;
|
|
|
|
|
|
|
|
fn get_inpoint(&self) -> gst::ClockTime;
|
|
|
|
|
|
|
|
fn get_max_duration(&self) -> gst::ClockTime;
|
|
|
|
|
2018-12-09 16:06:12 +00:00
|
|
|
fn get_name(&self) -> Option<GString>;
|
2018-10-31 16:10:30 +00:00
|
|
|
|
|
|
|
fn get_parent(&self) -> Option<TimelineElement>;
|
|
|
|
|
|
|
|
fn get_priority(&self) -> u32;
|
|
|
|
|
|
|
|
fn get_start(&self) -> gst::ClockTime;
|
|
|
|
|
|
|
|
fn get_timeline(&self) -> Option<Timeline>;
|
|
|
|
|
|
|
|
fn get_toplevel_parent(&self) -> Option<TimelineElement>;
|
|
|
|
|
|
|
|
fn get_track_types(&self) -> TrackType;
|
|
|
|
|
|
|
|
//fn list_children_properties(&self) -> /*Ignored*/Vec<glib::ParamSpec>;
|
|
|
|
|
|
|
|
//fn lookup_child(&self, prop_name: &str, pspec: /*Ignored*/glib::ParamSpec) -> Option<glib::Object>;
|
|
|
|
|
|
|
|
fn paste(&self, paste_position: gst::ClockTime) -> Option<TimelineElement>;
|
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
//fn remove_child_property(&self, pspec: /*Ignored*/&glib::ParamSpec) -> bool;
|
2018-10-31 16:10:30 +00:00
|
|
|
|
|
|
|
fn ripple(&self, start: gst::ClockTime) -> bool;
|
|
|
|
|
|
|
|
fn ripple_end(&self, end: gst::ClockTime) -> bool;
|
|
|
|
|
|
|
|
fn roll_end(&self, end: gst::ClockTime) -> bool;
|
|
|
|
|
|
|
|
fn roll_start(&self, start: gst::ClockTime) -> bool;
|
|
|
|
|
|
|
|
//fn set_child_properties(&self, first_property_name: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs);
|
|
|
|
|
2018-11-05 09:18:31 +00:00
|
|
|
//fn set_child_property(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> bool;
|
2018-10-31 16:10:30 +00:00
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
//fn set_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/&glib::Value);
|
2018-10-31 16:10:30 +00:00
|
|
|
|
|
|
|
//fn set_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported);
|
|
|
|
|
|
|
|
fn set_duration(&self, duration: gst::ClockTime);
|
|
|
|
|
|
|
|
fn set_inpoint(&self, inpoint: gst::ClockTime);
|
|
|
|
|
|
|
|
fn set_max_duration(&self, maxduration: gst::ClockTime);
|
|
|
|
|
|
|
|
fn set_name<'a, P: Into<Option<&'a str>>>(&self, name: P) -> bool;
|
|
|
|
|
|
|
|
fn set_parent<P: IsA<TimelineElement>>(&self, parent: &P) -> bool;
|
|
|
|
|
|
|
|
fn set_priority(&self, priority: u32);
|
|
|
|
|
|
|
|
fn set_start(&self, start: gst::ClockTime);
|
|
|
|
|
2019-01-16 11:32:39 +00:00
|
|
|
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> bool;
|
2018-10-31 16:10:30 +00:00
|
|
|
|
|
|
|
fn trim(&self, start: gst::ClockTime) -> bool;
|
|
|
|
|
|
|
|
fn get_property_in_point(&self) -> u64;
|
|
|
|
|
|
|
|
fn set_property_in_point(&self, in_point: u64);
|
|
|
|
|
|
|
|
fn get_property_serialize(&self) -> bool;
|
|
|
|
|
|
|
|
fn set_property_serialize(&self, serialize: bool);
|
|
|
|
|
|
|
|
//fn connect_deep_notify<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId;
|
|
|
|
|
|
|
|
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
|
|
|
|
|
|
|
fn connect_property_in_point_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
|
|
|
|
|
|
|
fn connect_property_max_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
|
|
|
|
|
|
|
fn connect_property_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
|
|
|
|
|
|
|
fn connect_property_parent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
|
|
|
|
|
|
|
fn connect_property_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
|
|
|
|
|
|
|
fn connect_property_serialize_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
|
|
|
|
|
|
|
fn connect_property_start_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
|
|
|
|
|
|
|
fn connect_property_timeline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
|
|
|
|
}
|
|
|
|
|
2018-12-08 09:05:20 +00:00
|
|
|
impl<O: IsA<TimelineElement>> TimelineElementExt for O {
|
2019-01-29 13:53:44 +00:00
|
|
|
//fn add_child_property<P: IsA<glib::Object>>(&self, pspec: /*Ignored*/&glib::ParamSpec, child: &P) -> bool {
|
2018-10-31 16:10:30 +00:00
|
|
|
// unsafe { TODO: call ffi::ges_timeline_element_add_child_property() }
|
|
|
|
//}
|
|
|
|
|
|
|
|
fn copy(&self, deep: bool) -> Option<TimelineElement> {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib_none(ffi::ges_timeline_element_copy(self.as_ref().to_glib_none().0, deep.to_glib()))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//fn get_child_properties(&self, first_property_name: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) {
|
|
|
|
// unsafe { TODO: call ffi::ges_timeline_element_get_child_properties() }
|
|
|
|
//}
|
|
|
|
|
|
|
|
//fn get_child_property(&self, property_name: &str, value: /*Ignored*/glib::Value) -> bool {
|
|
|
|
// unsafe { TODO: call ffi::ges_timeline_element_get_child_property() }
|
|
|
|
//}
|
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
//fn get_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/glib::Value) {
|
2018-10-31 16:10:30 +00:00
|
|
|
// unsafe { TODO: call ffi::ges_timeline_element_get_child_property_by_pspec() }
|
|
|
|
//}
|
|
|
|
|
|
|
|
//fn get_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported) {
|
|
|
|
// unsafe { TODO: call ffi::ges_timeline_element_get_child_property_valist() }
|
|
|
|
//}
|
|
|
|
|
|
|
|
fn get_duration(&self) -> gst::ClockTime {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib(ffi::ges_timeline_element_get_duration(self.as_ref().to_glib_none().0))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_inpoint(&self) -> gst::ClockTime {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib(ffi::ges_timeline_element_get_inpoint(self.as_ref().to_glib_none().0))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_max_duration(&self) -> gst::ClockTime {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib(ffi::ges_timeline_element_get_max_duration(self.as_ref().to_glib_none().0))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-12-09 16:06:12 +00:00
|
|
|
fn get_name(&self) -> Option<GString> {
|
2018-10-31 16:10:30 +00:00
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib_full(ffi::ges_timeline_element_get_name(self.as_ref().to_glib_none().0))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_parent(&self) -> Option<TimelineElement> {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib_full(ffi::ges_timeline_element_get_parent(self.as_ref().to_glib_none().0))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_priority(&self) -> u32 {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
ffi::ges_timeline_element_get_priority(self.as_ref().to_glib_none().0)
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_start(&self) -> gst::ClockTime {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib(ffi::ges_timeline_element_get_start(self.as_ref().to_glib_none().0))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_timeline(&self) -> Option<Timeline> {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib_full(ffi::ges_timeline_element_get_timeline(self.as_ref().to_glib_none().0))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_toplevel_parent(&self) -> Option<TimelineElement> {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib_full(ffi::ges_timeline_element_get_toplevel_parent(self.as_ref().to_glib_none().0))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_track_types(&self) -> TrackType {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib(ffi::ges_timeline_element_get_track_types(self.as_ref().to_glib_none().0))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//fn list_children_properties(&self) -> /*Ignored*/Vec<glib::ParamSpec> {
|
|
|
|
// unsafe { TODO: call ffi::ges_timeline_element_list_children_properties() }
|
|
|
|
//}
|
|
|
|
|
|
|
|
//fn lookup_child(&self, prop_name: &str, pspec: /*Ignored*/glib::ParamSpec) -> Option<glib::Object> {
|
|
|
|
// unsafe { TODO: call ffi::ges_timeline_element_lookup_child() }
|
|
|
|
//}
|
|
|
|
|
|
|
|
fn paste(&self, paste_position: gst::ClockTime) -> Option<TimelineElement> {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib_none(ffi::ges_timeline_element_paste(self.as_ref().to_glib_none().0, paste_position.to_glib()))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
//fn remove_child_property(&self, pspec: /*Ignored*/&glib::ParamSpec) -> bool {
|
2018-10-31 16:10:30 +00:00
|
|
|
// unsafe { TODO: call ffi::ges_timeline_element_remove_child_property() }
|
|
|
|
//}
|
|
|
|
|
|
|
|
fn ripple(&self, start: gst::ClockTime) -> bool {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib(ffi::ges_timeline_element_ripple(self.as_ref().to_glib_none().0, start.to_glib()))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn ripple_end(&self, end: gst::ClockTime) -> bool {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib(ffi::ges_timeline_element_ripple_end(self.as_ref().to_glib_none().0, end.to_glib()))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn roll_end(&self, end: gst::ClockTime) -> bool {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib(ffi::ges_timeline_element_roll_end(self.as_ref().to_glib_none().0, end.to_glib()))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn roll_start(&self, start: gst::ClockTime) -> bool {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib(ffi::ges_timeline_element_roll_start(self.as_ref().to_glib_none().0, start.to_glib()))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//fn set_child_properties(&self, first_property_name: &str, : /*Unknown conversion*//*Unimplemented*/Fundamental: VarArgs) {
|
|
|
|
// unsafe { TODO: call ffi::ges_timeline_element_set_child_properties() }
|
|
|
|
//}
|
|
|
|
|
2018-11-05 09:18:31 +00:00
|
|
|
//fn set_child_property(&self, property_name: &str, value: /*Ignored*/&glib::Value) -> bool {
|
2018-10-31 16:10:30 +00:00
|
|
|
// unsafe { TODO: call ffi::ges_timeline_element_set_child_property() }
|
|
|
|
//}
|
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
//fn set_child_property_by_pspec(&self, pspec: /*Ignored*/&glib::ParamSpec, value: /*Ignored*/&glib::Value) {
|
2018-10-31 16:10:30 +00:00
|
|
|
// unsafe { TODO: call ffi::ges_timeline_element_set_child_property_by_pspec() }
|
|
|
|
//}
|
|
|
|
|
|
|
|
//fn set_child_property_valist(&self, first_property_name: &str, var_args: /*Unknown conversion*//*Unimplemented*/Unsupported) {
|
|
|
|
// unsafe { TODO: call ffi::ges_timeline_element_set_child_property_valist() }
|
|
|
|
//}
|
|
|
|
|
|
|
|
fn set_duration(&self, duration: gst::ClockTime) {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
ffi::ges_timeline_element_set_duration(self.as_ref().to_glib_none().0, duration.to_glib());
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn set_inpoint(&self, inpoint: gst::ClockTime) {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
ffi::ges_timeline_element_set_inpoint(self.as_ref().to_glib_none().0, inpoint.to_glib());
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn set_max_duration(&self, maxduration: gst::ClockTime) {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
ffi::ges_timeline_element_set_max_duration(self.as_ref().to_glib_none().0, maxduration.to_glib());
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn set_name<'a, P: Into<Option<&'a str>>>(&self, name: P) -> bool {
|
|
|
|
let name = name.into();
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib(ffi::ges_timeline_element_set_name(self.as_ref().to_glib_none().0, name.to_glib_none().0))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn set_parent<P: IsA<TimelineElement>>(&self, parent: &P) -> bool {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib(ffi::ges_timeline_element_set_parent(self.as_ref().to_glib_none().0, parent.as_ref().to_glib_none().0))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn set_priority(&self, priority: u32) {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
ffi::ges_timeline_element_set_priority(self.as_ref().to_glib_none().0, priority);
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn set_start(&self, start: gst::ClockTime) {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
ffi::ges_timeline_element_set_start(self.as_ref().to_glib_none().0, start.to_glib());
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-16 11:32:39 +00:00
|
|
|
fn set_timeline<P: IsA<Timeline>>(&self, timeline: &P) -> bool {
|
2018-10-31 16:10:30 +00:00
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib(ffi::ges_timeline_element_set_timeline(self.as_ref().to_glib_none().0, timeline.as_ref().to_glib_none().0))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn trim(&self, start: gst::ClockTime) -> bool {
|
|
|
|
unsafe {
|
2019-01-16 11:32:39 +00:00
|
|
|
from_glib(ffi::ges_timeline_element_trim(self.as_ref().to_glib_none().0, start.to_glib()))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_property_in_point(&self) -> u64 {
|
|
|
|
unsafe {
|
|
|
|
let mut value = Value::from_type(<u64 as StaticType>::static_type());
|
2018-12-08 09:05:20 +00:00
|
|
|
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"in-point\0".as_ptr() as *const _, value.to_glib_none_mut().0);
|
2018-10-31 16:10:30 +00:00
|
|
|
value.get().unwrap()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn set_property_in_point(&self, in_point: u64) {
|
|
|
|
unsafe {
|
2018-12-08 09:05:20 +00:00
|
|
|
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"in-point\0".as_ptr() as *const _, Value::from(&in_point).to_glib_none().0);
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn get_property_serialize(&self) -> bool {
|
|
|
|
unsafe {
|
|
|
|
let mut value = Value::from_type(<bool as StaticType>::static_type());
|
2018-12-08 09:05:20 +00:00
|
|
|
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"serialize\0".as_ptr() as *const _, value.to_glib_none_mut().0);
|
2018-10-31 16:10:30 +00:00
|
|
|
value.get().unwrap()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn set_property_serialize(&self, serialize: bool) {
|
|
|
|
unsafe {
|
2018-12-08 09:05:20 +00:00
|
|
|
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"serialize\0".as_ptr() as *const _, Value::from(&serialize).to_glib_none().0);
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//fn connect_deep_notify<Unsupported or ignored types>(&self, f: F) -> SignalHandlerId {
|
|
|
|
// Ignored prop: GObject.ParamSpec
|
|
|
|
//}
|
|
|
|
|
|
|
|
fn connect_property_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
connect_raw(self.as_ptr() as *mut _, b"notify::duration\0".as_ptr() as *const _,
|
2019-01-29 13:53:44 +00:00
|
|
|
Some(transmute(notify_duration_trampoline::<Self, F> as usize)), Box_::into_raw(f))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn connect_property_in_point_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
connect_raw(self.as_ptr() as *mut _, b"notify::in-point\0".as_ptr() as *const _,
|
2019-01-29 13:53:44 +00:00
|
|
|
Some(transmute(notify_in_point_trampoline::<Self, F> as usize)), Box_::into_raw(f))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn connect_property_max_duration_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
connect_raw(self.as_ptr() as *mut _, b"notify::max-duration\0".as_ptr() as *const _,
|
2019-01-29 13:53:44 +00:00
|
|
|
Some(transmute(notify_max_duration_trampoline::<Self, F> as usize)), Box_::into_raw(f))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn connect_property_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
connect_raw(self.as_ptr() as *mut _, b"notify::name\0".as_ptr() as *const _,
|
2019-01-29 13:53:44 +00:00
|
|
|
Some(transmute(notify_name_trampoline::<Self, F> as usize)), Box_::into_raw(f))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn connect_property_parent_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
connect_raw(self.as_ptr() as *mut _, b"notify::parent\0".as_ptr() as *const _,
|
2019-01-29 13:53:44 +00:00
|
|
|
Some(transmute(notify_parent_trampoline::<Self, F> as usize)), Box_::into_raw(f))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn connect_property_priority_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
connect_raw(self.as_ptr() as *mut _, b"notify::priority\0".as_ptr() as *const _,
|
2019-01-29 13:53:44 +00:00
|
|
|
Some(transmute(notify_priority_trampoline::<Self, F> as usize)), Box_::into_raw(f))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn connect_property_serialize_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
connect_raw(self.as_ptr() as *mut _, b"notify::serialize\0".as_ptr() as *const _,
|
2019-01-29 13:53:44 +00:00
|
|
|
Some(transmute(notify_serialize_trampoline::<Self, F> as usize)), Box_::into_raw(f))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn connect_property_start_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
connect_raw(self.as_ptr() as *mut _, b"notify::start\0".as_ptr() as *const _,
|
2019-01-29 13:53:44 +00:00
|
|
|
Some(transmute(notify_start_trampoline::<Self, F> as usize)), Box_::into_raw(f))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn connect_property_timeline_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
|
|
|
|
unsafe {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: Box_<F> = Box_::new(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
connect_raw(self.as_ptr() as *mut _, b"notify::timeline\0".as_ptr() as *const _,
|
2019-01-29 13:53:44 +00:00
|
|
|
Some(transmute(notify_timeline_trampoline::<Self, F> as usize)), Box_::into_raw(f))
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
unsafe extern "C" fn notify_duration_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
2018-10-31 16:10:30 +00:00
|
|
|
where P: IsA<TimelineElement> {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: &F = transmute(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
f(&TimelineElement::from_glib_borrow(this).unsafe_cast())
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
unsafe extern "C" fn notify_in_point_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
2018-10-31 16:10:30 +00:00
|
|
|
where P: IsA<TimelineElement> {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: &F = transmute(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
f(&TimelineElement::from_glib_borrow(this).unsafe_cast())
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
unsafe extern "C" fn notify_max_duration_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
2018-10-31 16:10:30 +00:00
|
|
|
where P: IsA<TimelineElement> {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: &F = transmute(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
f(&TimelineElement::from_glib_borrow(this).unsafe_cast())
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
unsafe extern "C" fn notify_name_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
2018-10-31 16:10:30 +00:00
|
|
|
where P: IsA<TimelineElement> {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: &F = transmute(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
f(&TimelineElement::from_glib_borrow(this).unsafe_cast())
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
unsafe extern "C" fn notify_parent_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
2018-10-31 16:10:30 +00:00
|
|
|
where P: IsA<TimelineElement> {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: &F = transmute(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
f(&TimelineElement::from_glib_borrow(this).unsafe_cast())
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
unsafe extern "C" fn notify_priority_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
2018-10-31 16:10:30 +00:00
|
|
|
where P: IsA<TimelineElement> {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: &F = transmute(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
f(&TimelineElement::from_glib_borrow(this).unsafe_cast())
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
unsafe extern "C" fn notify_serialize_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
2018-10-31 16:10:30 +00:00
|
|
|
where P: IsA<TimelineElement> {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: &F = transmute(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
f(&TimelineElement::from_glib_borrow(this).unsafe_cast())
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
unsafe extern "C" fn notify_start_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
2018-10-31 16:10:30 +00:00
|
|
|
where P: IsA<TimelineElement> {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: &F = transmute(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
f(&TimelineElement::from_glib_borrow(this).unsafe_cast())
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
|
2019-01-29 13:53:44 +00:00
|
|
|
unsafe extern "C" fn notify_timeline_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GESTimelineElement, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
|
2018-10-31 16:10:30 +00:00
|
|
|
where P: IsA<TimelineElement> {
|
2019-01-29 13:53:44 +00:00
|
|
|
let f: &F = transmute(f);
|
2019-01-16 11:32:39 +00:00
|
|
|
f(&TimelineElement::from_glib_borrow(this).unsafe_cast())
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|