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 BaseEffect;
|
|
|
|
use Extractable;
|
|
|
|
use TimelineElement;
|
|
|
|
use TrackElement;
|
|
|
|
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;
|
|
|
|
use glib::object::IsA;
|
|
|
|
use glib::translate::*;
|
|
|
|
use gobject_ffi;
|
|
|
|
|
|
|
|
glib_wrapper! {
|
2019-01-16 11:32:39 +00:00
|
|
|
pub struct Effect(Object<ffi::GESEffect, ffi::GESEffectClass, EffectClass>) @extends BaseEffect, TrackElement, TimelineElement, @implements Extractable;
|
2018-10-31 16:10:30 +00:00
|
|
|
|
|
|
|
match fn {
|
|
|
|
get_type => || ffi::ges_effect_get_type(),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Effect {
|
|
|
|
pub fn new(bin_description: &str) -> Effect {
|
|
|
|
assert_initialized_main_thread!();
|
|
|
|
unsafe {
|
|
|
|
from_glib_none(ffi::ges_effect_new(bin_description.to_glib_none().0))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-16 11:32:39 +00:00
|
|
|
pub const NONE_EFFECT: Option<&Effect> = None;
|
|
|
|
|
2018-12-08 09:05:20 +00:00
|
|
|
pub trait EffectExt: 'static {
|
2018-12-09 16:06:12 +00:00
|
|
|
fn get_property_bin_description(&self) -> Option<GString>;
|
2018-10-31 16:10:30 +00:00
|
|
|
}
|
|
|
|
|
2018-12-08 09:05:20 +00:00
|
|
|
impl<O: IsA<Effect>> EffectExt for O {
|
2018-12-09 16:06:12 +00:00
|
|
|
fn get_property_bin_description(&self) -> Option<GString> {
|
2018-10-31 16:10:30 +00:00
|
|
|
unsafe {
|
2018-12-09 16:06:12 +00:00
|
|
|
let mut value = Value::from_type(<GString 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"bin-description\0".as_ptr() as *const _, value.to_glib_none_mut().0);
|
2018-10-31 16:10:30 +00:00
|
|
|
value.get()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|