Skip to main content

ServerCompositionVisualProps

Struct ServerCompositionVisualProps 

Source
pub struct ServerCompositionVisualProps { /* private fields */ }
Expand description

The server-side properties of ServerCompositionVisual.

Implementations§

Source§

impl ServerCompositionVisualProps

Source

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.

Source

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.

Source

pub fn id_of_root_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>

The composition property of Root.

Source

pub fn root(&self) -> Option<Rc<dyn IServerObject>>

Root.

Source

pub fn set_root( &self, host: &dyn ServerCompositionVisualHooks, value: Option<Rc<dyn IServerObject>>, )

Source

pub fn id_of_parent_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>

The composition property of Parent.

Source

pub fn parent(&self) -> Option<Rc<dyn IServerObject>>

Parent.

Source

pub fn set_parent( &self, host: &dyn ServerCompositionVisualHooks, value: Option<Rc<dyn IServerObject>>, )

Source

pub fn id_of_visible_property() -> &'static CompositionPropertyOf<bool>

The composition property of Visible.

Source

pub fn visible(&self) -> bool

Visible (animated).

Source

pub fn set_visible(&self, host: &dyn ServerCompositionVisualHooks, value: bool)

Source

pub fn id_of_opacity_property() -> &'static CompositionPropertyOf<f32>

The composition property of Opacity.

Source

pub fn opacity(&self) -> f32

Opacity (animated).

Source

pub fn set_opacity(&self, host: &dyn ServerCompositionVisualHooks, value: f32)

Source

pub fn id_of_clip_property() -> &'static CompositionPropertyOf<Option<Arc<dyn IGeometryImpl>>>

The composition property of Clip.

Source

pub fn clip(&self) -> Option<Arc<dyn IGeometryImpl>>

Clip.

Source

pub fn set_clip( &self, host: &dyn ServerCompositionVisualHooks, value: Option<Arc<dyn IGeometryImpl>>, )

Source

pub fn id_of_clip_to_bounds_property() -> &'static CompositionPropertyOf<bool>

The composition property of ClipToBounds.

Source

pub fn clip_to_bounds(&self) -> bool

ClipToBounds (animated).

Source

pub fn set_clip_to_bounds( &self, host: &dyn ServerCompositionVisualHooks, value: bool, )

Source

pub fn id_of_offset_property() -> &'static CompositionPropertyOf<Vector3D>

The composition property of Offset.

Source

pub fn offset(&self) -> Vector3D

Offset (animated).

Source

pub fn set_offset( &self, host: &dyn ServerCompositionVisualHooks, value: Vector3D, )

Source

pub fn id_of_translation_property() -> &'static CompositionPropertyOf<Vector3D>

The composition property of Translation.

Source

pub fn translation(&self) -> Vector3D

Translation (animated).

Source

pub fn set_translation( &self, host: &dyn ServerCompositionVisualHooks, value: Vector3D, )

Source

pub fn id_of_size_property() -> &'static CompositionPropertyOf<Vector>

The composition property of Size.

Source

pub fn size(&self) -> Vector

Size (animated).

Source

pub fn set_size(&self, host: &dyn ServerCompositionVisualHooks, value: Vector)

Source

pub fn id_of_anchor_point_property() -> &'static CompositionPropertyOf<Vector>

The composition property of AnchorPoint.

Source

pub fn anchor_point(&self) -> Vector

AnchorPoint (animated).

Source

pub fn set_anchor_point( &self, host: &dyn ServerCompositionVisualHooks, value: Vector, )

Source

pub fn id_of_center_point_property() -> &'static CompositionPropertyOf<Vector3D>

The composition property of CenterPoint.

Source

pub fn center_point(&self) -> Vector3D

CenterPoint (animated).

Source

pub fn set_center_point( &self, host: &dyn ServerCompositionVisualHooks, value: Vector3D, )

Source

pub fn id_of_rotation_angle_property() -> &'static CompositionPropertyOf<f32>

The composition property of RotationAngle.

Source

pub fn rotation_angle(&self) -> f32

