pub struct FrameLayoutParams {
pub frame_id: usize,
pub position: FramePosition,
pub width: Option<f32>,
pub height: Option<f32>,
pub margin_top: f32,
pub margin_bottom: f32,
pub margin_left: f32,
pub margin_right: f32,
pub padding: f32,
pub border_width: f32,
pub blocks: Vec<BlockLayoutParams>,
pub tables: Vec<(usize, TableLayoutParams)>,
}Expand description
Parameters for a frame, extracted from text-document’s FrameSnapshot.
Fields§
§frame_id: usize§position: FramePosition§width: Option<f32>Frame width constraint (None = use available width).
height: Option<f32>Frame height constraint (None = auto from content).
margin_top: f32§margin_bottom: f32§margin_left: f32§margin_right: f32§padding: f32§border_width: f32§blocks: Vec<BlockLayoutParams>Nested flow elements: blocks and tables within the frame.
tables: Vec<(usize, TableLayoutParams)>Auto Trait Implementations§
impl Freeze for FrameLayoutParams
impl RefUnwindSafe for FrameLayoutParams
impl Send for FrameLayoutParams
impl Sync for FrameLayoutParams
impl Unpin for FrameLayoutParams
impl UnsafeUnpin for FrameLayoutParams
impl UnwindSafe for FrameLayoutParams
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