pub struct ServerCompositionViewBoxProps { /* private fields */ }Expand description
The server-side properties of ServerCompositionViewBox.
Implementations§
Source§impl ServerCompositionViewBoxProps
impl ServerCompositionViewBoxProps
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_horizontal_alignment_ratio_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_horizontal_alignment_ratio_property() -> &'static CompositionPropertyOf<f32>
The composition property of HorizontalAlignmentRatio.
Sourcepub fn horizontal_alignment_ratio(&self) -> f32
pub fn horizontal_alignment_ratio(&self) -> f32
HorizontalAlignmentRatio (animated).
pub fn set_horizontal_alignment_ratio( &self, host: &dyn ServerCompositionViewBoxHooks, value: f32, )
Sourcepub fn id_of_offset_property() -> &'static CompositionPropertyOf<Vector>
pub fn id_of_offset_property() -> &'static CompositionPropertyOf<Vector>
The composition property of Offset.
pub fn set_offset( &self, host: &dyn ServerCompositionViewBoxHooks, value: Vector, )
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 ServerCompositionViewBoxHooks, value: Vector)
Sourcepub fn id_of_stretch_property() -> &'static CompositionPropertyOf<CompositionStretch>
pub fn id_of_stretch_property() -> &'static CompositionPropertyOf<CompositionStretch>
The composition property of Stretch.
Sourcepub fn stretch(&self) -> CompositionStretch
pub fn stretch(&self) -> CompositionStretch
Stretch.
pub fn set_stretch( &self, host: &dyn ServerCompositionViewBoxHooks, value: CompositionStretch, )
Sourcepub fn id_of_vertical_alignment_ratio_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_vertical_alignment_ratio_property() -> &'static CompositionPropertyOf<f32>
The composition property of VerticalAlignmentRatio.
Sourcepub fn vertical_alignment_ratio(&self) -> f32
pub fn vertical_alignment_ratio(&self) -> f32
VerticalAlignmentRatio (animated).
pub fn set_vertical_alignment_ratio( &self, host: &dyn ServerCompositionViewBoxHooks, value: f32, )
Sourcepub fn deserialize_changes_core(
&self,
host: &dyn ServerCompositionViewBoxHooks,
reader: &mut BatchStreamReader<'_>,
committed_at: Duration,
)
pub fn deserialize_changes_core( &self, host: &dyn ServerCompositionViewBoxHooks, 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 ServerCompositionViewBoxProps
impl !RefUnwindSafe for ServerCompositionViewBoxProps
impl !Sync for ServerCompositionViewBoxProps
impl Send for ServerCompositionViewBoxProps
impl Unpin for ServerCompositionViewBoxProps
impl UnsafeUnpin for ServerCompositionViewBoxProps
impl UnwindSafe for ServerCompositionViewBoxProps
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