FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BoxShadows

    struct · ferroui-base · v0.5.0

    struct BoxShadows
    

    Represents a collection of BoxShadows.

    View source

    Members

    new

    fn new(shadow: BoxShadow) -> Self
    

    Creates a collection containing a single shadow. A default shadow produces an empty collection.

    Source

    with_rest

    fn with_rest(first: BoxShadow, rest: &[BoxShadow]) -> Self
    

    Creates a collection containing first followed by rest.

    Source

    count

    fn count(self: &Self) -> usize
    

    The number of shadows in the collection.

    Source

    get

    fn get(self: &Self, index: usize) -> BoxShadow
    

    The shadow at index. Panics if the index is out of range.

    Source

    iter

    fn iter(self: &Self) -> impl Iterator<Item = BoxShadow> + '_
    

    Iterates over the shadows.

    Source

    parse

    fn parse(s: &str) -> Result<BoxShadows, FormatError>
    

    Parses a comma separated list of box shadows.

    Source

    transform_bounds

    fn transform_bounds(self: &Self, rect: Rect) -> Rect
    

    Transforms the specified bounding rectangle to account for every shadow in the collection.

    Source

    has_inset_shadows

    fn has_inset_shadows(self: &Self) -> bool
    

    Whether the collection contains an inset shadow.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.