pub struct BoxShadows { /* private fields */ }Expand description
Represents a collection of BoxShadows.
Implementations§
Source§impl BoxShadows
impl BoxShadows
Sourcepub fn new(shadow: BoxShadow) -> Self
pub fn new(shadow: BoxShadow) -> Self
Creates a collection containing a single shadow. A default shadow produces an empty collection.
Sourcepub fn with_rest(first: BoxShadow, rest: &[BoxShadow]) -> Self
pub fn with_rest(first: BoxShadow, rest: &[BoxShadow]) -> Self
Creates a collection containing first followed by rest.
Sourcepub fn get(&self, index: usize) -> BoxShadow
pub fn get(&self, index: usize) -> BoxShadow
The shadow at index. Panics if the index is out of range.
Sourcepub fn parse(s: &str) -> Result<BoxShadows, FormatError>
pub fn parse(s: &str) -> Result<BoxShadows, FormatError>
Parses a comma separated list of box shadows.
Sourcepub fn transform_bounds(&self, rect: Rect) -> Rect
pub fn transform_bounds(&self, rect: Rect) -> Rect
Transforms the specified bounding rectangle to account for every shadow in the collection.
Sourcepub fn has_inset_shadows(&self) -> bool
pub fn has_inset_shadows(&self) -> bool
Whether the collection contains an inset shadow.
Trait Implementations§
Source§impl Clone for BoxShadows
impl Clone for BoxShadows
Source§impl Debug for BoxShadows
impl Debug for BoxShadows
Source§impl Default for BoxShadows
impl Default for BoxShadows
Source§impl Display for BoxShadows
impl Display for BoxShadows
Source§impl FromStr for BoxShadows
impl FromStr for BoxShadows
Source§impl MarkupTyped for BoxShadows
impl MarkupTyped for BoxShadows
Source§const MARKUP: &'static MarkupType
const MARKUP: &'static MarkupType
The markup metadata of the type.
Source§impl PartialEq for BoxShadows
impl PartialEq for BoxShadows
Source§impl Transition<BoxShadows> for BoxShadowsTransition
impl Transition<BoxShadows> for BoxShadowsTransition
Source§fn do_transition(
this: &Self,
progress: Rc<dyn IObservable<f64>>,
old_value: BoxShadows,
new_value: BoxShadows,
) -> Rc<dyn IObservable<BoxShadows>>
fn do_transition( this: &Self, progress: Rc<dyn IObservable<f64>>, old_value: BoxShadows, new_value: BoxShadows, ) -> Rc<dyn IObservable<BoxShadows>>
Creates the observable of the values of the transition from
old_value to new_value, driven by progress (from 0 to 1).Auto Trait Implementations§
impl !Send for BoxShadows
impl !Sync for BoxShadows
impl Freeze for BoxShadows
impl RefUnwindSafe for BoxShadows
impl Unpin for BoxShadows
impl UnsafeUnpin for BoxShadows
impl UnwindSafe for BoxShadows
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more