Struct ux::DesaturateEffect[][src]

pub struct DesaturateEffect(_, _);

Implementations

impl DesaturateEffect[src]

pub fn new(factor: f64) -> DesaturateEffect[src]

Creates a new DesaturateEffect to be used with ActorExt::add_effect

factor

the desaturation factor, between 0.0 and 1.0

Returns

the newly created DesaturateEffect or None

pub fn get_factor(&self) -> f64[src]

Retrieves the desaturation factor of self

Returns

the desaturation factor

pub fn set_factor(&self, factor: f64)[src]

Sets the desaturation factor for self, with 0.0 being “do not desaturate” and 1.0 being “fully desaturate”

factor

the desaturation factor, between 0.0 and 1.0

pub fn connect_property_factor_notify<F>(&self, f: F) -> SignalHandlerId where
    F: 'static + Fn(&DesaturateEffect), 
[src]

Trait Implementations

impl Clone for DesaturateEffect[src]

impl Debug for DesaturateEffect[src]

impl Display for DesaturateEffect[src]

impl Eq for DesaturateEffect[src]

impl Hash for DesaturateEffect[src]

impl IsA<ActorMeta> for DesaturateEffect[src]

impl IsA<Effect> for DesaturateEffect[src]

impl IsA<InitiallyUnowned> for DesaturateEffect[src]

impl IsA<OffscreenEffect> for DesaturateEffect[src]

impl Ord for DesaturateEffect[src]

impl<T> PartialEq<T> for DesaturateEffect where
    T: ObjectType
[src]

impl<T> PartialOrd<T> for DesaturateEffect where
    T: ObjectType
[src]

impl StaticType for DesaturateEffect[src]

Auto Trait Implementations

Blanket Implementations

impl<O> ActorMetaExt for O where
    O: IsA<ActorMeta>, 
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<O> EffectExt for O where
    O: IsA<Effect>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Fr, To> IntoColor<To> for Fr where
    To: FromColor<Fr>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<O> OffscreenEffectExt for O where
    O: IsA<OffscreenEffect>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,