Struct graphics_style::LineColor
source · [−]pub struct LineColor {
pub value: RGBA,
}Expand description
Represent the color of a line, default color is black
Fields
value: RGBAActual value for StyleResolver::line_color
Trait Implementations
sourceimpl AddAssign<&'_ LineColor> for LineStyle
impl AddAssign<&'_ LineColor> for LineStyle
sourcefn add_assign(&mut self, rhs: &LineColor)
fn add_assign(&mut self, rhs: &LineColor)
Performs the += operation. Read more
sourceimpl AddAssign<&'_ LineColor> for StyleContext
impl AddAssign<&'_ LineColor> for StyleContext
sourcefn add_assign(&mut self, rhs: &LineColor)
fn add_assign(&mut self, rhs: &LineColor)
Performs the += operation. Read more
sourceimpl AddAssign<LineColor> for LineStyle
impl AddAssign<LineColor> for LineStyle
sourcefn add_assign(&mut self, rhs: LineColor)
fn add_assign(&mut self, rhs: LineColor)
Performs the += operation. Read more
sourceimpl AddAssign<LineColor> for StyleContext
impl AddAssign<LineColor> for StyleContext
sourcefn add_assign(&mut self, rhs: LineColor)
fn add_assign(&mut self, rhs: LineColor)
Performs the += operation. Read more
sourceimpl<'de> Deserialize<'de> for LineColor
impl<'de> Deserialize<'de> for LineColor
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl GraphicsStyle for LineColor
impl GraphicsStyle for LineColor
sourcefn draw_style(&self, state: &mut StyleContext)
fn draw_style(&self, state: &mut StyleContext)
Draws a shape with a style. Read more
impl Copy for LineColor
impl StructuralPartialEq for LineColor
Auto Trait Implementations
impl RefUnwindSafe for LineColor
impl Send for LineColor
impl Sync for LineColor
impl Unpin for LineColor
impl UnwindSafe for LineColor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more