Trait smithay_client_toolkit::output::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.

Object Safety§

This trait is not object safe.

Implementors§