FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionStrokeCap

    enum · ferroui-base · v0.5.0

    enum CompositionStrokeCap
    

    The shape at an end of a stroke or of a dash (WinUI CompositionStrokeCap).

    View source

    Members

    Flat

    Flat = 0
    

    The stroke ends at the end point.

    Source

    Square

    Square = 1
    

    A square half the thickness long beyond the end point.

    Source

    Round

    Round = 2
    

    A half circle beyond the end point.

    Source

    Triangle

    Triangle = 3
    

    A triangle half the thickness high beyond the end point.

    Source

    to_pen_line_cap

    fn to_pen_line_cap(self: Self) -> PenLineCap
    

    The line cap of the platform pen.

    Deviation (winui-composition.md): the pens of FerroUI have no triangle cap; Triangle is drawn as Round, the cap that comes closest.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • BatchValue
    • ServerPropertyValue

    Availability

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