Struct webrender::api_resources::ApiResources
source · pub struct ApiResources {
blob_image_templates: HashMap<BlobImageKey, BlobImageTemplate>,
pub blob_image_handler: Option<Box<dyn BlobImageHandler>>,
fonts: SharedFontResources,
debug_restrict_blob_size: bool,
}
Fields§
§blob_image_templates: HashMap<BlobImageKey, BlobImageTemplate>
§blob_image_handler: Option<Box<dyn BlobImageHandler>>
§fonts: SharedFontResources
§debug_restrict_blob_size: bool
Implementations§
source§impl ApiResources
impl ApiResources
pub fn new( blob_image_handler: Option<Box<dyn BlobImageHandler>>, fonts: SharedFontResources, ) -> Self
pub fn get_fonts(&self) -> SharedFontResources
pub fn set_debug_flags(&mut self, flags: DebugFlags)
pub fn adjust_blob_visible_rect( &self, rect: &mut DeviceIntRect, size: Option<&mut DeviceIntSize>, )
pub fn update(&mut self, transaction: &mut TransactionMsg)
pub fn enable_multithreading(&mut self, enable: bool)
fn update_blob_image( &mut self, key: BlobImageKey, descriptor: Option<&ImageDescriptor>, dirty_rect: Option<&BlobDirtyRect>, data: Option<Arc<BlobImageData>>, visible_rect: &DeviceIntRect, )
pub fn create_blob_scene_builder_requests( &mut self, keys: &[BlobImageKey], ) -> (Option<Box<dyn AsyncBlobImageRasterizer>>, Vec<BlobImageParams>)
Auto Trait Implementations§
impl Freeze for ApiResources
impl !RefUnwindSafe for ApiResources
impl Send for ApiResources
impl !Sync for ApiResources
impl Unpin for ApiResources
impl !UnwindSafe for ApiResources
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