pub trait BrightnessExt {
    // Required methods
    fn brightness(&self) -> Brightness;
    fn set_brightness(&self, brightness: Brightness) -> Result<()>;
}
Expand description

An extension for Window to get/set the brightness.

Required Methods§

source

fn brightness(&self) -> Brightness

Returns the brightness of the window.

source

fn set_brightness(&self, brightness: Brightness) -> Result<()>

Sets the brightness of the Window.

§Errors

Returns Err if setting a brightness is unsupported.

Implementors§