Skip to main content

ServerCompositionSpriteShapeProps

Struct ServerCompositionSpriteShapeProps 

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

The server-side properties of ServerCompositionSpriteShape.

Implementations§

Source§

impl ServerCompositionSpriteShapeProps

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 base(&self) -> &ServerCompositionShapeProps

The properties of the base class.

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_fill_brush_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>

The composition property of FillBrush.

Source

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

FillBrush.

Source

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

Source

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

The composition property of Geometry.

Source

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

Geometry.

Source

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

Source

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

The composition property of IsStrokeNonScaling.

Source

pub fn is_stroke_non_scaling(&self) -> bool

IsStrokeNonScaling.

Source

pub fn set_is_stroke_non_scaling( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: bool, )

Source

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

The composition property of StrokeBrush.

Source

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

StrokeBrush.

Source

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

Source

pub fn id_of_stroke_dash_array_property() -> &'static CompositionPropertyOf<Option<Arc<Vec<f32>>>>

The composition property of StrokeDashArray.

Source

pub fn stroke_dash_array(&self) -> Option<Arc<Vec<f32>>>

StrokeDashArray.

Source

pub fn set_stroke_dash_array( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: Option<Arc<Vec<f32>>>, )

Source

pub fn id_of_stroke_dash_cap_property() -> &'static CompositionPropertyOf<CompositionStrokeCap>

The composition property of StrokeDashCap.

Source

pub fn stroke_dash_cap(&self) -> CompositionStrokeCap

StrokeDashCap.

Source

pub fn set_stroke_dash_cap( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: CompositionStrokeCap, )

Source

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

The composition property of StrokeDashOffset.

Source

pub fn stroke_dash_offset(&self) -> f32

StrokeDashOffset (animated).

Source

pub fn set_stroke_dash_offset( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: f32, )

Source

pub fn id_of_stroke_end_cap_property() -> &'static CompositionPropertyOf<CompositionStrokeCap>

The composition property of StrokeEndCap.

Source

pub fn stroke_end_cap(&self) -> CompositionStrokeCap

StrokeEndCap.

Source

pub fn set_stroke_end_cap( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: CompositionStrokeCap, )

Source

pub fn id_of_stroke_line_join_property() -> &'static CompositionPropertyOf<CompositionStrokeLineJoin>

The composition property of StrokeLineJoin.

Source

pub fn stroke_line_join(&self) -> CompositionStrokeLineJoin

StrokeLineJoin.

Source

pub fn set_stroke_line_join( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: CompositionStrokeLineJoin, )

Source

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

The composition property of StrokeMiterLimit.

Source

pub fn stroke_miter_limit(&self) -> f32

StrokeMiterLimit (animated).

Source

pub fn set_stroke_miter_limit( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: f32, )

Source

pub fn id_of_stroke_start_cap_property() -> &'static CompositionPropertyOf<CompositionStrokeCap>

The composition property of StrokeStartCap.

Source

pub fn stroke_start_cap(&self) -> CompositionStrokeCap

StrokeStartCap.

Source

pub fn set_stroke_start_cap( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: CompositionStrokeCap, )

Source

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

The composition property of StrokeThickness.

Source

pub fn stroke_thickness(&self) -> f32

StrokeThickness (animated).

Source

pub fn set_stroke_thickness( &self, host: &dyn ServerCompositionSpriteShapeHooks, value: f32, )

Source

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.

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 ServerCompositionSpriteShapeProps

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.