pub struct ServerDropShadowProps { /* private fields */ }Expand description
The server-side properties of ServerDropShadow.
Implementations§
Source§impl ServerDropShadowProps
impl ServerDropShadowProps
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates the properties with every field at the default of its type; the values of the UI thread arrive with the first batch.
Sourcepub fn find_props(&self, type_id: TypeId) -> Option<&dyn Any>
pub fn find_props(&self, type_id: TypeId) -> Option<&dyn Any>
This block or the block of a base class, by type: what
IServerObject::get_props of the embedding class returns.
Sourcepub fn id_of_blur_radius_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_blur_radius_property() -> &'static CompositionPropertyOf<f32>
The composition property of BlurRadius.
Sourcepub fn blur_radius(&self) -> f32
pub fn blur_radius(&self) -> f32
BlurRadius (animated).
pub fn set_blur_radius(&self, host: &dyn ServerDropShadowHooks, value: f32)
Sourcepub fn id_of_color_property() -> &'static CompositionPropertyOf<Color>
pub fn id_of_color_property() -> &'static CompositionPropertyOf<Color>
The composition property of Color.
pub fn set_color(&self, host: &dyn ServerDropShadowHooks, value: Color)
Sourcepub fn id_of_mask_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
pub fn id_of_mask_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
The composition property of Mask.
Sourcepub fn mask(&self) -> Option<Rc<dyn IServerObject>>
pub fn mask(&self) -> Option<Rc<dyn IServerObject>>
Mask.
pub fn set_mask( &self, host: &dyn ServerDropShadowHooks, value: Option<Rc<dyn IServerObject>>, )
Sourcepub fn id_of_offset_property() -> &'static CompositionPropertyOf<Vector3D>
pub fn id_of_offset_property() -> &'static CompositionPropertyOf<Vector3D>
The composition property of Offset.
pub fn set_offset(&self, host: &dyn ServerDropShadowHooks, value: Vector3D)
Sourcepub fn id_of_opacity_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_opacity_property() -> &'static CompositionPropertyOf<f32>
The composition property of Opacity.
pub fn set_opacity(&self, host: &dyn ServerDropShadowHooks, value: f32)
Sourcepub fn id_of_source_policy_property() -> &'static CompositionPropertyOf<CompositionDropShadowSourcePolicy>
pub fn id_of_source_policy_property() -> &'static CompositionPropertyOf<CompositionDropShadowSourcePolicy>
The composition property of SourcePolicy.
Sourcepub fn source_policy(&self) -> CompositionDropShadowSourcePolicy
pub fn source_policy(&self) -> CompositionDropShadowSourcePolicy
SourcePolicy.
pub fn set_source_policy( &self, host: &dyn ServerDropShadowHooks, value: CompositionDropShadowSourcePolicy, )
Sourcepub fn deserialize_changes_core(
&self,
host: &dyn ServerDropShadowHooks,
reader: &mut BatchStreamReader<'_>,
committed_at: Duration,
)
pub fn deserialize_changes_core( &self, host: &dyn ServerDropShadowHooks, reader: &mut BatchStreamReader<'_>, committed_at: Duration, )
Reads the changes of the object: the base class first, then the changed-fields mask and the changed members of this class.
Sourcepub fn get_composition_property(
name: &str,
) -> Option<&'static CompositionProperty>
pub fn get_composition_property( name: &str, ) -> Option<&'static CompositionProperty>
The composition property with the given name, among the properties of this class and of its generated bases that have a variant form.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ServerDropShadowProps
impl !RefUnwindSafe for ServerDropShadowProps
impl !Send for ServerDropShadowProps
impl !Sync for ServerDropShadowProps
impl !UnwindSafe for ServerDropShadowProps
impl Unpin for ServerDropShadowProps
impl UnsafeUnpin for ServerDropShadowProps
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