Expand description
Control elements: text boxes, hyperlinks, footnotes, endnotes, etc.
Control represents non-text inline elements within a document.
The enum is #[non_exhaustive] so new control types can be added
in future phases without a breaking change.
TextBox, Footnote, and Endnote contain Vec<Paragraph> (recursive
reference through the document tree). This is how HWP models inline
frames and annotations.
§Examples
use hwpforge_core::control::Control;
use hwpforge_core::paragraph::Paragraph;
use hwpforge_foundation::{HwpUnit, ParaShapeIndex};
let link = Control::Hyperlink {
text: "Click here".to_string(),
url: "https://example.com".to_string(),
};
assert!(link.is_hyperlink());Structs§
- Arrow
Style - Arrowhead style for line endpoints.
- Shape
Point - A 2D point in raw HWPUNIT coordinates for shape geometry.
- Shape
Style - Visual style overrides for drawing shapes.
Enums§
- Control
- An inline control element.
- Dutmal
Align - Alignment of dutmal annotation text.
- Dutmal
Position - Position of dutmal annotation text relative to the main text.
- Fill
- Fill specification for shapes.
- Line
Style - Line drawing style for shapes.