pub struct PageState {Show 18 fields
pub contrib_head: NodeRef,
pub page_head: NodeRef,
pub page_tail: NodeRef,
pub so_far: [i32; 8],
pub fi_stretch: i32,
pub max_depth: i32,
pub contents: PageContents,
pub best_break: NodeRef,
pub least_cost: i32,
pub best_size: i32,
pub best_so_far: [i32; 8],
pub best_infinite: bool,
pub last_break: Option<PageBreakInfo>,
pub ins: Vec<PageIns>,
pub last_glue: Option<Glue>,
pub last_penalty: i32,
pub last_kern: i32,
pub last_node_type: i32,
}Expand description
The state of the page builder (§980–§982).
Fields§
§contrib_head: NodeRefHead of the contribution list.
page_head: NodeRefHead of the current page.
page_tail: NodeRefTail of the current page.
so_far: [i32; 8]page_so_far: goal, total, stretch (normal, fil, fill, filll),
shrink, depth. The fi stretch is in PageState::fi_stretch.
fi_stretch: i32Page stretch of order fi (LuaTeX).
max_depth: i32page_max_depth.
contents: PageContentsWhat the page contains.
best_break: NodeRefThe best break found so far (best_page_break).
least_cost: i32Its cost (least_page_cost).
best_size: i32The page goal at the best break (best_size).
best_so_far: [i32; 8]so_far at the best break (for crate::pagenote).
best_infinite: boolWhether the page had infinite stretch at the best break.
last_break: Option<PageBreakInfo>What the last page break left out (default output mode).
ins: Vec<PageIns>Insertion classes on the page, in increasing class order.
last_glue: Option<Glue>\lastskip etc. of the page (last_glue); None if the last item
was not glue.
last_penalty: i32last_penalty.
last_kern: i32last_kern.
last_node_type: i32\lastnodetype of the page.