pub trait GammaExt {
    // Required methods
    fn gamma(&self) -> Result<Gamma>;
    fn set_gamma(&self, gamma: GammaParam) -> Result<()>;
}
Expand description

An extension for Window to get/set the gamma ramp.

Required Methods§

source

fn gamma(&self) -> Result<Gamma>

Returns the gamma ramps of the window.

§Errors

Returns Err if failed to allocate a gamma ramp, or unsupported.

source

fn set_gamma(&self, gamma: GammaParam) -> Result<()>

Sets the gamma ramps of the window.

§Errors

Returns Err if failed to allocate a gamma ramp, or unsupported.

Implementors§