pub enum FramePosition {
Inline,
FloatLeft,
FloatRight,
Absolute,
}Expand description
Frame position type (from text-document’s FramePosition).
Note on floats: FloatLeft and FloatRight currently place the frame
at the correct x position but do not implement content wrapping (text does
not flow beside the float). They advance content_height like Inline,
so subsequent content appears below rather than beside the float.
True float exclusion zones would require tracking available width per
y-range during paragraph layout.
Variants§
Inline
Inline: rendered in normal flow order, advances content_height.
FloatLeft
Float left: placed at x=0, advances content_height. Content wrapping is not yet implemented.
FloatRight
Float right: placed at x=available_width - frame_width, advances content_height. Content wrapping is not yet implemented.
Absolute
Absolute: placed at (margin_left, margin_top) from document origin. Does not affect flow or content_height.
Trait Implementations§
Source§impl Clone for FramePosition
impl Clone for FramePosition
Source§fn clone(&self) -> FramePosition
fn clone(&self) -> FramePosition
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more