pub enum GroupKind {
Transparency {
params: GroupParams,
},
SoftMask {
params: SoftMaskParams,
},
Masked {
mask: DisplayList,
params: SoftMaskParams,
},
OptionalContent {
ocg_id: u32,
default_visible: bool,
},
}Expand description
What a GroupFrame is capturing, determining what gets emitted
when it closes.
Variants§
Transparency
Opened by begintransparencygroup. On close, the captured
display_list becomes the children of a
DisplayElement::Group with these params.
Fields
params: GroupParamsSoftMask
Opened by beginsoftmask. While active, paint ops emit into the
frame’s display_list to build the mask form. endsoftmask
transmutes the frame to Self::Masked without popping.
Fields
params: SoftMaskParamsMasked
Implicitly opened by endsoftmask. While active, paint ops emit
into display_list as the content the mask attenuates. On
clearsoftmask the frame pops and emits a
DisplayElement::SoftMasked carrying mask, the captured
content, and params.
OptionalContent
Opened by beginoptionalcontent. On close, the captured
display_list becomes the children of a
DisplayElement::OcgGroup whose visibility is
OcgVisibility::Single { ocg_id, default_visible }.