pub trait LayerShellHandler: Sized {
// Required methods
fn closed(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
layer: &LayerSurface,
);
fn configure(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
layer: &LayerSurface,
configure: LayerSurfaceConfigure,
serial: u32,
);
}
Expand description
Handler for operations on a LayerSurface
Required Methods§
Sourcefn closed(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
layer: &LayerSurface,
)
fn closed( &mut self, conn: &Connection, qh: &QueueHandle<Self>, layer: &LayerSurface, )
The layer surface has been closed.
When this requested is called, the layer surface is no longer shown and all handles of the LayerSurface
should be dropped.
Sourcefn configure(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
layer: &LayerSurface,
configure: LayerSurfaceConfigure,
serial: u32,
)
fn configure( &mut self, conn: &Connection, qh: &QueueHandle<Self>, layer: &LayerSurface, configure: LayerSurfaceConfigure, serial: u32, )
Apply a suggested surface change.
When this function is called, the compositor is requesting the layer surfaces’s size or state to change.
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.