pub struct GraphicProperties {
pub stroke: Option<Color>,
pub stroke_width: Option<Length>,
pub opacity: Option<f32>,
/* 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.
Implementations§
Trait Implementations§
Source§impl Clone for GraphicProperties
impl Clone for GraphicProperties
Source§fn clone(&self) -> GraphicProperties
fn clone(&self) -> GraphicProperties
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphicProperties
impl Debug for GraphicProperties
Source§impl Default for GraphicProperties
impl Default for GraphicProperties
Source§fn default() -> GraphicProperties
fn default() -> GraphicProperties
Returns the “default value” for a type. Read more
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