Trait ux::FadeEffectExt[][src]

pub trait FadeEffectExt: 'static {
Show methods pub fn get_border(&self) -> (u32, u32, u32, u32);
pub fn get_bounds(&self) -> (i32, i32, u32, u32);
pub fn get_color(&self) -> Color<f64>;
pub fn set_border(&self, top: u32, right: u32, bottom: u32, left: u32);
pub fn set_bounds(&self, x: i32, y: i32, width: u32, height: u32);
pub fn set_color(&self, color: &Color<f64>);
pub fn get_property_border_bottom(&self) -> u32;
pub fn set_property_border_bottom(&self, border_bottom: u32);
pub fn get_property_border_left(&self) -> u32;
pub fn set_property_border_left(&self, border_left: u32);
pub fn get_property_border_right(&self) -> u32;
pub fn set_property_border_right(&self, border_right: u32);
pub fn get_property_border_top(&self) -> u32;
pub fn set_property_border_top(&self, border_top: u32);
pub fn get_property_bounds_height(&self) -> u32;
pub fn set_property_bounds_height(&self, bounds_height: u32);
pub fn get_property_bounds_width(&self) -> u32;
pub fn set_property_bounds_width(&self, bounds_width: u32);
pub fn get_property_bounds_x(&self) -> i32;
pub fn set_property_bounds_x(&self, bounds_x: i32);
pub fn get_property_bounds_y(&self) -> i32;
pub fn set_property_bounds_y(&self, bounds_y: i32);
pub fn get_property_freeze_update(&self) -> bool;
pub fn set_property_freeze_update(&self, freeze_update: bool);
pub fn connect_property_border_bottom_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_border_left_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_border_right_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_border_top_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_bounds_height_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_bounds_width_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_bounds_x_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_bounds_y_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_color_notify<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
pub fn connect_property_freeze_update_notify<F>(
        &self,
        f: F
    ) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
;
}

Required methods

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.

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

pub fn set_property_border_bottom(&self, border_bottom: u32)[src]

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

pub fn set_property_border_left(&self, border_left: u32)[src]

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

pub fn set_property_border_right(&self, border_right: u32)[src]

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

pub fn set_property_border_top(&self, border_top: u32)[src]

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

pub fn set_property_bounds_height(&self, bounds_height: u32)[src]

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

pub fn set_property_bounds_width(&self, bounds_width: u32)[src]

pub fn get_property_bounds_x(&self) -> i32[src]

pub fn set_property_bounds_x(&self, bounds_x: i32)[src]

pub fn get_property_bounds_y(&self) -> i32[src]

pub fn set_property_bounds_y(&self, bounds_y: i32)[src]

pub fn get_property_freeze_update(&self) -> bool[src]

pub fn set_property_freeze_update(&self, freeze_update: bool)[src]

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

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

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

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

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

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

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

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

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

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

Loading content...

Implementors

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.

Loading content...