pub struct ServerCompositionVisualProps { /* private fields */ }Expand description
The server-side properties of ServerCompositionVisual.
Implementations§
Source§impl ServerCompositionVisualProps
impl ServerCompositionVisualProps
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_root_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
pub fn id_of_root_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
The composition property of Root.
Sourcepub fn root(&self) -> Option<Rc<dyn IServerObject>>
pub fn root(&self) -> Option<Rc<dyn IServerObject>>
Root.
pub fn set_root( &self, host: &dyn ServerCompositionVisualHooks, value: Option<Rc<dyn IServerObject>>, )
Sourcepub fn id_of_parent_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
pub fn id_of_parent_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
The composition property of Parent.
Sourcepub fn parent(&self) -> Option<Rc<dyn IServerObject>>
pub fn parent(&self) -> Option<Rc<dyn IServerObject>>
Parent.
pub fn set_parent( &self, host: &dyn ServerCompositionVisualHooks, value: Option<Rc<dyn IServerObject>>, )
Sourcepub fn id_of_visible_property() -> &'static CompositionPropertyOf<bool>
pub fn id_of_visible_property() -> &'static CompositionPropertyOf<bool>
The composition property of Visible.
pub fn set_visible(&self, host: &dyn ServerCompositionVisualHooks, value: bool)
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 ServerCompositionVisualHooks, value: f32)
Sourcepub fn id_of_clip_property() -> &'static CompositionPropertyOf<Option<Arc<dyn IGeometryImpl>>>
pub fn id_of_clip_property() -> &'static CompositionPropertyOf<Option<Arc<dyn IGeometryImpl>>>
The composition property of Clip.
Sourcepub fn clip(&self) -> Option<Arc<dyn IGeometryImpl>>
pub fn clip(&self) -> Option<Arc<dyn IGeometryImpl>>
Clip.
pub fn set_clip( &self, host: &dyn ServerCompositionVisualHooks, value: Option<Arc<dyn IGeometryImpl>>, )
Sourcepub fn id_of_clip_to_bounds_property() -> &'static CompositionPropertyOf<bool>
pub fn id_of_clip_to_bounds_property() -> &'static CompositionPropertyOf<bool>
The composition property of ClipToBounds.
Sourcepub fn clip_to_bounds(&self) -> bool
pub fn clip_to_bounds(&self) -> bool
ClipToBounds (animated).
pub fn set_clip_to_bounds( &self, host: &dyn ServerCompositionVisualHooks, value: bool, )
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 ServerCompositionVisualHooks, value: Vector3D, )
Sourcepub fn id_of_translation_property() -> &'static CompositionPropertyOf<Vector3D>
pub fn id_of_translation_property() -> &'static CompositionPropertyOf<Vector3D>
The composition property of Translation.
Sourcepub fn translation(&self) -> Vector3D
pub fn translation(&self) -> Vector3D
Translation (animated).
pub fn set_translation( &self, host: &dyn ServerCompositionVisualHooks, value: Vector3D, )
Sourcepub fn id_of_size_property() -> &'static CompositionPropertyOf<Vector>
pub fn id_of_size_property() -> &'static CompositionPropertyOf<Vector>
The composition property of Size.
pub fn set_size(&self, host: &dyn ServerCompositionVisualHooks, value: Vector)
Sourcepub fn id_of_anchor_point_property() -> &'static CompositionPropertyOf<Vector>
pub fn id_of_anchor_point_property() -> &'static CompositionPropertyOf<Vector>
The composition property of AnchorPoint.
Sourcepub fn anchor_point(&self) -> Vector
pub fn anchor_point(&self) -> Vector
AnchorPoint (animated).
pub fn set_anchor_point( &self, host: &dyn ServerCompositionVisualHooks, value: Vector, )
Sourcepub fn id_of_center_point_property() -> &'static CompositionPropertyOf<Vector3D>
pub fn id_of_center_point_property() -> &'static CompositionPropertyOf<Vector3D>
The composition property of CenterPoint.
Sourcepub fn center_point(&self) -> Vector3D
pub fn center_point(&self) -> Vector3D
CenterPoint (animated).
pub fn set_center_point( &self, host: &dyn ServerCompositionVisualHooks, value: Vector3D, )
Sourcepub fn id_of_rotation_angle_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_rotation_angle_property() -> &'static CompositionPropertyOf<f32>
The composition property of RotationAngle.
Sourcepub fn rotation_angle(&self) -> f32
pub fn rotation_angle(&self) -> f32
RotationAngle (animated).
pub fn set_rotation_angle( &self, host: &dyn ServerCompositionVisualHooks, value: f32, )
Sourcepub fn id_of_orientation_property() -> &'static CompositionPropertyOf<Quaternion>
pub fn id_of_orientation_property() -> &'static CompositionPropertyOf<Quaternion>
The composition property of Orientation.
Sourcepub fn orientation(&self) -> Quaternion
pub fn orientation(&self) -> Quaternion
Orientation (animated).
pub fn set_orientation( &self, host: &dyn ServerCompositionVisualHooks, value: Quaternion, )
Sourcepub fn id_of_scale_property() -> &'static CompositionPropertyOf<Vector3D>
pub fn id_of_scale_property() -> &'static CompositionPropertyOf<Vector3D>
The composition property of Scale.
pub fn set_scale( &self, host: &dyn ServerCompositionVisualHooks, value: Vector3D, )
Sourcepub fn id_of_transform_matrix_property() -> &'static CompositionPropertyOf<Matrix>
pub fn id_of_transform_matrix_property() -> &'static CompositionPropertyOf<Matrix>
The composition property of TransformMatrix.
Sourcepub fn transform_matrix(&self) -> Matrix
pub fn transform_matrix(&self) -> Matrix
TransformMatrix (animated).
pub fn set_transform_matrix( &self, host: &dyn ServerCompositionVisualHooks, value: Matrix, )
Sourcepub fn id_of_adorned_visual_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
pub fn id_of_adorned_visual_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
The composition property of AdornedVisual.
Sourcepub fn adorned_visual(&self) -> Option<Rc<dyn IServerObject>>
pub fn adorned_visual(&self) -> Option<Rc<dyn IServerObject>>
AdornedVisual.
pub fn set_adorned_visual( &self, host: &dyn ServerCompositionVisualHooks, value: Option<Rc<dyn IServerObject>>, )
Sourcepub fn id_of_adorner_is_clipped_property() -> &'static CompositionPropertyOf<bool>
pub fn id_of_adorner_is_clipped_property() -> &'static CompositionPropertyOf<bool>
The composition property of AdornerIsClipped.
Sourcepub fn adorner_is_clipped(&self) -> bool
pub fn adorner_is_clipped(&self) -> bool
AdornerIsClipped.
pub fn set_adorner_is_clipped( &self, host: &dyn ServerCompositionVisualHooks, value: bool, )
Sourcepub fn id_of_opacity_mask_brush_property() -> &'static CompositionPropertyOf<Option<ServerResourceRef<dyn IBrush>>>
pub fn id_of_opacity_mask_brush_property() -> &'static CompositionPropertyOf<Option<ServerResourceRef<dyn IBrush>>>
The composition property of OpacityMaskBrush.
Sourcepub fn opacity_mask_brush(&self) -> Option<ServerResourceRef<dyn IBrush>>
pub fn opacity_mask_brush(&self) -> Option<ServerResourceRef<dyn IBrush>>
OpacityMaskBrush.
pub fn set_opacity_mask_brush( &self, host: &dyn ServerCompositionVisualHooks, value: Option<ServerResourceRef<dyn IBrush>>, )
Sourcepub fn id_of_effect_property() -> &'static CompositionPropertyOf<Option<Arc<dyn IImmutableEffect>>>
pub fn id_of_effect_property() -> &'static CompositionPropertyOf<Option<Arc<dyn IImmutableEffect>>>
The composition property of Effect.
Sourcepub fn effect(&self) -> Option<Arc<dyn IImmutableEffect>>
pub fn effect(&self) -> Option<Arc<dyn IImmutableEffect>>
Effect.
pub fn set_effect( &self, host: &dyn ServerCompositionVisualHooks, value: Option<Arc<dyn IImmutableEffect>>, )
Sourcepub fn id_of_render_options_property() -> &'static CompositionPropertyOf<RenderOptions>
pub fn id_of_render_options_property() -> &'static CompositionPropertyOf<RenderOptions>
The composition property of RenderOptions.
Sourcepub fn render_options(&self) -> RenderOptions
pub fn render_options(&self) -> RenderOptions
RenderOptions.
pub fn set_render_options( &self, host: &dyn ServerCompositionVisualHooks, value: RenderOptions, )
Sourcepub fn id_of_text_options_property() -> &'static CompositionPropertyOf<TextOptions>
pub fn id_of_text_options_property() -> &'static CompositionPropertyOf<TextOptions>
The composition property of TextOptions.
Sourcepub fn text_options(&self) -> TextOptions
pub fn text_options(&self) -> TextOptions
TextOptions.
pub fn set_text_options( &self, host: &dyn ServerCompositionVisualHooks, value: TextOptions, )
Sourcepub fn id_of_cache_mode_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
pub fn id_of_cache_mode_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
The composition property of CacheMode.
Sourcepub fn cache_mode(&self) -> Option<Rc<dyn IServerObject>>
pub fn cache_mode(&self) -> Option<Rc<dyn IServerObject>>
CacheMode.
pub fn set_cache_mode( &self, host: &dyn ServerCompositionVisualHooks, value: Option<Rc<dyn IServerObject>>, )
Sourcepub fn deserialize_changes_core(
&self,
host: &dyn ServerCompositionVisualHooks,
reader: &mut BatchStreamReader<'_>,
committed_at: Duration,
)
pub fn deserialize_changes_core( &self, host: &dyn ServerCompositionVisualHooks, 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 ServerCompositionVisualProps
impl !RefUnwindSafe for ServerCompositionVisualProps
impl !Send for ServerCompositionVisualProps
impl !Sync for ServerCompositionVisualProps
impl !UnwindSafe for ServerCompositionVisualProps
impl Unpin for ServerCompositionVisualProps
impl UnsafeUnpin for ServerCompositionVisualProps
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