Struct ux::FadeEffect[][src]

pub struct FadeEffect { /* fields omitted */ }

Implementations

impl FadeEffect[src]

pub fn new() -> FadeEffect[src]

Trait Implementations

impl AsRef<ActorMeta> for FadeEffect[src]

impl AsRef<Effect> for FadeEffect[src]

impl AsRef<FadeEffect> for FadeEffect[src]

impl AsRef<OffscreenEffect> for FadeEffect[src]

impl Clone for FadeEffect[src]

impl Debug for FadeEffect[src]

impl Default for FadeEffect[src]

impl Display for FadeEffect[src]

impl Is<ActorMeta> for FadeEffect[src]

impl Is<Effect> for FadeEffect[src]

impl Is<FadeEffect> for FadeEffect[src]

impl Is<OffscreenEffect> for FadeEffect[src]

impl Object for FadeEffect[src]

Auto Trait Implementations

Blanket Implementations

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<T> Construction<T> for T where
    T: Default + Clone
[src]

impl<O> FadeEffectExt for O where
    O: Is<FadeEffect>, 
[src]

pub fn get_border(&self) -> (u32, u32, u32, u32)[src]

get_border: @effect: A #FadeEffect @top: (out) (allow-none): The upper border, in pixels @right: (out) (allow-none): The right border, in pixels @bottom: (out) (allow-none): The lower border, in pixels @left: (out) (allow-none): The left border, in pixels

Retrieves the border values for @effect.

pub fn get_bounds(&self) -> (i32, i32, u32, u32)[src]

get_bounds: @effect: A #FadeEffect @x: (out) (allow-none): The x value of the effect bounds, in pixels @y: (out) (allow-none): The y value of the effect bounds, in pixels @width: (out) (allow-none): The width of the effect bounds, in pixels, or %0 @height: (out) (allow-none): The height of the effect bounds, in pixels, or %0

Retrieves the bounding box of the effect.

pub fn get_color(&self) -> Color<f64>[src]

get_color: @effect: A #FadeEffect @color: (out): A #Color to store the color in

Retrieves the color used for the fade effect.

pub fn set_border(&self, top: u32, right: u32, bottom: u32, left: u32)[src]

set_border: @effect: A #FadeEffect @top: The upper border, in pixels @right: The right border, in pixels @bottom: The lower border, in pixels @left: The left border, in pixels

Sets the border to be used for the fading effect. This is the number of pixels on each side of the effect that should be used to fade.

pub fn set_bounds(&self, x: i32, y: i32, width: u32, height: u32)[src]

set_bounds: @effect: A #FadeEffect @x: The x value of the effect bounds, in pixels @y: The y value of the effect bounds, in pixels @width: The width of the effect bounds, in pixels, or %0 @height: The height of the effect bounds, in pixels, or %0

Sets the bounding box of the effect. The effect will essentially treat this box as a clipping rectangle. Setting width or height to %0 will use the width or height of the #Actor the effect is attached to.

The effect border will apply to the bounds, and not to the un-altered rectangle, so an effect with an %x of %5 and a %left-border of %5 will have a gap of 5 blank pixels to the left, with a fade length of 5 pixels.

pub fn set_color(&self, color: &Color<f64>)[src]

set_color: @effect: A #FadeEffect @color: A #Color

Sets the color of the fade effect. The effect will fade out towards the set border to this color.

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?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>,