CompositionLinearGradientBrush
struct · ferroui-base · v0.5.0
struct CompositionLinearGradientBrush
A composition brush that paints with a linear gradient.
Members
from_brushstart_pointset_start_pointend_pointset_end_pointstart_point_vectorset_start_point_vectorend_point_vectorset_end_point_vector
from_brush
fn from_brush(brush: &Rc<CompositionBrush>) -> Option<CompositionLinearGradientBrush>
The handle of brush as this class, if it is one.
start_point
fn start_point(self: &Self) -> RelativePoint
set_start_point
fn set_start_point(self: &Self, value: RelativePoint)
end_point
fn end_point(self: &Self) -> RelativePoint
set_end_point
fn set_end_point(self: &Self, value: RelativePoint)
start_point_vector
fn start_point_vector(self: &Self) -> Vector
StartPoint as a WinUI Vector2, in the unit of the mapping mode
(default (0, 0)). The upstream member is
start_point.
Deviation (winui-composition.md): animations target the upstream
StartPoint (a relative point), not a Vector2.
set_start_point_vector
fn set_start_point_vector(self: &Self, value: Vector)
end_point_vector
fn end_point_vector(self: &Self) -> Vector
EndPoint as a WinUI Vector2, in the unit of the mapping mode.
Deviation (winui-composition.md): the default is the one of the
upstream brush, (0, 0), not the (1, 0) of WinUI.
set_end_point_vector
fn set_end_point_vector(self: &Self, value: Vector)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedErasedDestructorIntoEitherCloneDeref
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.