pub struct LayerSurfaceConfig {
pub layer: LayerShellLayer,
pub anchor: u32,
pub exclusive_zone: i32,
pub margin: (i32, i32, i32, i32),
pub width: u32,
pub height: u32,
pub keyboard_interactivity: bool,
}Expand description
Layer-shell surface configuration.
Fields§
§layer: LayerShellLayerThe Wayland surface layer
anchor: u32Anchor edges (bitmask of LayerShellAnchor values)
exclusive_zone: i32Exclusive zone: positive = reserve space, 0 = no reservation, -1 = extend to edge
margin: (i32, i32, i32, i32)Margin from anchored edges (top, right, bottom, left)
width: u32Desired width (0 = use anchor width)
height: u32Desired height (0 = use anchor height)
keyboard_interactivity: boolKeyboard interactivity mode
Implementations§
Source§impl LayerSurfaceConfig
impl LayerSurfaceConfig
Sourcepub fn bottom_panel(screen_width: u32, height: u32) -> Self
pub fn bottom_panel(screen_width: u32, height: u32) -> Self
Create a configuration for a bottom-anchored panel.
Trait Implementations§
Source§impl Clone for LayerSurfaceConfig
impl Clone for LayerSurfaceConfig
Source§fn clone(&self) -> LayerSurfaceConfig
fn clone(&self) -> LayerSurfaceConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LayerSurfaceConfig
impl RefUnwindSafe for LayerSurfaceConfig
impl Send for LayerSurfaceConfig
impl Sync for LayerSurfaceConfig
impl Unpin for LayerSurfaceConfig
impl UnwindSafe for LayerSurfaceConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)