pub struct ServerCompositionSurfaceBrushProps { /* private fields */ }Expand description
The server-side properties of ServerCompositionSurfaceBrush.
Implementations§
Source§impl ServerCompositionSurfaceBrushProps
impl ServerCompositionSurfaceBrushProps
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 base(&self) -> &ServerCompositionBrushProps
pub fn base(&self) -> &ServerCompositionBrushProps
The properties of the base class.
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_surface_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
pub fn id_of_surface_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
The composition property of Surface.
Sourcepub fn surface(&self) -> Option<Rc<dyn IServerObject>>
pub fn surface(&self) -> Option<Rc<dyn IServerObject>>
Surface.
pub fn set_surface( &self, host: &dyn ServerCompositionSurfaceBrushHooks, value: Option<Rc<dyn IServerObject>>, )
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 ServerCompositionSurfaceBrushHooks, value: CompositionStretch, )
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 ServerCompositionSurfaceBrushHooks, value: f32, )
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 ServerCompositionSurfaceBrushHooks, value: f32, )
Sourcepub fn id_of_bitmap_interpolation_mode_property() -> &'static CompositionPropertyOf<CompositionBitmapInterpolationMode>
pub fn id_of_bitmap_interpolation_mode_property() -> &'static CompositionPropertyOf<CompositionBitmapInterpolationMode>
The composition property of BitmapInterpolationMode.
Sourcepub fn bitmap_interpolation_mode(&self) -> CompositionBitmapInterpolationMode
pub fn bitmap_interpolation_mode(&self) -> CompositionBitmapInterpolationMode
BitmapInterpolationMode.
pub fn set_bitmap_interpolation_mode( &self, host: &dyn ServerCompositionSurfaceBrushHooks, value: CompositionBitmapInterpolationMode, )
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 ServerCompositionSurfaceBrushHooks, value: Vector, )
Sourcepub fn id_of_center_point_property() -> &'static CompositionPropertyOf<Vector>
pub fn id_of_center_point_property() -> &'static CompositionPropertyOf<Vector>
The composition property of CenterPoint.
Sourcepub fn center_point(&self) -> Vector
pub fn center_point(&self) -> Vector
CenterPoint (animated).
pub fn set_center_point( &self, host: &dyn ServerCompositionSurfaceBrushHooks, value: Vector, )
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 ServerCompositionSurfaceBrushHooks, value: Vector, )
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 ServerCompositionSurfaceBrushHooks, value: f32, )
Sourcepub fn id_of_scale_property() -> &'static CompositionPropertyOf<Vector>
pub fn id_of_scale_property() -> &'static CompositionPropertyOf<Vector>
The composition property of Scale.
pub fn set_scale( &self, host: &dyn ServerCompositionSurfaceBrushHooks, value: Vector, )
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 ServerCompositionSurfaceBrushHooks, value: Matrix, )
Sourcepub fn id_of_snap_to_pixels_property() -> &'static CompositionPropertyOf<bool>
pub fn id_of_snap_to_pixels_property() -> &'static CompositionPropertyOf<bool>
The composition property of SnapToPixels.
Sourcepub fn snap_to_pixels(&self) -> bool
pub fn snap_to_pixels(&self) -> bool
SnapToPixels.
pub fn set_snap_to_pixels( &self, host: &dyn ServerCompositionSurfaceBrushHooks, value: bool, )
Sourcepub fn deserialize_changes_core(
&self,
host: &dyn ServerCompositionSurfaceBrushHooks,
reader: &mut BatchStreamReader<'_>,
committed_at: Duration,
)
pub fn deserialize_changes_core( &self, host: &dyn ServerCompositionSurfaceBrushHooks, 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 ServerCompositionSurfaceBrushProps
impl !RefUnwindSafe for ServerCompositionSurfaceBrushProps
impl !Send for ServerCompositionSurfaceBrushProps
impl !Sync for ServerCompositionSurfaceBrushProps
impl !UnwindSafe for ServerCompositionSurfaceBrushProps
impl Unpin for ServerCompositionSurfaceBrushProps
impl UnsafeUnpin for ServerCompositionSurfaceBrushProps
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