pub struct ZwlrGammaControlV1 { /* private fields */ }
server
only.Expand description
adjust gamma tables for an output
This interface allows a client to adjust gamma tables for a particular output.
The client will receive the gamma size, and will then be able to set gamma tables. At any time the compositor can send a failed event indicating that this object is no longer valid.
There can only be at most one gamma control object per output, which has exclusive access to this particular output. When the gamma control object is destroyed, the gamma table is restored to its original value.
See also the Request enum for this interface.
Implementations§
source§impl ZwlrGammaControlV1
impl ZwlrGammaControlV1
sourcepub fn gamma_size(&self, size: u32)
pub fn gamma_size(&self, size: u32)
size of gamma ramps
Advertise the size of each gamma ramp.
This event is sent immediately when the gamma control object is created.
sourcepub fn failed(&self)
pub fn failed(&self)
object no longer valid
This event indicates that the gamma control is no longer valid. This can happen for a number of reasons, including:
- The output doesn’t support gamma tables
- Setting the gamma tables failed
- Another client already has exclusive gamma control for this output
- The compositor has transferred gamma control to another client
Upon receiving this event, the client should destroy this object.
Trait Implementations§
source§impl Borrow<ObjectId> for ZwlrGammaControlV1
impl Borrow<ObjectId> for ZwlrGammaControlV1
source§impl Clone for ZwlrGammaControlV1
impl Clone for ZwlrGammaControlV1
source§fn clone(&self) -> ZwlrGammaControlV1
fn clone(&self) -> ZwlrGammaControlV1
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ZwlrGammaControlV1
impl Debug for ZwlrGammaControlV1
source§impl Hash for ZwlrGammaControlV1
impl Hash for ZwlrGammaControlV1
source§impl PartialEq<Weak<ZwlrGammaControlV1>> for ZwlrGammaControlV1
impl PartialEq<Weak<ZwlrGammaControlV1>> for ZwlrGammaControlV1
source§impl PartialEq for ZwlrGammaControlV1
impl PartialEq for ZwlrGammaControlV1
source§impl Resource for ZwlrGammaControlV1
impl Resource for ZwlrGammaControlV1
source§fn object_data(&self) -> Option<&Arc<dyn Any + Send + Sync>>
fn object_data(&self) -> Option<&Arc<dyn Any + Send + Sync>>
source§fn handle(&self) -> &WeakHandle
fn handle(&self) -> &WeakHandle
source§fn from_id(conn: &DisplayHandle, id: ObjectId) -> Result<Self, InvalidId>
fn from_id(conn: &DisplayHandle, id: ObjectId) -> Result<Self, InvalidId>
source§fn send_event(&self, evt: Self::Event<'_>) -> Result<(), InvalidId>
fn send_event(&self, evt: Self::Event<'_>) -> Result<(), InvalidId>
source§fn parse_request(
conn: &DisplayHandle,
msg: Message<ObjectId, OwnedFd>,
) -> Result<(Self, Self::Request), DispatchError>
fn parse_request( conn: &DisplayHandle, msg: Message<ObjectId, OwnedFd>, ) -> Result<(Self, Self::Request), DispatchError>
source§fn write_event<'a>(
&self,
conn: &DisplayHandle,
msg: Self::Event<'a>,
) -> Result<Message<ObjectId, BorrowedFd<'a>>, InvalidId>
fn write_event<'a>( &self, conn: &DisplayHandle, msg: Self::Event<'a>, ) -> Result<Message<ObjectId, BorrowedFd<'a>>, InvalidId>
source§fn is_alive(&self) -> bool
fn is_alive(&self) -> bool
impl Eq for ZwlrGammaControlV1
Auto Trait Implementations§
impl Freeze for ZwlrGammaControlV1
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.