Struct clutter::BrightnessContrastEffect[][src]

pub struct BrightnessContrastEffect(_, _);

Implementations

impl BrightnessContrastEffect[src]

pub fn new() -> BrightnessContrastEffect[src]

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

Returns

the newly created BrightnessContrastEffect or None. Use gobject::ObjectExt::unref when done.

pub fn get_brightness(&self) -> (f32, f32, f32)[src]

Retrieves the change in brightness used by self.

red

return location for red component of the change in brightness

green

return location for green component of the change in brightness

blue

return location for blue component of the change in brightness

pub fn get_contrast(&self) -> (f32, f32, f32)[src]

Retrieves the contrast value used by self.

red

return location for red component of the change in contrast

green

return location for green component of the change in contrast

blue

return location for blue component of the change in contrast

pub fn set_brightness(&self, brightness: f32)[src]

The range of brightness is [-1.0, 1.0], where 0.0 designates no change; a value below 0.0 indicates a decrease in brightness; and a value above 0.0 indicates an increase of brightness.

brightness

the brightness change for all three components (r, g, b)

pub fn set_brightness_full(&self, red: f32, green: f32, blue: f32)[src]

The range for each component is [-1.0, 1.0] where 0.0 designates no change, values below 0.0 mean a decrease in brightness, and values above indicate an increase.

red

red component of the change in brightness

green

green component of the change in brightness

blue

blue component of the change in brightness

pub fn set_contrast(&self, contrast: f32)[src]

The range for contrast is [-1.0, 1.0], where 0.0 designates no change; a value below 0.0 indicates a decrease in contrast; and a value above 0.0 indicates an increase.

contrast

contrast change for all three channels

pub fn set_contrast_full(&self, red: f32, green: f32, blue: f32)[src]

The range for each component is [-1.0, 1.0] where 0.0 designates no change, values below 0.0 mean a decrease in contrast, and values above indicate an increase.

red

red component of the change in contrast

green

green component of the change in contrast

blue

blue component of the change in contrast

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

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

Trait Implementations

impl Clone for BrightnessContrastEffect[src]

impl Debug for BrightnessContrastEffect[src]

impl Default for BrightnessContrastEffect[src]

impl Display for BrightnessContrastEffect[src]

impl Eq for BrightnessContrastEffect[src]

impl Hash for BrightnessContrastEffect[src]

impl IsA<ActorMeta> for BrightnessContrastEffect[src]

impl IsA<Effect> for BrightnessContrastEffect[src]

impl IsA<InitiallyUnowned> for BrightnessContrastEffect[src]

impl IsA<OffscreenEffect> for BrightnessContrastEffect[src]

impl Ord for BrightnessContrastEffect[src]

impl<T: ObjectType> PartialEq<T> for BrightnessContrastEffect[src]

impl<T: ObjectType> PartialOrd<T> for BrightnessContrastEffect[src]

impl StaticType for BrightnessContrastEffect[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<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

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

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

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

impl<T> ObjectExt for T where
    T: ObjectType
[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.