pub struct ShapeFill {
pub color: String,
pub transparency: Option<u32>,
}Expand description
Shape fill/color properties
Fields§
§color: String§transparency: Option<u32>Implementations§
Source§impl ShapeFill
impl ShapeFill
Sourcepub fn with_transparency(self, percent: u32) -> Self
pub fn with_transparency(self, percent: u32) -> Self
Set transparency (0-100 percent)
Sourcepub fn transparency(self, percent: u32) -> Self
pub fn transparency(self, percent: u32) -> Self
Set transparency (0-100 percent) - builder style (deprecated, use with_transparency)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ShapeFill
impl RefUnwindSafe for ShapeFill
impl Send for ShapeFill
impl Sync for ShapeFill
impl Unpin for ShapeFill
impl UnsafeUnpin for ShapeFill
impl UnwindSafe for ShapeFill
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