pub struct LayoutNode {
pub form_node: FormNodeId,
pub rect: Rect,
pub name: String,
pub content: LayoutContent,
pub children: Vec<LayoutNode>,
pub style: FormNodeStyle,
pub display_items: Vec<String>,
pub save_items: Vec<String>,
}Expand description
A positioned element on a page.
Fields§
§form_node: FormNodeIdThe form node this layout node represents.
rect: RectBounding rectangle in page coordinates (points).
name: StringThe node’s display name (for debugging).
content: LayoutContentContent for leaf nodes.
children: Vec<LayoutNode>Children laid out within this node.
style: FormNodeStylePer-node visual style (colors, borders) from the XFA template.
display_items: Vec<String>Display items for choice list fields (XFA 3.3 §7.7).
save_items: Vec<String>Save items for choice list fields (XFA 3.3 §7.7).
Trait Implementations§
Source§impl Clone for LayoutNode
impl Clone for LayoutNode
Source§fn clone(&self) -> LayoutNode
fn clone(&self) -> LayoutNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LayoutNode
impl RefUnwindSafe for LayoutNode
impl Send for LayoutNode
impl Sync for LayoutNode
impl Unpin for LayoutNode
impl UnsafeUnpin for LayoutNode
impl UnwindSafe for LayoutNode
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