pub struct TableVisualInfo {
pub table_id: usize,
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub column_xs: Vec<f32>,
pub column_content_widths: Vec<f32>,
pub row_ys: Vec<f32>,
pub row_heights: Vec<f32>,
}Expand description
Visual position and size of a laid-out table, and of its rows and columns.
Returned by crate::DocumentFlow::table_visual_info. x / y are the
document-space top-left of the whole table box; column_xs and row_ys
are measured from that origin, so cell (r, c) occupies
(x + column_xs[c], y + row_ys[r], column_content_widths[c], row_heights[r]).
Fields§
§table_id: usizeTable ID (matches TableSnapshot::table_id).
x: f32Document-space x of the table box’s left edge, in pixels.
y: f32Document-space y of the table box’s top edge, in pixels.
width: f32Total width of the table, in pixels.
height: f32Total height of the table including borders, in pixels.
column_xs: Vec<f32>Left edge of each column’s content area, relative to x.
column_content_widths: Vec<f32>Width of each column’s content area, in pixels.
row_ys: Vec<f32>Top edge of each row’s content area, relative to y.
row_heights: Vec<f32>Height of each row’s content area, in pixels.