pub struct TableLayout {
pub table_id: usize,
pub y: f32,
pub total_height: f32,
pub total_width: f32,
pub column_xs: Vec<f32>,
pub column_content_widths: Vec<f32>,
pub row_ys: Vec<f32>,
pub row_heights: Vec<f32>,
pub cell_layouts: Vec<CellLayout>,
pub border_width: f32,
pub cell_padding: f32,
}Expand description
Computed layout for an entire table.
Fields§
§table_id: usize§y: f32Y position relative to document start (set by flow).
total_height: f32Total height of the table including borders.
total_width: f32Total width of the table.
column_xs: Vec<f32>Computed column x positions (left edge of each column’s content area).
column_content_widths: Vec<f32>Computed column widths (content area, excluding padding).
row_ys: Vec<f32>Computed row y positions (top edge of each row’s content area, relative to table top).
row_heights: Vec<f32>Computed row heights (content area).
cell_layouts: Vec<CellLayout>Laid out cells. Each cell contains its block layouts.
border_width: f32§cell_padding: f32Auto Trait Implementations§
impl Freeze for TableLayout
impl RefUnwindSafe for TableLayout
impl Send for TableLayout
impl Sync for TableLayout
impl Unpin for TableLayout
impl UnsafeUnpin for TableLayout
impl UnwindSafe for TableLayout
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