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.
Object Safety§
This trait is not object safe.