pub struct GraphicProperties {
pub stroke: Option<Color>,
pub stroke_width: Option<Length>,
pub opacity: Option<f32>,
pub text_anchor: Option<Anchor>,
/* private fields */
}Expand description
How a shape is filled and outlined.
The kind of fill and the value it uses are separate properties and inherit
separately, which is the whole reason they are separate fields here. A
style may set draw:fill-color and say nothing about draw:fill: that names
the colour a solid fill would use and does not turn the fill on, so a shape
whose parent style says draw:fill="none" stays empty. Reading the colour as
though it were the fill puts a white box over the slide, which is what a
template’s subtitle placeholder did until this was split.
Fields§
§stroke: Option<Color>Outline colour, absent when the stroke is none.
stroke_width: Option<Length>Outline width.
opacity: Option<f32>How opaque the fill is, from zero to one.
text_anchor: Option<Anchor>Where the shape’s own label sits between its top and bottom edges.
Implementations§
Trait Implementations§
Source§impl Clone for GraphicProperties
impl Clone for GraphicProperties
Source§impl Debug for GraphicProperties
impl Debug for GraphicProperties
Source§impl Default for GraphicProperties
impl Default for GraphicProperties
Source§impl PartialEq for GraphicProperties
impl PartialEq for GraphicProperties
impl StructuralPartialEq for GraphicProperties
Auto Trait Implementations§
impl Freeze for GraphicProperties
impl RefUnwindSafe for GraphicProperties
impl Send for GraphicProperties
impl Sync for GraphicProperties
impl Unpin for GraphicProperties
impl UnsafeUnpin for GraphicProperties
impl UnwindSafe for GraphicProperties
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