pub struct FormNode {
pub name: String,
pub node_type: FormNodeType,
pub box_model: BoxModel,
pub layout: LayoutStrategy,
pub children: Vec<FormNodeId>,
pub occur: Occur,
pub font: FontMetrics,
pub calculate: Option<String>,
pub validate: Option<String>,
pub column_widths: Vec<f64>,
pub col_span: i32,
}Expand description
A single node in the Form DOM.
Fields§
§name: StringNode name.
node_type: FormNodeTypeNode type.
box_model: BoxModelBox model.
layout: LayoutStrategyLayout strategy.
children: Vec<FormNodeId>Child node IDs.
occur: OccurOccurrence rules for repeating subforms.
font: FontMetricsFont metrics for text measurement (Draw/Field nodes).
calculate: Option<String>FormCalc calculate script (XFA S14.3.2): runs to compute the field’s value.
validate: Option<String>FormCalc validate script: runs to validate the field’s value, returns bool.
column_widths: Vec<f64>Column widths for table-layout subforms (XFA columnWidths attribute). Positive values are fixed widths in points; -1.0 means auto-size. Empty for non-table nodes.
col_span: i32Column span for cells inside a table row (XFA colSpan attribute). 1 = single column (default), N = span N columns, -1 = span remaining.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormNode
impl RefUnwindSafe for FormNode
impl Send for FormNode
impl Sync for FormNode
impl Unpin for FormNode
impl UnsafeUnpin for FormNode
impl UnwindSafe for FormNode
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