Struct graphics_style::DiskStyle
source · [−]pub struct DiskStyle {
pub disk_fill_color: Option<DiskFillColor>,
pub disk_edge_width: Option<DiskEdgeWidth>,
pub disk_edge_color: Option<DiskEdgeColor>,
}Expand description
Fields
disk_fill_color: Option<DiskFillColor>Represent the color of a disk, default color is black, see more in DiskFillColor.
disk_edge_width: Option<DiskEdgeWidth>Represent the edge width of a disk, default width is 1.0, see more in DiskEdgeWidth.
disk_edge_color: Option<DiskEdgeColor>Represent the edge color of a disk, default is transparent, see more in DiskEdgeColor.
Trait Implementations
sourceimpl AddAssign<&'_ DiskEdgeColor> for DiskStyle
impl AddAssign<&'_ DiskEdgeColor> for DiskStyle
sourcefn add_assign(&mut self, rhs: &DiskEdgeColor)
fn add_assign(&mut self, rhs: &DiskEdgeColor)
Performs the += operation. Read more
sourceimpl AddAssign<&'_ DiskEdgeWidth> for DiskStyle
impl AddAssign<&'_ DiskEdgeWidth> for DiskStyle
sourcefn add_assign(&mut self, rhs: &DiskEdgeWidth)
fn add_assign(&mut self, rhs: &DiskEdgeWidth)
Performs the += operation. Read more
sourceimpl AddAssign<&'_ DiskFillColor> for DiskStyle
impl AddAssign<&'_ DiskFillColor> for DiskStyle
sourcefn add_assign(&mut self, rhs: &DiskFillColor)
fn add_assign(&mut self, rhs: &DiskFillColor)
Performs the += operation. Read more
sourceimpl AddAssign<&'_ DiskStyle> for DiskStyle
impl AddAssign<&'_ DiskStyle> for DiskStyle
sourcefn add_assign(&mut self, rhs: &Self)
fn add_assign(&mut self, rhs: &Self)
Performs the += operation. Read more
sourceimpl AddAssign<DiskEdgeColor> for DiskStyle
impl AddAssign<DiskEdgeColor> for DiskStyle
sourcefn add_assign(&mut self, rhs: DiskEdgeColor)
fn add_assign(&mut self, rhs: DiskEdgeColor)
Performs the += operation. Read more
sourceimpl AddAssign<DiskEdgeWidth> for DiskStyle
impl AddAssign<DiskEdgeWidth> for DiskStyle
sourcefn add_assign(&mut self, rhs: DiskEdgeWidth)
fn add_assign(&mut self, rhs: DiskEdgeWidth)
Performs the += operation. Read more
sourceimpl AddAssign<DiskFillColor> for DiskStyle
impl AddAssign<DiskFillColor> for DiskStyle
sourcefn add_assign(&mut self, rhs: DiskFillColor)
fn add_assign(&mut self, rhs: DiskFillColor)
Performs the += operation. Read more
sourceimpl AddAssign<DiskStyle> for DiskStyle
impl AddAssign<DiskStyle> for DiskStyle
sourcefn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the += operation. Read more
sourceimpl<'de> Deserialize<'de> for DiskStyle
impl<'de> Deserialize<'de> for DiskStyle
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 DiskStyle
impl GraphicsStyle for DiskStyle
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 DiskStyle
impl StructuralPartialEq for DiskStyle
Auto Trait Implementations
impl RefUnwindSafe for DiskStyle
impl Send for DiskStyle
impl Sync for DiskStyle
impl Unpin for DiskStyle
impl UnwindSafe for DiskStyle
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)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more