Struct rich_sdl2_rust::window::GammaParam
source · pub struct GammaParam {
pub red: Option<GammaRamp>,
pub green: Option<GammaRamp>,
pub blue: Option<GammaRamp>,
}
Expand description
A gamma ramps for setting to a window.
Fields§
§red: Option<GammaRamp>
A gamma ramp of red component. It will not set if None
.
green: Option<GammaRamp>
A gamma ramp of green component. It will not set if None
.
blue: Option<GammaRamp>
A gamma ramp of blue component. It will not set if None
.
Trait Implementations§
source§impl Clone for GammaParam
impl Clone for GammaParam
source§fn clone(&self) -> GammaParam
fn clone(&self) -> GammaParam
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GammaParam
impl Debug for GammaParam
source§impl Default for GammaParam
impl Default for GammaParam
source§fn default() -> GammaParam
fn default() -> GammaParam
Returns the “default value” for a type. Read more
source§impl PartialEq for GammaParam
impl PartialEq for GammaParam
source§fn eq(&self, other: &GammaParam) -> bool
fn eq(&self, other: &GammaParam) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for GammaParam
impl StructuralPartialEq for GammaParam
Auto Trait Implementations§
impl RefUnwindSafe for GammaParam
impl Send for GammaParam
impl Sync for GammaParam
impl Unpin for GammaParam
impl UnwindSafe for GammaParam
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more