Expand description
Core enums used throughout HWP document processing.
All enums are #[non_exhaustive] to allow future variant additions
without breaking downstream code. They use #[repr(u8)] for compact
storage and provide TryFrom<u8> for binary parsing.
§Examples
use hwpforge_foundation::Alignment;
use std::str::FromStr;
let a = Alignment::from_str("Justify").unwrap();
assert_eq!(a, Alignment::Justify);
assert_eq!(a.to_string(), "Justify");Enums§
- Alignment
- Horizontal text alignment within a paragraph.
- Apply
Page Type - Which pages a header/footer applies to.
- ArcType
- Arc drawing type for ellipse-based arc shapes.
- Arrow
Size - Arrowhead size for line endpoints.
- Arrow
Type - Arrowhead shape for line endpoints.
- Bookmark
Type - Type of bookmark in an HWPX document.
- Border
Line Type - Border line type.
- Break
Type - Page/column break type before a paragraph.
- Curve
Segment Type - Segment type within a curve path.
- Drop
CapStyle - Drop cap style for floating shape objects (HWPX
dropcapstyleattribute). - Emboss
Type - Text embossing (raised appearance).
- Emphasis
Type - Character emphasis mark (symMark attribute in HWPX).
- Engrave
Type - Text engraving (sunken appearance).
- Field
Type - Type of a press-field (누름틀) in an HWPX document.
- Fill
Brush Type - Fill brush type for backgrounds.
- Flip
- Flip/mirror state for drawing shapes.
- Gradient
Type - Gradient fill direction type.
- Gutter
Type - Gutter position type for page margins.
- Heading
Type - Paragraph heading type for outline/numbering classification.
- Image
Fill Mode - How an image is fitted within a shape fill area.
- Language
- HWP5 language slots for font assignment.
- Line
Spacing Type - How line spacing is calculated.
- Number
Format Type - Number format for page numbering.
- Outline
Type - Text outline type (1pt border around glyphs).
- Page
Number Position - Position of page numbers on the page.
- Pattern
Type - Hatch/pattern fill type for shapes.
- RefContent
Type - Content display type for a cross-reference (what to show at the reference site).
- RefType
- Target type of a cross-reference (상호참조).
- Restart
Type - Line number restart type.
- Shadow
Type - Text shadow type.
- Show
Mode - Visibility mode for page borders and fills.
- Strikeout
Shape - Strikeout line shape.
- Text
Border Type - Reference frame for page border offset measurement.
- Text
Direction - Text writing direction for sections and sub-lists.
- Underline
Type - Underline decoration type.
- Vertical
Position - Superscript/subscript position type.
- Word
Break Type - Word-breaking behavior for paragraph text justification.