skia_
safe
0.81.0
Stroke
Rec
Aliased type
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
skia_safe
::
stroke_rec
Type Alias
StrokeRec
Copy item path
Source
pub type StrokeRec =
Handle
<SkStrokeRec>;
Aliased Type
§
struct StrokeRec(
/* private fields */
);
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