pub struct PrimitiveFlags {
pub is_backface_visible: bool,
pub is_scrollbar_container: bool,
pub is_scrollbar_thumb: bool,
pub prefer_compositor_surface: bool,
pub supports_external_compositor_surface: bool,
}Fields§
§is_backface_visible: boolThe CSS backface-visibility property (yes, it can be really granular)
is_scrollbar_container: boolIf set, this primitive represents a scroll bar container
is_scrollbar_thumb: boolIf set, this primitive represents a scroll bar thumb
prefer_compositor_surface: boolThis is used as a performance hint - this primitive may be promoted to a native compositor surface under certain (implementation specific) conditions. This is typically used for large videos, and canvas elements.
supports_external_compositor_surface: boolIf set, this primitive can be passed directly to the compositor via its ExternalImageId, and the compositor will use the native image directly. Used as a further extension on top of PREFER_COMPOSITOR_SURFACE.
Trait Implementations§
Source§impl Clone for PrimitiveFlags
impl Clone for PrimitiveFlags
Source§fn clone(&self) -> PrimitiveFlags
fn clone(&self) -> PrimitiveFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrimitiveFlags
impl Debug for PrimitiveFlags
Source§impl Hash for PrimitiveFlags
impl Hash for PrimitiveFlags
Source§impl Ord for PrimitiveFlags
impl Ord for PrimitiveFlags
Source§fn cmp(&self, other: &PrimitiveFlags) -> Ordering
fn cmp(&self, other: &PrimitiveFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PrimitiveFlags
impl PartialEq for PrimitiveFlags
Source§impl PartialOrd for PrimitiveFlags
impl PartialOrd for PrimitiveFlags
impl Copy for PrimitiveFlags
impl Eq for PrimitiveFlags
impl StructuralPartialEq for PrimitiveFlags
Auto Trait Implementations§
impl Freeze for PrimitiveFlags
impl RefUnwindSafe for PrimitiveFlags
impl Send for PrimitiveFlags
impl Sync for PrimitiveFlags
impl Unpin for PrimitiveFlags
impl UnwindSafe for PrimitiveFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more