#[repr(i32)]pub enum CompositionStrokeCap {
Flat = 0,
Square = 1,
Round = 2,
Triangle = 3,
}Expand description
The shape at an end of a stroke or of a dash (WinUI
CompositionStrokeCap).
Variants§
Flat = 0
The stroke ends at the end point.
Square = 1
A square half the thickness long beyond the end point.
Round = 2
A half circle beyond the end point.
Triangle = 3
A triangle half the thickness high beyond the end point.
Implementations§
Source§impl CompositionStrokeCap
impl CompositionStrokeCap
Sourcepub fn to_pen_line_cap(self) -> PenLineCap
pub fn to_pen_line_cap(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.
Trait Implementations§
Source§impl BatchValue for CompositionStrokeCap
impl BatchValue for CompositionStrokeCap
Source§impl Clone for CompositionStrokeCap
impl Clone for CompositionStrokeCap
impl Copy for CompositionStrokeCap
Source§impl Debug for CompositionStrokeCap
impl Debug for CompositionStrokeCap
Source§impl Default for CompositionStrokeCap
impl Default for CompositionStrokeCap
impl Eq for CompositionStrokeCap
Source§impl Hash for CompositionStrokeCap
impl Hash for CompositionStrokeCap
Source§impl PartialEq for CompositionStrokeCap
impl PartialEq for CompositionStrokeCap
impl StructuralPartialEq for CompositionStrokeCap
Auto Trait Implementations§
impl Freeze for CompositionStrokeCap
impl RefUnwindSafe for CompositionStrokeCap
impl Send for CompositionStrokeCap
impl Sync for CompositionStrokeCap
impl Unpin for CompositionStrokeCap
impl UnsafeUnpin for CompositionStrokeCap
impl UnwindSafe for CompositionStrokeCap
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more