Struct comfy_wgpu::epaint::Shadow
pub struct Shadow {
pub extrusion: f32,
pub color: Color32,
}Expand description
The color and fuzziness of a fuzzy shape. Can be used for a rectangular shadow with a soft penumbra.
Fields§
§extrusion: f32The shadow extends this much outside the rect. The size of the fuzzy penumbra.
color: Color32Color of the opaque center of the shadow.
Implementations§
§impl Shadow
impl Shadow
pub const NONE: Shadow = _
pub fn small_dark() -> Shadow
pub fn small_dark() -> Shadow
Tooltips, menus, …, for dark mode.
pub fn small_light() -> Shadow
pub fn small_light() -> Shadow
Tooltips, menus, …, for light mode.
pub fn tessellate(&self, rect: Rect, rounding: impl Into<Rounding>) -> Mesh
Trait Implementations§
impl Copy for Shadow
impl StructuralPartialEq for Shadow
Auto Trait Implementations§
impl RefUnwindSafe for Shadow
impl Send for Shadow
impl Sync for Shadow
impl Unpin 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