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§
fn output_state(&mut self) -> &mut OutputState
sourcefn new_output(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
output: WlOutput,
)
fn new_output( &mut self, conn: &Connection, qh: &QueueHandle<Self>, output: WlOutput, )
A new output has been advertised.
sourcefn update_output(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
output: WlOutput,
)
fn update_output( &mut self, conn: &Connection, qh: &QueueHandle<Self>, output: WlOutput, )
An existing output has changed.
sourcefn output_destroyed(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
output: WlOutput,
)
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.