Skip to main content

read_fill

Function read_fill 

Source
pub fn read_fill(reader: &mut Reader<'_>) -> Result<Option<Fill>, Error>
Expand description

Parses a single bare EG_FillProperties choice (<a:noFill/>, <a:solidFill>, <a:gradFill>, <a:pattFill>, or <a:blipFill>) from a reader positioned wherever the caller expects to find it, skipping over any other, unrelated children along the way — unlike read_shape_properties (which parses a whole <*:spPr>’s worth of xfrm/geometry/fill/line), this is for a host embedding a bare fill choice on its own, outside any <*:spPr> wrapper (e.g. powerpoint-ooxml’s own <p:bgPr> slide background, point 4). Returns None if no recognized fill child is found before the first End/Eof at this nesting level.