pub struct ServerCompositionSpriteShapeProps { /* private fields */ }Expand description
The server-side properties of ServerCompositionSpriteShape.
Implementations§
Source§impl ServerCompositionSpriteShapeProps
impl ServerCompositionSpriteShapeProps
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 base(&self) -> &ServerCompositionShapeProps
pub fn base(&self) -> &ServerCompositionShapeProps
The properties of the base class.
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_fill_brush_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
pub fn id_of_fill_brush_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
The composition property of FillBrush.
Sourcepub fn fill_brush(&self) -> Option<Rc<dyn IServerObject>>
pub fn fill_brush(&self) -> Option<Rc<dyn IServerObject>>
FillBrush.
pub fn set_fill_brush( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: Option<Rc<dyn IServerObject>>, )
Sourcepub fn id_of_geometry_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
pub fn id_of_geometry_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
The composition property of Geometry.
Sourcepub fn geometry(&self) -> Option<Rc<dyn IServerObject>>
pub fn geometry(&self) -> Option<Rc<dyn IServerObject>>
Geometry.
pub fn set_geometry( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: Option<Rc<dyn IServerObject>>, )
Sourcepub fn id_of_is_stroke_non_scaling_property() -> &'static CompositionPropertyOf<bool>
pub fn id_of_is_stroke_non_scaling_property() -> &'static CompositionPropertyOf<bool>
The composition property of IsStrokeNonScaling.
Sourcepub fn is_stroke_non_scaling(&self) -> bool
pub fn is_stroke_non_scaling(&self) -> bool
IsStrokeNonScaling.
pub fn set_is_stroke_non_scaling( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: bool, )
Sourcepub fn id_of_stroke_brush_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
pub fn id_of_stroke_brush_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
The composition property of StrokeBrush.
Sourcepub fn stroke_brush(&self) -> Option<Rc<dyn IServerObject>>
pub fn stroke_brush(&self) -> Option<Rc<dyn IServerObject>>
StrokeBrush.
pub fn set_stroke_brush( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: Option<Rc<dyn IServerObject>>, )
Sourcepub fn id_of_stroke_dash_array_property() -> &'static CompositionPropertyOf<Option<Arc<Vec<f32>>>>
pub fn id_of_stroke_dash_array_property() -> &'static CompositionPropertyOf<Option<Arc<Vec<f32>>>>
The composition property of StrokeDashArray.
pub fn set_stroke_dash_array( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: Option<Arc<Vec<f32>>>, )
Sourcepub fn id_of_stroke_dash_cap_property() -> &'static CompositionPropertyOf<CompositionStrokeCap>
pub fn id_of_stroke_dash_cap_property() -> &'static CompositionPropertyOf<CompositionStrokeCap>
The composition property of StrokeDashCap.
Sourcepub fn stroke_dash_cap(&self) -> CompositionStrokeCap
pub fn stroke_dash_cap(&self) -> CompositionStrokeCap
StrokeDashCap.
pub fn set_stroke_dash_cap( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: CompositionStrokeCap, )
Sourcepub fn id_of_stroke_dash_offset_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_stroke_dash_offset_property() -> &'static CompositionPropertyOf<f32>
The composition property of StrokeDashOffset.
Sourcepub fn stroke_dash_offset(&self) -> f32
pub fn stroke_dash_offset(&self) -> f32
StrokeDashOffset (animated).
pub fn set_stroke_dash_offset( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: f32, )
Sourcepub fn id_of_stroke_end_cap_property() -> &'static CompositionPropertyOf<CompositionStrokeCap>
pub fn id_of_stroke_end_cap_property() -> &'static CompositionPropertyOf<CompositionStrokeCap>
The composition property of StrokeEndCap.
Sourcepub fn stroke_end_cap(&self) -> CompositionStrokeCap
pub fn stroke_end_cap(&self) -> CompositionStrokeCap
StrokeEndCap.
pub fn set_stroke_end_cap( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: CompositionStrokeCap, )
Sourcepub fn id_of_stroke_line_join_property() -> &'static CompositionPropertyOf<CompositionStrokeLineJoin>
pub fn id_of_stroke_line_join_property() -> &'static CompositionPropertyOf<CompositionStrokeLineJoin>
The composition property of StrokeLineJoin.
Sourcepub fn stroke_line_join(&self) -> CompositionStrokeLineJoin
pub fn stroke_line_join(&self) -> CompositionStrokeLineJoin
StrokeLineJoin.
pub fn set_stroke_line_join( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: CompositionStrokeLineJoin, )
Sourcepub fn id_of_stroke_miter_limit_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_stroke_miter_limit_property() -> &'static CompositionPropertyOf<f32>
The composition property of StrokeMiterLimit.
Sourcepub fn stroke_miter_limit(&self) -> f32
pub fn stroke_miter_limit(&self) -> f32
StrokeMiterLimit (animated).
pub fn set_stroke_miter_limit( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: f32, )
Sourcepub fn id_of_stroke_start_cap_property() -> &'static CompositionPropertyOf<CompositionStrokeCap>
pub fn id_of_stroke_start_cap_property() -> &'static CompositionPropertyOf<CompositionStrokeCap>
The composition property of StrokeStartCap.
Sourcepub fn stroke_start_cap(&self) -> CompositionStrokeCap
pub fn stroke_start_cap(&self) -> CompositionStrokeCap
StrokeStartCap.
pub fn set_stroke_start_cap( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: CompositionStrokeCap, )
Sourcepub fn id_of_stroke_thickness_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_stroke_thickness_property() -> &'static CompositionPropertyOf<f32>
The composition property of StrokeThickness.
Sourcepub fn stroke_thickness(&self) -> f32
pub fn stroke_thickness(&self) -> f32
StrokeThickness (animated).
pub fn set_stroke_thickness( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: f32, )
Sourcepub fn deserialize_changes_core(
&self,
host: &dyn ServerCompositionSpriteShapeHooks,
reader: &mut BatchStreamReader<'_>,
committed_at: Duration,
)
pub fn deserialize_changes_core( &self, host: &dyn ServerCompositionSpriteShapeHooks, 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 ServerCompositionSpriteShapeProps
impl !RefUnwindSafe for ServerCompositionSpriteShapeProps
impl !Send for ServerCompositionSpriteShapeProps
impl !Sync for ServerCompositionSpriteShapeProps
impl !UnwindSafe for ServerCompositionSpriteShapeProps
impl Unpin for ServerCompositionSpriteShapeProps
impl UnsafeUnpin for ServerCompositionSpriteShapeProps
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