1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from
// from gir-files (https://github.com/gtk-rs/gir-files.git)
// DO NOT EDIT
use crate::ffi;
use glib::{prelude::*, translate::*};
glib::wrapper! {
///
///
/// This is an Abstract Base Class, you cannot instantiate it.
///
/// # Implements
///
/// [`AnimationTargetExt`][trait@crate::prelude::AnimationTargetExt], [`trait@glib::ObjectExt`]
#[doc(alias = "HeAnimationTarget")]
pub struct AnimationTarget(Object<ffi::HeAnimationTarget, ffi::HeAnimationTargetClass>);
match fn {
type_ => || ffi::he_animation_target_get_type(),
}
}
impl AnimationTarget {
pub const NONE: Option<&'static AnimationTarget> = None;
}
mod sealed {
pub trait Sealed {}
impl<T: super::IsA<super::AnimationTarget>> Sealed for T {}
}
/// Trait containing all [`struct@AnimationTarget`] methods.
///
/// # Implementors
///
/// [`AnimationTarget`][struct@crate::AnimationTarget], [`CallbackAnimationTarget`][struct@crate::CallbackAnimationTarget], [`PropertyAnimationTarget`][struct@crate::PropertyAnimationTarget]
pub trait AnimationTargetExt: IsA<AnimationTarget> + sealed::Sealed + 'static {
#[doc(alias = "he_animation_target_set_value")]
fn set_value(&self, value: f64) {
unsafe {
ffi::he_animation_target_set_value(self.as_ref().to_glib_none().0, value);
}
}
}
impl<O: IsA<AnimationTarget>> AnimationTargetExt for O {}