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.
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.