pub struct DropShadowProps { /* private fields */ }Expand description
The UI-thread properties of DropShadow.
Implementations§
Source§impl DropShadowProps
impl DropShadowProps
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates the properties with every field at the default of its type.
The defaults of the schema are applied by
initialize_defaults.
Sourcepub fn initialize_defaults(&self, host: &dyn DropShadowHooks)
pub fn initialize_defaults(&self, host: &dyn DropShadowHooks)
The InitializeDefaults calls of the constructor chain: the base
classes first, then this class.
Sourcepub fn initialize_own_defaults(&self, host: &dyn DropShadowHooks)
pub fn initialize_own_defaults(&self, host: &dyn DropShadowHooks)
InitializeDefaults of this class alone.
Sourcepub fn blur_radius(&self) -> f32
pub fn blur_radius(&self) -> f32
BlurRadius (animated, default 9.0, FerroUI overlay).
Sourcepub fn set_blur_radius(&self, host: &dyn DropShadowHooks, value: f32)
pub fn set_blur_radius(&self, host: &dyn DropShadowHooks, value: f32)
Sets BlurRadius (animated, default 9.0, FerroUI overlay).
Sourcepub fn color(&self) -> Color
pub fn color(&self) -> Color
Color (animated, default crate::media::Colors::BLACK, FerroUI overlay).
Sourcepub fn set_color(&self, host: &dyn DropShadowHooks, value: Color)
pub fn set_color(&self, host: &dyn DropShadowHooks, value: Color)
Sets Color (animated, default crate::media::Colors::BLACK, FerroUI overlay).
Sourcepub fn mask(&self) -> Option<Rc<dyn ICompositionObject>>
pub fn mask(&self) -> Option<Rc<dyn ICompositionObject>>
Mask (FerroUI overlay).
Sourcepub fn set_mask(
&self,
host: &dyn DropShadowHooks,
value: Option<Rc<dyn ICompositionObject>>,
)
pub fn set_mask( &self, host: &dyn DropShadowHooks, value: Option<Rc<dyn ICompositionObject>>, )
Sets Mask (FerroUI overlay).
Sourcepub fn set_offset(&self, host: &dyn DropShadowHooks, value: Vector3D)
pub fn set_offset(&self, host: &dyn DropShadowHooks, value: Vector3D)
Sets Offset (animated, FerroUI overlay).
Sourcepub fn set_opacity(&self, host: &dyn DropShadowHooks, value: f32)
pub fn set_opacity(&self, host: &dyn DropShadowHooks, value: f32)
Sets Opacity (animated, default 1.0, FerroUI overlay).
Sourcepub fn source_policy(&self) -> CompositionDropShadowSourcePolicy
pub fn source_policy(&self) -> CompositionDropShadowSourcePolicy
SourcePolicy (FerroUI overlay).
Sourcepub fn set_source_policy(
&self,
host: &dyn DropShadowHooks,
value: CompositionDropShadowSourcePolicy,
)
pub fn set_source_policy( &self, host: &dyn DropShadowHooks, value: CompositionDropShadowSourcePolicy, )
Sets SourcePolicy (FerroUI overlay).
Sourcepub fn start_animation(
&self,
host: &dyn DropShadowHooks,
property_name: &str,
animation: &dyn ICompositionAnimation,
final_value: Option<ExpressionVariant>,
) -> bool
pub fn start_animation( &self, host: &dyn DropShadowHooks, property_name: &str, animation: &dyn ICompositionAnimation, final_value: Option<ExpressionVariant>, ) -> bool
Connects an animation with the named property. Returns false when
neither this class nor its generated bases have an animated property
of that name: the caller continues with its hand-written base.
Sourcepub fn serialize_changes_core(
&self,
host: &dyn DropShadowHooks,
writer: &mut BatchStreamWriter<'_>,
)
pub fn serialize_changes_core( &self, host: &dyn DropShadowHooks, writer: &mut BatchStreamWriter<'_>, )
Writes the changes of the object: the base class first, then the changed-fields mask and the changed members of this class.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DropShadowProps
impl !RefUnwindSafe for DropShadowProps
impl !Send for DropShadowProps
impl !Sync for DropShadowProps
impl !UnwindSafe for DropShadowProps
impl Unpin for DropShadowProps
impl UnsafeUnpin for DropShadowProps
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more