Trait OutputHandler

Source
pub trait OutputHandler: Sized {
    // Required methods
    fn output_state(&mut self) -> &mut OutputState;
    fn new_output(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        output: WlOutput,
    );
    fn update_output(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        output: WlOutput,
    );
    fn output_destroyed(
        &mut self,
        conn: &Connection,
        qh: &QueueHandle<Self>,
        output: WlOutput,
    );
}
Expand description

Simplified event handler for wl_output::WlOutput. See OutputState.

Required Methods§

Source

fn output_state(&mut self) -> &mut OutputState

Source

fn new_output( &mut self, conn: &Connection, qh: &QueueHandle<Self>, output: WlOutput, )

A new output has been advertised.

Source

fn update_output( &mut self, conn: &Connection, qh: &QueueHandle<Self>, output: WlOutput, )

An existing output has changed.

Source

fn output_destroyed( &mut self, conn: &Connection, qh: &QueueHandle<Self>, output: WlOutput, )

An output is no longer advertised.

The info passed to this function was the state of the output before destruction.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§