pub trait GammaExt {
    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§

Returns the gamma ramps of the window.

Errors

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

Sets the gamma ramps of the window.

Errors

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

Implementors§