Module enums

Module enums 

Source
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.
ApplyPageType
Which pages a header/footer applies to.
ArcType
Arc drawing type for ellipse-based arc shapes.
ArrowSize
Arrowhead size for line endpoints.
ArrowType
Arrowhead shape for line endpoints.
BookmarkType
Type of bookmark in an HWPX document.
BorderLineType
Border line type.
BreakType
Page/column break type before a paragraph.
CurveSegmentType
Segment type within a curve path.
DropCapStyle
Drop cap style for floating shape objects (HWPX dropcapstyle attribute).
EmbossType
Text embossing (raised appearance).
EmphasisType
Character emphasis mark (symMark attribute in HWPX).
EngraveType
Text engraving (sunken appearance).
FieldType
Type of a press-field (누름틀) in an HWPX document.
FillBrushType
Fill brush type for backgrounds.
Flip
Flip/mirror state for drawing shapes.
GradientType
Gradient fill direction type.
GutterType
Gutter position type for page margins.
HeadingType
Paragraph heading type for outline/numbering classification.
ImageFillMode
How an image is fitted within a shape fill area.
Language
HWP5 language slots for font assignment.
LineSpacingType
How line spacing is calculated.
NumberFormatType
Number format for page numbering.
OutlineType
Text outline type (1pt border around glyphs).
PageNumberPosition
Position of page numbers on the page.
PatternType
Hatch/pattern fill type for shapes.
RefContentType
Content display type for a cross-reference (what to show at the reference site).
RefType
Target type of a cross-reference (상호참조).
RestartType
Line number restart type.
ShadowType
Text shadow type.
ShowMode
Visibility mode for page borders and fills.
StrikeoutShape
Strikeout line shape.
TextBorderType
Reference frame for page border offset measurement.
TextDirection
Text writing direction for sections and sub-lists.
UnderlineType
Underline decoration type.
VerticalPosition
Superscript/subscript position type.
WordBreakType
Word-breaking behavior for paragraph text justification.