RotationAngle (animated).

Source

pub fn set_rotation_angle( &self, host: &dyn ServerCompositionVisualHooks, value: f32, )

Source

pub fn id_of_orientation_property() -> &'static CompositionPropertyOf<Quaternion>

The composition property of Orientation.

Source

pub fn orientation(&self) -> Quaternion

Orientation (animated).

Source

pub fn set_orientation( &self, host: &dyn ServerCompositionVisualHooks, value: Quaternion, )

Source

pub fn id_of_scale_property() -> &'static CompositionPropertyOf<Vector3D>

The composition property of Scale.

Source

pub fn scale(&self) -> Vector3D

Scale (animated).

Source

pub fn set_scale( &self, host: &dyn ServerCompositionVisualHooks, value: Vector3D, )

Source

pub fn id_of_transform_matrix_property() -> &'static CompositionPropertyOf<Matrix>

The composition property of TransformMatrix.

Source

pub fn transform_matrix(&self) -> Matrix

TransformMatrix (animated).

Source

pub fn set_transform_matrix( &self, host: &dyn ServerCompositionVisualHooks, value: Matrix, )

Source

pub fn id_of_adorned_visual_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>

The composition property of AdornedVisual.

Source

pub fn adorned_visual(&self) -> Option<Rc<dyn IServerObject>>

AdornedVisual.

Source

pub fn set_adorned_visual( &self, host: &dyn ServerCompositionVisualHooks, value: Option<Rc<dyn IServerObject>>, )

Source

pub fn id_of_adorner_is_clipped_property() -> &'static CompositionPropertyOf<bool>

The composition property of AdornerIsClipped.

Source

pub fn adorner_is_clipped(&self) -> bool

AdornerIsClipped.

Source

pub fn set_adorner_is_clipped( &self, host: &dyn ServerCompositionVisualHooks, value: bool, )

Source

pub fn id_of_opacity_mask_brush_property() -> &'static CompositionPropertyOf<Option<ServerResourceRef<dyn IBrush>>>

The composition property of OpacityMaskBrush.

Source

pub fn opacity_mask_brush(&self) -> Option<ServerResourceRef<dyn IBrush>>

OpacityMaskBrush.

Source

pub fn set_opacity_mask_brush( &self, host: &dyn ServerCompositionVisualHooks, value: Option<ServerResourceRef<dyn IBrush>>, )

Source

pub fn id_of_effect_property() -> &'static CompositionPropertyOf<Option<Arc<dyn IImmutableEffect>>>

The composition property of Effect.

Source

pub fn effect(&self) -> Option<Arc<dyn IImmutableEffect>>

Effect.

Source

pub fn set_effect( &self, host: &dyn ServerCompositionVisualHooks, value: Option<Arc<dyn IImmutableEffect>>, )

Source

pub fn id_of_render_options_property() -> &'static CompositionPropertyOf<RenderOptions>

The composition property of RenderOptions.

Source

pub fn render_options(&self) -> RenderOptions

RenderOptions.

Source

pub fn set_render_options( &self, host: &dyn ServerCompositionVisualHooks, value: RenderOptions, )

Source

pub fn id_of_text_options_property() -> &'static CompositionPropertyOf<TextOptions>

The composition property of TextOptions.

Source

pub fn text_options(&self) -> TextOptions

TextOptions.

Source

pub fn set_text_options( &self, host: &dyn ServerCompositionVisualHooks, value: TextOptions, )

Source

pub fn id_of_cache_mode_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>

The composition property of CacheMode.

Source

pub fn cache_mode(&self) -> Option<Rc<dyn IServerObject>>

CacheMode.

Source

pub fn set_cache_mode( &self, host: &dyn ServerCompositionVisualHooks, value: Option<Rc<dyn IServerObject>>, )

Source

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.

Source

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§

Source§

impl Default for ServerCompositionVisualProps

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

fn static_constructor()

The static constructor of a type: work done once per thread, after the properties of the type are registered and before its first instance exists (class handlers, affects_render, metadata overrides). Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.