pub struct EdgeShadow {
pub color: Color,
pub end_color: Color,
pub expand: f32,
pub blur: f32,
pub offset: (f32, f32),
}Expand description
Shadow style for edges.
Fields§
§color: ColorShadow color (typically semi-transparent).
end_color: ColorGradient end color for shadow (defaults to same as color).
expand: f32Expand the shadow beyond the stroke.
blur: f32Blur radius in world-space pixels.
offset: (f32, f32)Shadow offset in world-space pixels (x, y).
Implementations§
Source§impl EdgeShadow
impl EdgeShadow
pub fn new() -> Self
pub fn color(self, color: Color) -> Self
pub fn end_color(self, color: Color) -> Self
Sourcepub fn solid_color(self, color: Color) -> Self
pub fn solid_color(self, color: Color) -> Self
Sets both start and end color to the same value.
pub fn expand(self, expand: f32) -> Self
pub fn blur(self, blur: f32) -> Self
pub fn offset(self, x: f32, y: f32) -> Self
pub fn subtle() -> Self
pub fn strong() -> Self
pub fn glow(color: Color) -> Self
Trait Implementations§
Source§impl Clone for EdgeShadow
impl Clone for EdgeShadow
Source§fn clone(&self) -> EdgeShadow
fn clone(&self) -> EdgeShadow
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EdgeShadow
impl Debug for EdgeShadow
Source§impl Default for EdgeShadow
impl Default for EdgeShadow
Source§impl PartialEq for EdgeShadow
impl PartialEq for EdgeShadow
impl Copy for EdgeShadow
impl StructuralPartialEq for EdgeShadow
Auto Trait Implementations§
impl Freeze for EdgeShadow
impl RefUnwindSafe for EdgeShadow
impl Send for EdgeShadow
impl Sync for EdgeShadow
impl Unpin for EdgeShadow
impl UnwindSafe for EdgeShadow
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.