pub enum StrokeStyle {
Hairline,
Fill,
Stroke {
width: f32,
stroke_and_fill: bool,
},
StrokeAndFill {
width: f32,
},
}Expand description
描边样式快照,由 SkStrokeRec::getStyle 与宽度组合而成。
Stroke style snapshot from SkStrokeRec::getStyle plus width.
Variants§
Hairline
极细线。Hairline stroke.
Fill
填充(无描边扩展)。Fill only (no stroke expansion).
Stroke
描边宽度;stroke_and_fill 与原生 kStroke_Style 一致时为 false。
Stroke width; stroke_and_fill is false for native kStroke_Style.
Fields
StrokeAndFill
描边并填充。Stroke and fill.
Trait Implementations§
Source§impl Clone for StrokeStyle
impl Clone for StrokeStyle
Source§fn clone(&self) -> StrokeStyle
fn clone(&self) -> StrokeStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StrokeStyle
impl Debug for StrokeStyle
Source§impl PartialEq for StrokeStyle
impl PartialEq for StrokeStyle
impl Copy for StrokeStyle
impl StructuralPartialEq for StrokeStyle
Auto Trait Implementations§
impl Freeze for StrokeStyle
impl RefUnwindSafe for StrokeStyle
impl Send for StrokeStyle
impl Sync for StrokeStyle
impl Unpin for StrokeStyle
impl UnsafeUnpin for StrokeStyle
impl UnwindSafe for StrokeStyle
Blanket Implementations§
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