vizia::vg::stroke_rec

Type Alias StrokeRec

pub type StrokeRec = Handle<SkStrokeRec>;

Aliased Type§

struct StrokeRec(/* private fields */);

Implementations

§

impl Handle<SkStrokeRec>

pub fn new(init_style: SkStrokeRec_InitStyle) -> Handle<SkStrokeRec>

pub fn new_hairline() -> Handle<SkStrokeRec>

pub fn new_fill() -> Handle<SkStrokeRec>

pub fn from_paint( paint: &Handle<SkPaint>, style: impl Into<Option<SkPaint_Style>>, res_scale: impl Into<Option<f32>>, ) -> Handle<SkStrokeRec>

pub fn style(&self) -> SkStrokeRec_Style

pub fn width(&self) -> f32

pub fn miter(&self) -> f32

pub fn cap(&self) -> SkPaint_Cap

pub fn join(&self) -> SkPaint_Join

pub fn is_hairline_style(&self) -> bool

pub fn is_fill_style(&self) -> bool

pub fn set_fill_style(&mut self) -> &mut Handle<SkStrokeRec>

pub fn set_hairline_style(&mut self) -> &mut Handle<SkStrokeRec>

pub fn set_stroke_style( &mut self, width: f32, stroke_and_fill: impl Into<Option<bool>>, ) -> &mut Handle<SkStrokeRec>

pub fn set_stroke_params( &mut self, cap: SkPaint_Cap, join: SkPaint_Join, miter_limit: f32, ) -> &mut Handle<SkStrokeRec>

pub fn res_scale(&self) -> f32

pub fn set_res_scale(&mut self, rs: f32)

pub fn need_to_apply(&self) -> bool

pub fn apply_to_path( &self, dst: &mut Handle<SkPath>, src: &Handle<SkPath>, ) -> bool

pub fn apply_to_path_inplace(&self, path: &mut Handle<SkPath>) -> bool

pub fn apply_to_paint(&self, paint: &mut Handle<SkPaint>)

pub fn inflation_radius(&self) -> f32

pub fn inflation_radius_from_paint_and_style( paint: &Handle<SkPaint>, style: SkPaint_Style, ) -> f32

pub fn inflation_radius_from_params( join: SkPaint_Join, miter_limit: f32, cap: SkPaint_Cap, stroke_width: f32, ) -> f32

pub fn has_equal_effect(&self, other: &Handle<SkStrokeRec>) -> bool

Trait Implementations

§

impl<N> AsRef<Handle<N>> for Handle<N>
where N: NativeDrop,

§

fn as_ref(&self) -> &Handle<N>

Converts this type into a shared reference of the (usually inferred) input type.
§

impl<N> Clone for Handle<N>
where N: NativeDrop + NativeClone,

§

fn clone(&self) -> Handle<N>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Handle<SkStrokeRec>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<N> Drop for Handle<N>
where N: NativeDrop,

§

fn drop(&mut self)

Executes the destructor for this type. Read more
§

impl<N> Hash for Handle<N>
where N: NativeDrop + NativeHash,

§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl<N> PartialEq for Handle<N>
where N: NativeDrop + NativePartialEq,

§

fn eq(&self, rhs: &Handle<N>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<N> RefWrapper<N> for Handle<N>
where N: NativeDrop,

§

fn wrap_ref(native: &N) -> &Handle<N>

§

fn wrap_mut(native: &mut N) -> &mut Handle<N>

§

fn inner(&self) -> &N

§

fn inner_mut(&mut self) -> &mut N

§

impl<N> ValueWrapper<N> for Handle<N>
where N: NativeDrop,

§

fn wrap(native: N) -> Handle<N>
where N: NativeDrop,

§

fn unwrap(self) -> N

§

fn inner(&self) -> &N

§

fn inner_mut(&mut self) -> &mut N

§

impl Send for Handle<SkStrokeRec>

§

impl Sync for Handle<SkStrokeRec>