#[repr(C)]pub struct Shadow {Show 13 fields
pub order: DrawOrder,
pub blur_radius: ScaledPixels,
pub bounds: Bounds<ScaledPixels>,
pub corner_radii: Corners<ScaledPixels>,
pub content_mask: ContentMask<ScaledPixels>,
pub color: Hsla,
pub shape_bounds: Bounds<ScaledPixels>,
pub shape_corner_radii: Corners<ScaledPixels>,
pub inset: u32,
pub pad: u32,
pub transformation: TransformationMatrix,
pub element_bounds: Bounds<ScaledPixels>,
pub corner_shapes: CornerShapes,
}Fields§
§order: DrawOrder§blur_radius: ScaledPixels§bounds: Bounds<ScaledPixels>§corner_radii: Corners<ScaledPixels>§content_mask: ContentMask<ScaledPixels>§color: Hsla§shape_bounds: Bounds<ScaledPixels>§shape_corner_radii: Corners<ScaledPixels>§inset: u32vue-native fork: SHADOW_OUTSIDE_BOX, SHADOW_INSET or
SHADOW_UNDER_BOX (gpui’s window.rs).
pad: u32§transformation: TransformationMatrixSee Quad::transformation. A shadow is part of the element’s own
painted content, so a transform: rotate() turns the shadow with the
box — which is what a browser does.
element_bounds: Bounds<ScaledPixels>vue-native fork: the element’s border box, with corner_radii. An
outer shadow is cut out of it; an inset one is clipped to it.
corner_shapes: CornerShapesvue-native fork: CSS corner-shape of the element and of the shape, whose insets
are the shape’s alone.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Shadow
impl Freeze for Shadow
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more