pub struct ServerCompositionSimpleBrushProps { /* private fields */ }Expand description
The server-side properties of ServerCompositionSimpleBrush.
Implementations§
Source§impl ServerCompositionSimpleBrushProps
impl ServerCompositionSimpleBrushProps
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_opacity_property() -> &'static CompositionPropertyOf<f64>
pub fn id_of_opacity_property() -> &'static CompositionPropertyOf<f64>
The composition property of Opacity.
pub fn set_opacity( &self, host: &dyn ServerCompositionSimpleBrushHooks, value: f64, )
Sourcepub fn id_of_transform_origin_property() -> &'static CompositionPropertyOf<RelativePoint>
pub fn id_of_transform_origin_property() -> &'static CompositionPropertyOf<RelativePoint>
The composition property of TransformOrigin.
Sourcepub fn transform_origin(&self) -> RelativePoint
pub fn transform_origin(&self) -> RelativePoint
TransformOrigin.
pub fn set_transform_origin( &self, host: &dyn ServerCompositionSimpleBrushHooks, value: RelativePoint, )
Sourcepub fn id_of_transform_property() -> &'static CompositionPropertyOf<Option<ServerResourceRef<dyn ITransform>>>
pub fn id_of_transform_property() -> &'static CompositionPropertyOf<Option<ServerResourceRef<dyn ITransform>>>
The composition property of Transform.
Sourcepub fn transform(&self) -> Option<ServerResourceRef<dyn ITransform>>
pub fn transform(&self) -> Option<ServerResourceRef<dyn ITransform>>
Transform.
pub fn set_transform( &self, host: &dyn ServerCompositionSimpleBrushHooks, value: Option<ServerResourceRef<dyn ITransform>>, )
Sourcepub fn id_of_relative_transform_property() -> &'static CompositionPropertyOf<Option<ServerResourceRef<dyn ITransform>>>
pub fn id_of_relative_transform_property() -> &'static CompositionPropertyOf<Option<ServerResourceRef<dyn ITransform>>>
The composition property of RelativeTransform.
Sourcepub fn relative_transform(&self) -> Option<ServerResourceRef<dyn ITransform>>
pub fn relative_transform(&self) -> Option<ServerResourceRef<dyn ITransform>>
RelativeTransform.
pub fn set_relative_transform( &self, host: &dyn ServerCompositionSimpleBrushHooks, value: Option<ServerResourceRef<dyn ITransform>>, )
Sourcepub fn deserialize_changes_core(
&self,
host: &dyn ServerCompositionSimpleBrushHooks,
reader: &mut BatchStreamReader<'_>,
_committed_at: Duration,
)
pub fn deserialize_changes_core( &self, host: &dyn ServerCompositionSimpleBrushHooks, 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 serialize_all_changes(
writer: &mut BatchStreamWriter<'_>,
opacity: f64,
transform_origin: RelativePoint,
transform: Option<BatchResource<dyn ITransform>>,
relative_transform: Option<BatchResource<dyn ITransform>>,
)
pub fn serialize_all_changes( writer: &mut BatchStreamWriter<'_>, opacity: f64, transform_origin: RelativePoint, transform: Option<BatchResource<dyn ITransform>>, relative_transform: Option<BatchResource<dyn ITransform>>, )
Writes every property of the class, in the form
deserialize_changes_core reads.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ServerCompositionSimpleBrushProps
impl !RefUnwindSafe for ServerCompositionSimpleBrushProps
impl !Send for ServerCompositionSimpleBrushProps
impl !Sync for ServerCompositionSimpleBrushProps
impl !UnwindSafe for ServerCompositionSimpleBrushProps
impl Unpin for ServerCompositionSimpleBrushProps
impl UnsafeUnpin for ServerCompositionSimpleBrushProps
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
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
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