#[repr(i32)]pub enum CompositionStrokeLineJoin {
Miter = 0,
Bevel = 1,
Round = 2,
MiterOrBevel = 3,
}Expand description
How the segments of a stroke are joined (WinUI
CompositionStrokeLineJoin).
Variants§
Miter = 0
A sharp corner, cut at the miter limit.
Bevel = 1
A corner cut off at the outer ends of the segments.
Round = 2
A rounded corner.
MiterOrBevel = 3
A sharp corner, or a bevel beyond the miter limit.
Implementations§
Source§impl CompositionStrokeLineJoin
impl CompositionStrokeLineJoin
Sourcepub fn to_pen_line_join(self) -> PenLineJoin
pub fn to_pen_line_join(self) -> PenLineJoin
The line join of the platform pen.
Deviation (winui-composition.md): the miter join of the platform pens
becomes a bevel beyond the miter limit, so Miter (cut at the limit
in WinUI) and MiterOrBevel both draw that join.
Trait Implementations§
Source§impl Clone for CompositionStrokeLineJoin
impl Clone for CompositionStrokeLineJoin
impl Copy for CompositionStrokeLineJoin
Source§impl Debug for CompositionStrokeLineJoin
impl Debug for CompositionStrokeLineJoin
Source§impl Default for CompositionStrokeLineJoin
impl Default for CompositionStrokeLineJoin
impl Eq for CompositionStrokeLineJoin
Source§impl Hash for CompositionStrokeLineJoin
impl Hash for CompositionStrokeLineJoin
impl StructuralPartialEq for CompositionStrokeLineJoin
Auto Trait Implementations§
impl Freeze for CompositionStrokeLineJoin
impl RefUnwindSafe for CompositionStrokeLineJoin
impl Send for CompositionStrokeLineJoin
impl Sync for CompositionStrokeLineJoin
impl Unpin for CompositionStrokeLineJoin
impl UnsafeUnpin for CompositionStrokeLineJoin
impl UnwindSafe for CompositionStrokeLineJoin
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