pub struct Transparency {
pub group: bool,
pub isolated: bool,
pub knockout: bool,
}Expand description
A transparency group’s attributes.
Fields§
§group: boolWhether the content forms a transparency group at all.
isolated: boolWhether the group composites against a blank backdrop rather than the page’s.
knockout: boolWhether the group is a knockout group. Parsed, never honoured.
Implementations§
Source§impl Transparency
impl Transparency
Sourcepub fn from_group(group: Option<&Dict>, r: &impl Resolve) -> Self
pub fn from_group(group: Option<&Dict>, r: &impl Resolve) -> Self
Read a /Group dictionary.
The dictionary must have /S exactly Transparency; anything else
means no group at all. /I and /K are true for any non-zero
value, integers included, which is how a /I 1 works alongside a
/I true.
Trait Implementations§
Source§impl Clone for Transparency
impl Clone for Transparency
Source§fn clone(&self) -> Transparency
fn clone(&self) -> Transparency
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Transparency
Source§impl Debug for Transparency
impl Debug for Transparency
Source§impl Default for Transparency
impl Default for Transparency
Source§fn default() -> Transparency
fn default() -> Transparency
Returns the “default value” for a type. Read more
impl Eq for Transparency
Source§impl PartialEq for Transparency
impl PartialEq for Transparency
impl StructuralPartialEq for Transparency
Auto Trait Implementations§
impl Freeze for Transparency
impl RefUnwindSafe for Transparency
impl Send for Transparency
impl Sync for Transparency
impl Unpin for Transparency
impl UnsafeUnpin for Transparency
impl UnwindSafe for Transparency
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