Struct sixtyfps_corelib::graphics::LinearGradientBrush [−][src]
#[repr(transparent)]pub struct LinearGradientBrush(_);
Expand description
The LinearGradientBrush describes a way of filling a shape with different colors, which are interpolated between different stops. The colors are aligned with a line that’s rotated by the LinearGradient’s angle.
Implementations
Creates a new linear gradient, described by the specified angle and the provided color stops.
The angle need to be specified in degrees. The stops don’t need to be sorted as this function will sort them.
Returns the color stops of the linear gradient. The stops are sorted by positions.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for LinearGradientBrush
impl !Send for LinearGradientBrush
impl !Sync for LinearGradientBrush
impl Unpin for LinearGradientBrush
impl UnwindSafe for LinearGradientBrush
Blanket Implementations
Mutably borrows from an owned value. Read more