Struct wayland_protocols::wlr::unstable::gamma_control::v1::client::zwlr_gamma_control_v1::ZwlrGammaControlV1
source · pub struct ZwlrGammaControlV1(/* private fields */);
Implementations§
source§impl ZwlrGammaControlV1
impl ZwlrGammaControlV1
sourcepub fn set_gamma(&self, fd: RawFd)
pub fn set_gamma(&self, fd: RawFd)
set the gamma table
Set the gamma table. The file descriptor can be memory-mapped to provide the raw gamma table, which contains successive gamma ramps for the red, green and blue channels. Each gamma ramp is an array of 16-byte unsigned integers which has the same length as the gamma size.
The file descriptor data must have the same length as three times the gamma size.
Trait Implementations§
source§impl AsRef<Proxy<ZwlrGammaControlV1>> for ZwlrGammaControlV1
impl AsRef<Proxy<ZwlrGammaControlV1>> for ZwlrGammaControlV1
source§impl Clone for ZwlrGammaControlV1
impl Clone for ZwlrGammaControlV1
source§fn clone(&self) -> ZwlrGammaControlV1
fn clone(&self) -> ZwlrGammaControlV1
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 ZwlrGammaControlV1
impl Debug for ZwlrGammaControlV1
source§impl From<Proxy<ZwlrGammaControlV1>> for ZwlrGammaControlV1
impl From<Proxy<ZwlrGammaControlV1>> for ZwlrGammaControlV1
source§impl From<ZwlrGammaControlV1> for Proxy<ZwlrGammaControlV1>
impl From<ZwlrGammaControlV1> for Proxy<ZwlrGammaControlV1>
source§fn from(value: ZwlrGammaControlV1) -> Self
fn from(value: ZwlrGammaControlV1) -> Self
Converts to this type from the input type.
source§impl Interface for ZwlrGammaControlV1
impl Interface for ZwlrGammaControlV1
source§fn c_interface() -> *const wl_interface
fn c_interface() -> *const wl_interface
Pointer to the C representation of this interface
source§impl PartialEq for ZwlrGammaControlV1
impl PartialEq for ZwlrGammaControlV1
source§fn eq(&self, other: &ZwlrGammaControlV1) -> bool
fn eq(&self, other: &ZwlrGammaControlV1) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ZwlrGammaControlV1
impl StructuralEq for ZwlrGammaControlV1
impl StructuralPartialEq for ZwlrGammaControlV1
Auto Trait Implementations§
impl !RefUnwindSafe for ZwlrGammaControlV1
impl Send for ZwlrGammaControlV1
impl Sync for ZwlrGammaControlV1
impl Unpin for ZwlrGammaControlV1
impl !UnwindSafe for ZwlrGammaControlV1
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