Struct webrender::picture::TilePreUpdateContext
source · struct TilePreUpdateContext {
pic_to_world_mapper: SpaceMapper<PicturePixel, WorldPixel>,
background_color: Option<ColorF>,
global_screen_world_rect: WorldRect,
tile_size: PictureSize,
frame_id: FrameId,
}
Fields§
§pic_to_world_mapper: SpaceMapper<PicturePixel, WorldPixel>
Maps from picture cache coords -> world space coords.
background_color: Option<ColorF>
The optional background color of the picture cache instance
global_screen_world_rect: WorldRect
The visible part of the screen in world coords.
tile_size: PictureSize
Current size of tiles in picture units.
frame_id: FrameId
The current frame id for this picture cache
Auto Trait Implementations§
impl Freeze for TilePreUpdateContext
impl RefUnwindSafe for TilePreUpdateContext
impl Send for TilePreUpdateContext
impl Sync for TilePreUpdateContext
impl Unpin for TilePreUpdateContext
impl UnwindSafe for TilePreUpdateContext
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