pub struct ShapeStyle {
pub line_ref: (u32, ColorRef),
pub fill_ref: (u32, ColorRef),
pub effect_ref: (u32, ColorRef),
pub font_ref: (String, Option<ColorRef>),
}Expand description
A shape’s theme style references (p:style): which fill/line/effect of the theme’s format scheme
to use, with which colour, and the theme font and colour for its text.
Fields§
§line_ref: (u32, ColorRef)§fill_ref: (u32, ColorRef)§effect_ref: (u32, ColorRef)§font_ref: (String, Option<ColorRef>)major, minor or none, with the text colour.
Implementations§
Source§impl ShapeStyle
impl ShapeStyle
Sourcepub fn accent(slot: SchemeSlot) -> Self
pub fn accent(slot: SchemeSlot) -> Self
The default for newly drawn shapes: accent 1 fill, darker accent 1 outline, light text.
Sourcepub fn line(slot: SchemeSlot) -> Self
pub fn line(slot: SchemeSlot) -> Self
The default for lines/connectors.
Trait Implementations§
Source§impl Clone for ShapeStyle
impl Clone for ShapeStyle
Source§impl Debug for ShapeStyle
impl Debug for ShapeStyle
Source§impl<'de> Deserialize<'de> for ShapeStyle
impl<'de> Deserialize<'de> for ShapeStyle
Source§fn 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
Source§impl PartialEq for ShapeStyle
impl PartialEq for ShapeStyle
Source§impl Serialize for ShapeStyle
impl Serialize for ShapeStyle
impl StructuralPartialEq for ShapeStyle
Auto Trait Implementations§
impl Freeze for ShapeStyle
impl RefUnwindSafe for ShapeStyle
impl Send for ShapeStyle
impl Sync for ShapeStyle
impl Unpin for ShapeStyle
impl UnsafeUnpin for ShapeStyle
impl UnwindSafe for ShapeStyle
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