pub struct LayerShadowGeometry {
pub ambient: Option<(ShadowRRect, Color)>,
pub spot: Option<(ShadowRRect, Color)>,
}Expand description
The shadow passes that one layer casts.
Fields§
§ambient: Option<(ShadowRRect, Color)>The ambient shadow and the color it draws with, or None when the layer casts none.
spot: Option<(ShadowRRect, Color)>The spot shadow and the color it draws with, or None when the layer casts none.
Implementations§
Source§impl LayerShadowGeometry
impl LayerShadowGeometry
Sourcepub fn passes(&self) -> impl Iterator<Item = (ShadowRRect, Color)>
pub fn passes(&self) -> impl Iterator<Item = (ShadowRRect, Color)>
Each pass with the color it draws, ambient first.
Trait Implementations§
Source§impl Clone for LayerShadowGeometry
impl Clone for LayerShadowGeometry
impl Copy for LayerShadowGeometry
Source§impl Debug for LayerShadowGeometry
impl Debug for LayerShadowGeometry
Source§impl Default for LayerShadowGeometry
impl Default for LayerShadowGeometry
Source§impl PartialEq for LayerShadowGeometry
impl PartialEq for LayerShadowGeometry
impl StructuralPartialEq for LayerShadowGeometry
Auto Trait Implementations§
impl Freeze for LayerShadowGeometry
impl RefUnwindSafe for LayerShadowGeometry
impl Send for LayerShadowGeometry
impl Sync for LayerShadowGeometry
impl Unpin for LayerShadowGeometry
impl UnsafeUnpin for LayerShadowGeometry
impl UnwindSafe for LayerShadowGeometry
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