pub struct ShadowSpec {
pub color: Color,
pub blur: f32,
pub spread: f32,
pub offset: Vec2,
}Fields§
§color: Color§blur: f32§spread: f32§offset: Vec2Implementations§
Source§impl ShadowSpec
impl ShadowSpec
pub fn new(color: Color, blur: f32) -> ShadowSpec
pub fn spread(self, spread: f32) -> ShadowSpec
pub fn offset(self, x: f32, y: f32) -> ShadowSpec
pub fn is_visible(self) -> bool
Trait Implementations§
Source§impl Clone for ShadowSpec
impl Clone for ShadowSpec
Source§fn clone(&self) -> ShadowSpec
fn clone(&self) -> ShadowSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShadowSpec
Source§impl Debug for ShadowSpec
impl Debug for ShadowSpec
Source§impl PartialEq for ShadowSpec
impl PartialEq for ShadowSpec
impl StructuralPartialEq for ShadowSpec
Auto Trait Implementations§
impl Freeze for ShadowSpec
impl RefUnwindSafe for ShadowSpec
impl Send for ShadowSpec
impl Sync for ShadowSpec
impl Unpin for ShadowSpec
impl UnsafeUnpin for ShadowSpec
impl UnwindSafe for ShadowSpec
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