pub struct AnchoredDrawing {
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 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.
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
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 moreAuto Trait Implementations§
impl Freeze for AnchoredDrawing
impl RefUnwindSafe for AnchoredDrawing
impl Send for AnchoredDrawing
impl Sync for AnchoredDrawing
impl Unpin for AnchoredDrawing
impl UnsafeUnpin for AnchoredDrawing
impl UnwindSafe for AnchoredDrawing
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