☰
StrokeRec
Methods
apply_to_paint
apply_to_path
apply_to_path_inplace
cap
from_paint
has_equal_effect
inflation_radius
inflation_radius_from_paint_and_style
inflation_radius_from_params
is_fill_style
is_hairline_style
join
miter
need_to_apply
new
new_fill
new_hairline
res_scale
set_fill_style
set_hairline_style
set_res_scale
set_stroke_params
set_stroke_style
style
width
Trait Implementations
Debug
Send
Sync
In skia_safe::stroke_rec
?
Type Definition
skia_safe
::
stroke_rec
::
StrokeRec
source
·
[
−
]
pub type StrokeRec =
Handle
<
SkStrokeRec
>;
Implementations
§
source
§
impl
StrokeRec
source
pub fn
new
(init_style:
InitStyle
) -> Self
source
pub fn
new_hairline
() -> Self
source
pub fn
new_fill
() -> Self
source
pub fn
from_paint
( paint: &
Paint
, style: impl
Into
<
Option
<
Style
>>, res_scale: impl
Into
<
Option
<
scalar
>> ) -> Self
source
pub fn
style
(&self) ->
Style
source
pub fn
width
(&self) ->
scalar
source
pub fn
miter
(&self) ->
scalar
source
pub fn
cap
(&self) ->
Cap
source
pub fn
join
(&self) ->
Join
source
pub fn
is_hairline_style
(&self) ->
bool
source
pub fn
is_fill_style
(&self) ->
bool
source
pub fn
set_fill_style
(&mut self) ->
&mut Self
source
pub fn
set_hairline_style
(&mut self) ->
&mut Self
source
pub fn
set_stroke_style
( &mut self, width:
scalar
, stroke_and_fill: impl
Into
<
Option
<
bool
>> ) ->
&mut Self
source
pub fn
set_stroke_params
( &mut self, cap:
Cap
, join:
Join
, miter_limit:
scalar
) ->
&mut Self
source
pub fn
res_scale
(&self) ->
scalar
source
pub fn
set_res_scale
(&mut self, rs:
scalar
)
source
pub fn
need_to_apply
(&self) ->
bool
source
pub fn
apply_to_path
(&self, dst: &mut
Path
, src: &
Path
) ->
bool
source
pub fn
apply_to_path_inplace
(&self, path: &mut
Path
) ->
bool
source
pub fn
apply_to_paint
(&self, paint: &mut
Paint
)
source
pub fn
inflation_radius
(&self) ->
scalar
source
pub fn
inflation_radius_from_paint_and_style
( paint: &
Paint
, style:
Style
) ->
scalar
source
pub fn
inflation_radius_from_params
( join:
Join
, miter_limit:
scalar
, cap:
Cap
, stroke_width:
scalar
) ->
scalar
source
pub fn
has_equal_effect
(&self, other: &
StrokeRec
) ->
bool
Trait Implementations
§
source
§
impl
Debug
for
StrokeRec
source
§
fn
fmt
(&self, f: &mut
Formatter
<'_>) ->
Result
Formats the value using the given formatter.
Read more
source
§
impl
Send
for
StrokeRec
source
§
impl
Sync
for
StrokeRec