Trait rich_sdl2_rust::window::BrightnessExt
source · 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§
sourcefn brightness(&self) -> Brightness
fn brightness(&self) -> Brightness
Returns the brightness of the window.