pub struct OcgRecord {
pub ocg_id: u32,
pub default_visible: bool,
}Expand description
One entry in Context::ocg_registry. defineocg allocates these
and indexes them by the OCG’s interned NameId so
beginoptionalcontent can resolve a name back to its ocg_id and
the default_visible flag the producer set.
Fields§
§ocg_id: u32Monotonic id assigned by defineocg. Embedded into
OcgVisibility::Single on the display list.
default_visible: boolInitial visibility, used by the renderer when no LayerSet
override exists for this OCG.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OcgRecord
impl RefUnwindSafe for OcgRecord
impl Send for OcgRecord
impl Sync for OcgRecord
impl Unpin for OcgRecord
impl UnsafeUnpin for OcgRecord
impl UnwindSafe for OcgRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more