use super::*;
#[derive(Clone)]
pub struct Variable(pub(crate) IUIAnimationVariable2);
impl Variable {
pub fn value(&self) -> Result<f64> {
unsafe { self.0.GetValue() }
}
pub fn copy_curve(&self, animation: &impl Interface) -> Result<()> {
unsafe {
let dcomp: IDCompositionAnimation = animation.cast()?;
self.0.GetCurve(&dcomp).ok()
}
}
}