Trait libhelium::prelude::SpringParamsExt

source ·
pub trait SpringParamsExt: IsA<SpringParams> + Sealed + 'static {
    // Provided methods
    fn damping(&self) -> f64 { ... }
    fn set_damping(&self, value: f64) { ... }
    fn damping_ratio(&self) -> f64 { ... }
    fn set_damping_ratio(&self, value: f64) { ... }
    fn mass(&self) -> f64 { ... }
    fn set_mass(&self, value: f64) { ... }
    fn stiffness(&self) -> f64 { ... }
    fn set_stiffness(&self, value: f64) { ... }
    fn connect_damping_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_damping_ratio_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_mass_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_stiffness_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all SpringParams methods.

§Implementors

SpringParams

Provided Methods§

source

fn damping(&self) -> f64

source

fn set_damping(&self, value: f64)

source

fn damping_ratio(&self) -> f64

source

fn set_damping_ratio(&self, value: f64)

source

fn mass(&self) -> f64

source

fn set_mass(&self, value: f64)

source

fn stiffness(&self) -> f64

source

fn set_stiffness(&self, value: f64)

source

fn connect_damping_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_damping_ratio_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_mass_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId

source

fn connect_stiffness_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§