Struct webrender_api::ResourceUpdates
[−]
[src]
pub struct ResourceUpdates { pub updates: Vec<ResourceUpdate>, }
The resource updates for a given transaction (they must be applied in the same frame).
Fields
updates: Vec<ResourceUpdate>
Methods
impl ResourceUpdates
[src]
pub fn new() -> Self
[src]
pub fn add_image(
&mut self,
key: ImageKey,
descriptor: ImageDescriptor,
data: ImageData,
tiling: Option<TileSize>
)
[src]
&mut self,
key: ImageKey,
descriptor: ImageDescriptor,
data: ImageData,
tiling: Option<TileSize>
)
pub fn update_image(
&mut self,
key: ImageKey,
descriptor: ImageDescriptor,
data: ImageData,
dirty_rect: Option<DeviceUintRect>
)
[src]
&mut self,
key: ImageKey,
descriptor: ImageDescriptor,
data: ImageData,
dirty_rect: Option<DeviceUintRect>
)
pub fn delete_image(&mut self, key: ImageKey)
[src]
pub fn add_raw_font(&mut self, key: FontKey, bytes: Vec<u8>, index: u32)
[src]
pub fn add_native_font(&mut self, key: FontKey, native_handle: NativeFontHandle)
[src]
pub fn delete_font(&mut self, key: FontKey)
[src]
pub fn add_font_instance(
&mut self,
key: FontInstanceKey,
font_key: FontKey,
glyph_size: Au,
options: Option<FontInstanceOptions>,
platform_options: Option<FontInstancePlatformOptions>,
variations: Vec<FontVariation>
)
[src]
&mut self,
key: FontInstanceKey,
font_key: FontKey,
glyph_size: Au,
options: Option<FontInstanceOptions>,
platform_options: Option<FontInstancePlatformOptions>,
variations: Vec<FontVariation>
)
pub fn delete_font_instance(&mut self, key: FontInstanceKey)
[src]
pub fn merge(&mut self, other: ResourceUpdates)
[src]
pub fn clear(&mut self)
[src]
Trait Implementations
impl Clone for ResourceUpdates
[src]
fn clone(&self) -> ResourceUpdates
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more