pub struct GraphicProperties {
pub stroke: Option<Color>,
pub stroke_width: Option<Length>,
pub opacity: Option<f32>,
pub text_anchor: Option<Anchor>,
pub decorative: Option<bool>,
/* 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.
decorative: Option<bool>Whether the shape is decoration that says nothing, which an accessible
reading skips: LibreOffice’s loext:decorative, the one way ODF
producers write it.