pub enum Fill {
None,
Solid(Color),
Gradient(String),
Image(String),
}Expand description
What fills a shape or the ground behind a slide.
A named gradient rather than the gradient itself, because ODF defines each
one once in office:styles and refers to it by name from every style that
uses it — resolving it here would copy it per style. Styles::gradient
looks it up.
Variants§
None
Nothing is drawn: whatever is behind shows through.
Solid(Color)
One colour.
Gradient(String)
The gradient of this name.
Image(String)
The picture of this name, stretched over the shape.
Only stretched. ODF also tiles a fill image, at a size the style gives,
and a tiled fill is Fill::None here rather than a stretched
approximation — one tile blown up to the size of a slide is not a
smaller version of the same thing.
Trait Implementations§
impl StructuralPartialEq for Fill
Auto Trait Implementations§
impl Freeze for Fill
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin for Fill
impl UnsafeUnpin for Fill
impl UnwindSafe for Fill
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