pub type SimpleShadow = SimpleShadow<Option<Color>, Length, Option<NonNegativeLength>>;
Expand description
A specified value for the drop-shadow()
filter.
Aliased Type§
struct SimpleShadow {
pub color: Option<Color>,
pub horizontal: Length,
pub vertical: Length,
pub blur: Option<NonNegative<Length>>,
}
Fields§
§color: Option<Color>
Color.
horizontal: Length
Horizontal radius.
vertical: Length
Vertical radius.
blur: Option<NonNegative<Length>>
Blur radius.
Trait Implementations§
source§impl Parse for SimpleShadow
impl Parse for SimpleShadow
source§fn parse<'i, 't>(
context: &ParserContext<'_>,
input: &mut Parser<'i, 't>,
) -> Result<Self, ParseError<'i>>
fn parse<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more
source§impl ToComputedValue for SimpleShadow
impl ToComputedValue for SimpleShadow
§type ComputedValue = GenericSimpleShadow<GenericColor<Percentage>, CSSPixelLength, NonNegative<CSSPixelLength>>
type ComputedValue = GenericSimpleShadow<GenericColor<Percentage>, CSSPixelLength, NonNegative<CSSPixelLength>>
The computed value type we’re going to be converted to.
source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the
Context
.source§fn from_computed_value(computed: &Self::ComputedValue) -> Self
fn from_computed_value(computed: &Self::ComputedValue) -> Self
Convert a computed value to specified value form. Read more