pub struct CompositionSurfaceBrushProps { /* private fields */ }Expand description
The UI-thread properties of CompositionSurfaceBrush.
Implementations§
Source§impl CompositionSurfaceBrushProps
impl CompositionSurfaceBrushProps
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates the properties with every field at the default of its type.
The defaults of the schema are applied by
initialize_defaults.
Sourcepub fn base(&self) -> &CompositionBrushProps
pub fn base(&self) -> &CompositionBrushProps
The properties of the base class.
Sourcepub fn initialize_defaults(&self, host: &dyn CompositionSurfaceBrushHooks)
pub fn initialize_defaults(&self, host: &dyn CompositionSurfaceBrushHooks)
The InitializeDefaults calls of the constructor chain: the base
classes first, then this class.
Sourcepub fn initialize_own_defaults(&self, host: &dyn CompositionSurfaceBrushHooks)
pub fn initialize_own_defaults(&self, host: &dyn CompositionSurfaceBrushHooks)
InitializeDefaults of this class alone.
Sourcepub fn surface(&self) -> Option<Rc<dyn ICompositionObject>>
pub fn surface(&self) -> Option<Rc<dyn ICompositionObject>>
Surface (FerroUI overlay).
Sourcepub fn set_surface(
&self,
host: &dyn CompositionSurfaceBrushHooks,
value: Option<Rc<dyn ICompositionObject>>,
)
pub fn set_surface( &self, host: &dyn CompositionSurfaceBrushHooks, value: Option<Rc<dyn ICompositionObject>>, )
Sets Surface (FerroUI overlay).
Sourcepub fn stretch(&self) -> CompositionStretch
pub fn stretch(&self) -> CompositionStretch
Stretch (default CompositionStretch::Fill, FerroUI overlay).
Sourcepub fn set_stretch(
&self,
host: &dyn CompositionSurfaceBrushHooks,
value: CompositionStretch,
)
pub fn set_stretch( &self, host: &dyn CompositionSurfaceBrushHooks, value: CompositionStretch, )
Sets Stretch (default CompositionStretch::Fill, FerroUI overlay).
Sourcepub fn horizontal_alignment_ratio(&self) -> f32
pub fn horizontal_alignment_ratio(&self) -> f32
HorizontalAlignmentRatio (animated, default 0.5, FerroUI overlay).
Sourcepub fn set_horizontal_alignment_ratio(
&self,
host: &dyn CompositionSurfaceBrushHooks,
value: f32,
)
pub fn set_horizontal_alignment_ratio( &self, host: &dyn CompositionSurfaceBrushHooks, value: f32, )
Sets HorizontalAlignmentRatio (animated, default 0.5, FerroUI overlay).
Sourcepub fn vertical_alignment_ratio(&self) -> f32
pub fn vertical_alignment_ratio(&self) -> f32
VerticalAlignmentRatio (animated, default 0.5, FerroUI overlay).
Sourcepub fn set_vertical_alignment_ratio(
&self,
host: &dyn CompositionSurfaceBrushHooks,
value: f32,
)
pub fn set_vertical_alignment_ratio( &self, host: &dyn CompositionSurfaceBrushHooks, value: f32, )
Sets VerticalAlignmentRatio (animated, default 0.5, FerroUI overlay).
Sourcepub fn bitmap_interpolation_mode(&self) -> CompositionBitmapInterpolationMode
pub fn bitmap_interpolation_mode(&self) -> CompositionBitmapInterpolationMode
BitmapInterpolationMode (default CompositionBitmapInterpolationMode::Linear, FerroUI overlay).
Sourcepub fn set_bitmap_interpolation_mode(
&self,
host: &dyn CompositionSurfaceBrushHooks,
value: CompositionBitmapInterpolationMode,
)
pub fn set_bitmap_interpolation_mode( &self, host: &dyn CompositionSurfaceBrushHooks, value: CompositionBitmapInterpolationMode, )
Sets BitmapInterpolationMode (default CompositionBitmapInterpolationMode::Linear, FerroUI overlay).
Sourcepub fn anchor_point(&self) -> Vector
pub fn anchor_point(&self) -> Vector
AnchorPoint (animated, FerroUI overlay).
Sourcepub fn set_anchor_point(
&self,
host: &dyn CompositionSurfaceBrushHooks,
value: Vector,
)
pub fn set_anchor_point( &self, host: &dyn CompositionSurfaceBrushHooks, value: Vector, )
Sets AnchorPoint (animated, FerroUI overlay).
Sourcepub fn center_point(&self) -> Vector
pub fn center_point(&self) -> Vector
CenterPoint (animated, FerroUI overlay).
Sourcepub fn set_center_point(
&self,
host: &dyn CompositionSurfaceBrushHooks,
value: Vector,
)
pub fn set_center_point( &self, host: &dyn CompositionSurfaceBrushHooks, value: Vector, )
Sets CenterPoint (animated, FerroUI overlay).
Sourcepub fn set_offset(&self, host: &dyn CompositionSurfaceBrushHooks, value: Vector)
pub fn set_offset(&self, host: &dyn CompositionSurfaceBrushHooks, value: Vector)
Sets Offset (animated, FerroUI overlay).
Sourcepub fn rotation_angle(&self) -> f32
pub fn rotation_angle(&self) -> f32
RotationAngle (animated, FerroUI overlay).
Sourcepub fn set_rotation_angle(
&self,
host: &dyn CompositionSurfaceBrushHooks,
value: f32,
)
pub fn set_rotation_angle( &self, host: &dyn CompositionSurfaceBrushHooks, value: f32, )
Sets RotationAngle (animated, FerroUI overlay).
Sourcepub fn scale(&self) -> Vector
pub fn scale(&self) -> Vector
Scale (animated, default Vector::new(1.0, 1.0), FerroUI overlay).
Sourcepub fn set_scale(&self, host: &dyn CompositionSurfaceBrushHooks, value: Vector)
pub fn set_scale(&self, host: &dyn CompositionSurfaceBrushHooks, value: Vector)
Sets Scale (animated, default Vector::new(1.0, 1.0), FerroUI overlay).
Sourcepub fn transform_matrix(&self) -> Matrix
pub fn transform_matrix(&self) -> Matrix
TransformMatrix (animated, default Matrix::IDENTITY, FerroUI overlay).
Sourcepub fn set_transform_matrix(
&self,
host: &dyn CompositionSurfaceBrushHooks,
value: Matrix,
)
pub fn set_transform_matrix( &self, host: &dyn CompositionSurfaceBrushHooks, value: Matrix, )
Sets TransformMatrix (animated, default Matrix::IDENTITY, FerroUI overlay).
Sourcepub fn snap_to_pixels(&self) -> bool
pub fn snap_to_pixels(&self) -> bool
SnapToPixels (FerroUI overlay).
Sourcepub fn set_snap_to_pixels(
&self,
host: &dyn CompositionSurfaceBrushHooks,
value: bool,
)
pub fn set_snap_to_pixels( &self, host: &dyn CompositionSurfaceBrushHooks, value: bool, )
Sets SnapToPixels (FerroUI overlay).
Sourcepub fn start_animation(
&self,
host: &dyn CompositionSurfaceBrushHooks,
property_name: &str,
animation: &dyn ICompositionAnimation,
final_value: Option<ExpressionVariant>,
) -> bool
pub fn start_animation( &self, host: &dyn CompositionSurfaceBrushHooks, property_name: &str, animation: &dyn ICompositionAnimation, final_value: Option<ExpressionVariant>, ) -> bool
Connects an animation with the named property. Returns false when
neither this class nor its generated bases have an animated property
of that name: the caller continues with its hand-written base.
Sourcepub fn serialize_changes_core(
&self,
host: &dyn CompositionSurfaceBrushHooks,
writer: &mut BatchStreamWriter<'_>,
)
pub fn serialize_changes_core( &self, host: &dyn CompositionSurfaceBrushHooks, writer: &mut BatchStreamWriter<'_>, )
Writes the changes of the object: the base class first, then the changed-fields mask and the changed members of this class.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CompositionSurfaceBrushProps
impl !RefUnwindSafe for CompositionSurfaceBrushProps
impl !Send for CompositionSurfaceBrushProps
impl !Sync for CompositionSurfaceBrushProps
impl !UnwindSafe for CompositionSurfaceBrushProps
impl Unpin for CompositionSurfaceBrushProps
impl UnsafeUnpin for CompositionSurfaceBrushProps
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