pub struct Window {Show 30 fields
pub state: WindowState,
pub priority: u8,
pub anchor_point: AnchorPoint,
pub anchor_vertical: u8,
pub anchor_horizontal: u8,
pub relative_position: bool,
pub row_count: u8,
pub column_count: u8,
pub row_lock: bool,
pub column_lock: bool,
pub window_style: u8,
pub pen_style: u8,
pub justify: Justify,
pub print_direction: PrintDirection,
pub scroll_direction: ScrollDirection,
pub word_wrap: bool,
pub fill_color: Color,
pub fill_opacity: Opacity,
pub border_color: Color,
pub border_type: EdgeType,
pub pen_size: PenSize,
pub pen_offset: PenOffset,
pub font_style: FontStyle,
pub italics: bool,
pub underline: bool,
pub edge_type: EdgeType,
pub fg_color: Color,
pub fg_opacity: Opacity,
pub bg_color: Color,
pub bg_opacity: Opacity,
/* private fields */
}decode only.Expand description
A decoded CEA-708 caption window (§8.4 window model).
Holds the window attributes set by DefineWindow / SetWindowAttributes,
the pen attributes set by SetPenAttributes / SetPenColor, and the painted
text grid. Only created when a DefineWindow for its ID is received.
Fields§
§state: WindowStateWhether the window is currently displayed.
priority: u8Window priority, 0 (highest) – 7.
anchor_point: AnchorPointAnchor point (which corner/edge/centre the anchor coordinates refer to).
anchor_vertical: u8Anchor vertical coordinate.
anchor_horizontal: u8Anchor horizontal coordinate.
relative_position: booltrue if the anchor coordinates are relative (percent).
row_count: u8Row count (virtual rows; = rc + 1).
column_count: u8Column count (virtual cols; = cc + 1).
row_lock: boolRow lock.
column_lock: boolColumn lock.
window_style: u8Window-style preset ID (0–7) requested in the last DefineWindow.
pen_style: u8Pen-style preset ID (0–7) requested in the last DefineWindow.
justify: JustifyJustification.
print_direction: PrintDirectionPrint direction.
scroll_direction: ScrollDirectionScroll direction.
word_wrap: boolWord wrap.
fill_color: ColorWindow fill colour.
fill_opacity: OpacityWindow fill opacity.
border_color: ColorBorder colour.
border_type: EdgeTypeBorder type (none / raised / depressed / uniform / shadow).
pen_size: PenSizePen size.
pen_offset: PenOffsetPen offset (subscript/normal/superscript).
font_style: FontStyleFont style.
italics: boolPen italics.
underline: boolPen underline.
edge_type: EdgeTypePen edge type.
fg_color: ColorPen foreground colour.
fg_opacity: OpacityPen foreground opacity.
bg_color: ColorPen background colour.
bg_opacity: OpacityPen background opacity.