[][src]Trait wayland_protocols::wlr::unstable::gamma_control::v1::client::zwlr_gamma_control_v1::EventHandler

pub trait EventHandler {
    fn gamma_size(&mut self, object: ZwlrGammaControlV1, size: u32) { ... }
fn failed(&mut self, object: ZwlrGammaControlV1) { ... } }

An interface for handling events.

Provided methods

fn gamma_size(&mut self, object: ZwlrGammaControlV1, 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.

fn failed(&mut self, object: ZwlrGammaControlV1)

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 transfered gamma control to another client

Upon receiving this event, the client should destroy this object.

Loading content...

Implementors

Loading content...