pub struct AnchoredDrawing {Show 15 fields
pub behind_doc: bool,
pub rel_h: ST_RelativeFromH,
pub off_h: f64,
pub rel_v: ST_RelativeFromV,
pub off_v: f64,
pub width: f64,
pub height: f64,
pub wrap: WrapType,
pub dist_top: f64,
pub dist_bottom: f64,
pub dist_left: f64,
pub dist_right: f64,
pub align_h: Option<AnchorAlignH>,
pub align_v: Option<AnchorAlignV>,
pub content: AnchoredContent,
}Expand description
A floating drawing anchored to a paragraph.
Offsets are kept in points alongside the frame they are measured from. A
wp:anchor offset is meaningless on its own: the same number means a
different place depending on whether it is relative to the page, the
margin, the text column or the paragraph.
Fields§
§behind_doc: boolRender underneath the text rather than on top of it.
rel_h: ST_RelativeFromHFrame the horizontal offset is measured from.
off_h: f64Horizontal offset in points.
rel_v: ST_RelativeFromVFrame the vertical offset is measured from.
off_v: f64Vertical offset in points.
width: f64Width in points.
height: f64Height in points.
wrap: WrapTypeHow text flows around the drawing.
dist_top: f64Space kept between the drawing and the text wrapping around it, in points.
dist_bottom: f64§dist_left: f64§dist_right: f64§align_h: Option<AnchorAlignH>Horizontal alignment, used instead of the offset when present.
align_v: Option<AnchorAlignV>Vertical alignment, used instead of the offset when present.
content: AnchoredContentWhat the drawing actually holds.
Trait Implementations§
Source§impl Clone for AnchoredDrawing
impl Clone for AnchoredDrawing
Source§fn clone(&self) -> AnchoredDrawing
fn clone(&self) -> AnchoredDrawing
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more