pub type StrokeRec = Handle<SkStrokeRec>;
Aliased Type§
pub struct StrokeRec(/* private fields */);
Implementations§
Source§impl StrokeRec
impl StrokeRec
pub fn new(init_style: InitStyle) -> Self
pub fn new_hairline() -> Self
pub fn new_fill() -> Self
pub fn from_paint( paint: &Paint, style: impl Into<Option<Style>>, res_scale: impl Into<Option<scalar>>, ) -> Self
pub fn style(&self) -> Style
pub fn width(&self) -> scalar
pub fn miter(&self) -> scalar
pub fn cap(&self) -> Cap
pub fn join(&self) -> Join
pub fn is_hairline_style(&self) -> bool
pub fn is_fill_style(&self) -> bool
pub fn set_fill_style(&mut self) -> &mut Self
pub fn set_hairline_style(&mut self) -> &mut Self
pub fn set_stroke_style( &mut self, width: scalar, stroke_and_fill: impl Into<Option<bool>>, ) -> &mut Self
pub fn set_stroke_params( &mut self, cap: Cap, join: Join, miter_limit: scalar, ) -> &mut Self
pub fn res_scale(&self) -> scalar
pub fn set_res_scale(&mut self, rs: scalar)
pub fn need_to_apply(&self) -> bool
pub fn apply_to_path(&self, dst: &mut PathBuilder, src: &Path) -> bool
pub fn apply_to_path_inplace(&self, path: &mut Path) -> bool
👎Deprecated since 0.88.0: Use apply_to_path()