Struct webrender_api::RepeatingImageDisplayItem
source · pub struct RepeatingImageDisplayItem {
pub common: CommonItemProperties,
pub bounds: LayoutRect,
pub stretch_size: LayoutSize,
pub tile_spacing: LayoutSize,
pub image_key: ImageKey,
pub image_rendering: ImageRendering,
pub alpha_type: AlphaType,
pub color: ColorF,
}
Expand description
This describes a background-image and its tiling. It repeats in a grid to fill the specified area.
Fields§
§common: CommonItemProperties
§bounds: LayoutRect
The area to tile the image over (first tile starts at origin of this rect)
stretch_size: LayoutSize
How large to make a single tile of the image (common case: bounds.size)
tile_spacing: LayoutSize
The space between tiles (common case: 0)
image_key: ImageKey
§image_rendering: ImageRendering
§alpha_type: AlphaType
§color: ColorF
A hack used by gecko to color a simple bitmap font used for tofu glyphs
Trait Implementations§
source§impl Clone for RepeatingImageDisplayItem
impl Clone for RepeatingImageDisplayItem
source§fn clone(&self) -> RepeatingImageDisplayItem
fn clone(&self) -> RepeatingImageDisplayItem
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 RepeatingImageDisplayItem
impl Debug for RepeatingImageDisplayItem
source§impl Default for RepeatingImageDisplayItem
impl Default for RepeatingImageDisplayItem
source§fn default() -> RepeatingImageDisplayItem
fn default() -> RepeatingImageDisplayItem
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RepeatingImageDisplayItem
impl<'de> Deserialize<'de> for RepeatingImageDisplayItem
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Peek for RepeatingImageDisplayItem
impl Peek for RepeatingImageDisplayItem
source§impl Poke for RepeatingImageDisplayItem
impl Poke for RepeatingImageDisplayItem
impl Copy for RepeatingImageDisplayItem
impl StructuralPartialEq for RepeatingImageDisplayItem
Auto Trait Implementations§
impl Freeze for RepeatingImageDisplayItem
impl RefUnwindSafe for RepeatingImageDisplayItem
impl Send for RepeatingImageDisplayItem
impl Sync for RepeatingImageDisplayItem
impl Unpin for RepeatingImageDisplayItem
impl UnwindSafe for RepeatingImageDisplayItem
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)