FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionLinearGradientBrush

    struct · ferroui-base · v0.5.0

    struct CompositionLinearGradientBrush
    

    A composition brush that paints with a linear gradient.

    View source

    Members

    from_brush

    fn from_brush(brush: &Rc<CompositionBrush>) -> Option<CompositionLinearGradientBrush>
    

    The handle of brush as this class, if it is one.

    Source

    start_point

    fn start_point(self: &Self) -> RelativePoint
    

    Source

    set_start_point

    fn set_start_point(self: &Self, value: RelativePoint)
    

    Source

    end_point

    fn end_point(self: &Self) -> RelativePoint
    

    Source

    set_end_point

    fn set_end_point(self: &Self, value: RelativePoint)
    

    Source

    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.

    Source

    set_start_point_vector

    fn set_start_point_vector(self: &Self, value: Vector)
    

    Source

    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.

    Source

    set_end_point_vector

    fn set_end_point_vector(self: &Self, value: Vector)
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Deref

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.