#[non_exhaustive]pub struct HwpxBorderFill {
pub id: u32,
pub three_d: bool,
pub shadow: bool,
pub center_line: String,
pub left: HwpxBorderLine,
pub right: HwpxBorderLine,
pub top: HwpxBorderLine,
pub bottom: HwpxBorderLine,
pub diagonal: HwpxBorderLine,
pub slash_type: String,
pub back_slash_type: String,
pub fill: Option<HwpxFill>,
}Expand description
Resolved border/fill definition from <hh:borderFill>.
Stores border line styles for all 4 sides plus diagonal borders, 3D/shadow flags, and optional fill configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u32Border fill ID (1-based, matching borderFillIDRef in charPr/paraPr).
three_d: boolWhether 3D border effect is enabled.
shadow: boolWhether shadow effect is enabled.
center_line: StringCenter line type string (e.g. "NONE").
left: HwpxBorderLineLeft border line.
right: HwpxBorderLineRight border line.
top: HwpxBorderLineTop border line.
bottom: HwpxBorderLineBottom border line.
diagonal: HwpxBorderLineDiagonal border line.
slash_type: StringSlash diagonal type string.
back_slash_type: StringBack-slash diagonal type string.
fill: Option<HwpxFill>Fill brush configuration (None = no fill / transparent).
Implementations§
Source§impl HwpxBorderFill
impl HwpxBorderFill
Sourcepub fn default_page_border() -> Self
pub fn default_page_border() -> Self
Default border fill id=1: empty borders, no fill (used for page borders).
Matches the first entry of the legacy BORDER_FILLS_XML constant.
Sourcepub fn default_char_background() -> Self
pub fn default_char_background() -> Self
Default border fill id=2: char background with winBrush fill.
This is referenced by every <hh:charPr borderFillIDRef="2">.
Matches the second entry of the legacy BORDER_FILLS_XML constant.
Sourcepub fn default_table_border() -> Self
pub fn default_table_border() -> Self
Default border fill id=3: SOLID borders on all 4 sides (used for table cells).
Matches the third entry of the legacy BORDER_FILLS_XML constant.
Trait Implementations§
Source§impl Clone for HwpxBorderFill
impl Clone for HwpxBorderFill
Source§fn clone(&self) -> HwpxBorderFill
fn clone(&self) -> HwpxBorderFill
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more