pub struct ShadowBuilder { /* private fields */ }
Expand description
A builder for constructing a shadow.
Implementations§
Source§impl ShadowBuilder
impl ShadowBuilder
Sourcepub fn new() -> ShadowBuilder
pub fn new() -> ShadowBuilder
Creates a new ShadowBuilder.
Sourcepub fn x_offset(self, offset: impl Into<Length>) -> ShadowBuilder
pub fn x_offset(self, offset: impl Into<Length>) -> ShadowBuilder
Sets the horizontal offset of the shadow.
Sourcepub fn y_offset(self, offset: impl Into<Length>) -> ShadowBuilder
pub fn y_offset(self, offset: impl Into<Length>) -> ShadowBuilder
Set the vertical offset of the shadow.
Sourcepub fn blur(self, radius: Length) -> ShadowBuilder
pub fn blur(self, radius: Length) -> ShadowBuilder
Sets the blur radius of the shadow.
Sourcepub fn spread(self, radius: Length) -> ShadowBuilder
pub fn spread(self, radius: Length) -> ShadowBuilder
Sets the spread amount of the shadow.
Sourcepub fn color(self, color: Color) -> ShadowBuilder
pub fn color(self, color: Color) -> ShadowBuilder
Sets the color of the shadow.
Sourcepub fn inset(self) -> ShadowBuilder
pub fn inset(self) -> ShadowBuilder
Sets whether the shadow should be inset.
Trait Implementations§
Source§impl Clone for ShadowBuilder
impl Clone for ShadowBuilder
Source§fn clone(&self) -> ShadowBuilder
fn clone(&self) -> ShadowBuilder
Returns a copy 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 ShadowBuilder
impl Debug for ShadowBuilder
Source§impl Default for ShadowBuilder
impl Default for ShadowBuilder
Source§fn default() -> ShadowBuilder
fn default() -> ShadowBuilder
Returns the “default value” for a type. Read more
Source§impl From<ShadowBuilder> for Shadow
impl From<ShadowBuilder> for Shadow
Source§fn from(value: ShadowBuilder) -> Shadow
fn from(value: ShadowBuilder) -> Shadow
Converts to this type from the input type.
Source§impl Res<ShadowBuilder> for ShadowBuilder
impl Res<ShadowBuilder> for ShadowBuilder
Source§impl ResGet<ShadowBuilder> for ShadowBuilder
impl ResGet<ShadowBuilder> for ShadowBuilder
Source§fn get_ref<'a>(
&'a self,
_: &'a impl DataContext,
) -> Option<LensValue<'a, ShadowBuilder>>
fn get_ref<'a>( &'a self, _: &'a impl DataContext, ) -> Option<LensValue<'a, ShadowBuilder>>
Returns the value of a lens by reference.
Source§fn get(&self, _: &impl DataContext) -> ShadowBuilder
fn get(&self, _: &impl DataContext) -> ShadowBuilder
returns the value of a lens by value.
Auto Trait Implementations§
impl Freeze for ShadowBuilder
impl RefUnwindSafe for ShadowBuilder
impl Send for ShadowBuilder
impl Sync for ShadowBuilder
impl Unpin for ShadowBuilder
impl UnwindSafe for ShadowBuilder
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> 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<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.