Skip to main content

BorderImageSlice

Type Alias BorderImageSlice 

Source
pub type BorderImageSlice = GenericBorderImageSlice<NonNegativeNumberOrPercentage>;
Expand description

A computed value for the border-image-slice property.

Aliased Type§

#[repr(C)]
pub struct BorderImageSlice { pub offsets: Rect<NonNegative<NumberOrPercentage>>, pub fill: bool, }

Fields§

§offsets: Rect<NonNegative<NumberOrPercentage>>

The offsets.

§fill: bool

Whether to fill the middle part.

Implementations§

Source§

impl BorderImageSlice

Source

pub fn hundred_percent() -> Self

Returns the 100% value.

Trait Implementations§

Source§

impl ToTyped for BorderImageSlice

Source§

fn to_typed(&self, _dest: &mut ThinVec<TypedValue>) -> Result<(), ()>

Attempt to convert self into one or more TypedValue items. Read more
Source§

fn to_typed_value(&self) -> Option<TypedValue>

Attempt to convert self into a TypedValue. Read more
Source§

fn to_numeric_value(&self) -> Option<NumericValue>

Attempt to convert self into a NumericValue. Read more
Source§

fn to_typed_value_list(&self) -> Option<TypedValueList>

Attempt to convert self into a TypedValueList. Read more