pub struct RiverLayoutManagerV3 { /* private fields */ }
Expand description
manage river layout objects
A global factory for river_layout_v3 objects.
See Event
for the list of possible events.
Implementations§
Source§impl RiverLayoutManagerV3
impl RiverLayoutManagerV3
Sourcepub fn destroy<D>(self, conn: &mut Connection<D>)
pub fn destroy<D>(self, conn: &mut Connection<D>)
destroy the river_layout_manager object
This request indicates that the client will not use the river_layout_manager object any more. Objects that have been created through this instance are not affected.
Since version 1.
Sourcepub fn get_layout<D>(
self,
conn: &mut Connection<D>,
output: WlOutput,
namespace: CString,
) -> RiverLayoutV3
pub fn get_layout<D>( self, conn: &mut Connection<D>, output: WlOutput, namespace: CString, ) -> RiverLayoutV3
create a river_layout_v3 object
This creates a new river_layout_v3 object for the given wl_output.
All layout related communication is done through this interface.
The namespace is used by the compositor to decide which river_layout_v3 object will receive layout demands for the output.
The namespace is required to be be unique per-output. Furthermore, two separate clients may not share a namespace on separate outputs. If these conditions are not upheld, the the namespace_in_use event will be sent directly after creation of the river_layout_v3 object.
Since version 1.
Sourcepub fn get_layout_with_cb<D>(
self,
conn: &mut Connection<D>,
output: WlOutput,
namespace: CString,
cb: impl FnMut(EventCtx<'_, D, RiverLayoutV3>) + Send + 'static,
) -> RiverLayoutV3
pub fn get_layout_with_cb<D>( self, conn: &mut Connection<D>, output: WlOutput, namespace: CString, cb: impl FnMut(EventCtx<'_, D, RiverLayoutV3>) + Send + 'static, ) -> RiverLayoutV3
create a river_layout_v3 object
This creates a new river_layout_v3 object for the given wl_output.
All layout related communication is done through this interface.
The namespace is used by the compositor to decide which river_layout_v3 object will receive layout demands for the output.
The namespace is required to be be unique per-output. Furthermore, two separate clients may not share a namespace on separate outputs. If these conditions are not upheld, the the namespace_in_use event will be sent directly after creation of the river_layout_v3 object.
Since version 1.
Trait Implementations§
Source§impl Borrow<ObjectId> for RiverLayoutManagerV3
impl Borrow<ObjectId> for RiverLayoutManagerV3
Source§impl Clone for RiverLayoutManagerV3
impl Clone for RiverLayoutManagerV3
Source§fn clone(&self) -> RiverLayoutManagerV3
fn clone(&self) -> RiverLayoutManagerV3
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more