pub struct FrameLayoutParams {Show 14 fields
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 border_style: FrameBorderStyle,
pub blocks: Vec<BlockLayoutParams>,
pub tables: Vec<(usize, TableLayoutParams)>,
pub frames: Vec<(usize, FrameLayoutParams)>,
}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§border_style: FrameBorderStyle§blocks: Vec<BlockLayoutParams>Nested flow elements: blocks, tables, and frames within the frame.
tables: Vec<(usize, TableLayoutParams)>§frames: Vec<(usize, FrameLayoutParams)>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