pub enum Shadow {
None,
Dim {
style: String,
},
Drop {
style: String,
offset_x: i16,
offset_y: i16,
},
}Expand description
Visual effect applied to lower layers to make stacking obvious.
Variants§
None
No shadow effect.
Dim
Dim the entire screen behind this layer except for the layer’s own
opaque content. The style string is an ANSI prefix such as
"\x1b[2m" for faint text.
Drop
Render a drop-shadow offset from this layer’s opaque bounding box.
Trait Implementations§
impl StructuralPartialEq for Shadow
Auto Trait Implementations§
impl Freeze for Shadow
impl RefUnwindSafe for Shadow
impl Send for Shadow
impl Sync for Shadow
impl Unpin for Shadow
impl UnsafeUnpin for Shadow
impl UnwindSafe for Shadow
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