pub struct LayerConfig {
pub label: String,
pub bounds: Option<Rect>,
pub opacity: f32,
}Expand description
Layer creation parameters.
Fields§
§label: StringHuman-readable label for shortcuts.
bounds: Option<Rect>Screen bounds (None = fullscreen).
opacity: f32Initial opacity (0.0-1.0).
Implementations§
Source§impl LayerConfig
impl LayerConfig
Sourcepub fn fullscreen(label: impl Into<String>) -> Self
pub fn fullscreen(label: impl Into<String>) -> Self
Create a fullscreen layer configuration.
Sourcepub fn with_bounds(label: impl Into<String>, bounds: Rect) -> Self
pub fn with_bounds(label: impl Into<String>, bounds: Rect) -> Self
Create a layer with specific bounds.
Trait Implementations§
Source§impl Clone for LayerConfig
impl Clone for LayerConfig
Source§fn clone(&self) -> LayerConfig
fn clone(&self) -> LayerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§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 LayerConfig
impl RefUnwindSafe for LayerConfig
impl Send for LayerConfig
impl Sync for LayerConfig
impl Unpin for LayerConfig
impl UnsafeUnpin for LayerConfig
impl UnwindSafe for LayerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more