Struct webrender::picture::BackdropInfo
source · pub struct BackdropInfo {
pub opaque_rect: PictureRect,
pub spanning_opaque_color: Option<ColorF>,
pub kind: Option<BackdropKind>,
pub backdrop_rect: PictureRect,
}
Expand description
Stores information about the calculated opaque backdrop of this slice.
Fields§
§opaque_rect: PictureRect
The picture space rectangle that is known to be opaque. This is used to determine where subpixel AA can be used, and where alpha blending can be disabled.
spanning_opaque_color: Option<ColorF>
If the backdrop covers the entire slice with an opaque color, this will be set and can be used as a clear color for the slice’s tiles.
kind: Option<BackdropKind>
Kind of the backdrop
backdrop_rect: PictureRect
The picture space rectangle of the backdrop, if kind is set.
Implementations§
source§impl BackdropInfo
impl BackdropInfo
Trait Implementations§
source§impl Clone for BackdropInfo
impl Clone for BackdropInfo
source§fn clone(&self) -> BackdropInfo
fn clone(&self) -> BackdropInfo
Returns a copy 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 BackdropInfo
impl Debug for BackdropInfo
impl Copy for BackdropInfo
Auto Trait Implementations§
impl Freeze for BackdropInfo
impl RefUnwindSafe for BackdropInfo
impl Send for BackdropInfo
impl Sync for BackdropInfo
impl Unpin for BackdropInfo
impl UnwindSafe for BackdropInfo
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> 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