Struct epaint::stroke::PathStroke
source · pub struct PathStroke {
pub width: f32,
pub color: ColorMode,
}
Expand description
Describes the width and color of paths. The color can either be solid or provided by a callback. For more information, see ColorMode
The default stroke is the same as Stroke::NONE
.
Fields§
§width: f32
§color: ColorMode
Implementations§
source§impl PathStroke
impl PathStroke
sourcepub const NONE: Self = _
pub const NONE: Self = _
Same as PathStroke::default
.
pub fn new(width: impl Into<f32>, color: impl Into<Color32>) -> Self
Trait Implementations§
source§impl Clone for PathStroke
impl Clone for PathStroke
source§fn clone(&self) -> PathStroke
fn clone(&self) -> PathStroke
Returns a copy 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 PathStroke
impl Debug for PathStroke
source§impl Default for PathStroke
impl Default for PathStroke
source§fn default() -> PathStroke
fn default() -> PathStroke
Returns the “default value” for a type. Read more
source§impl<Color> From<(f32, Color)> for PathStroke
impl<Color> From<(f32, Color)> for PathStroke
source§impl From<Stroke> for PathStroke
impl From<Stroke> for PathStroke
source§impl PartialEq for PathStroke
impl PartialEq for PathStroke
source§fn eq(&self, other: &PathStroke) -> bool
fn eq(&self, other: &PathStroke) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PathStroke
Auto Trait Implementations§
impl Freeze for PathStroke
impl !RefUnwindSafe for PathStroke
impl Send for PathStroke
impl Sync for PathStroke
impl Unpin for PathStroke
impl !UnwindSafe for PathStroke
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