Struct webrender_api::display_item::ImageDisplayItem
source · pub struct ImageDisplayItem {
pub common: CommonItemProperties,
pub bounds: LayoutRect,
pub image_key: ImageKey,
pub image_rendering: ImageRendering,
pub alpha_type: AlphaType,
pub color: ColorF,
}
Expand description
This describes an image that fills the specified area. It stretches or shrinks the image as necessary. While RepeatingImageDisplayItem could otherwise provide a superset of the functionality, it has been problematic inferring the desired repetition properties when snapping changes the size of the primitive.
Fields§
§common: CommonItemProperties
§bounds: LayoutRect
The area to tile the image over (first tile starts at origin of this rect)
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 ImageDisplayItem
impl Clone for ImageDisplayItem
source§fn clone(&self) -> ImageDisplayItem
fn clone(&self) -> ImageDisplayItem
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 ImageDisplayItem
impl Debug for ImageDisplayItem
source§impl Default for ImageDisplayItem
impl Default for ImageDisplayItem
source§fn default() -> ImageDisplayItem
fn default() -> ImageDisplayItem
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ImageDisplayItem
impl<'de> Deserialize<'de> for ImageDisplayItem
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 PartialEq for ImageDisplayItem
impl PartialEq for ImageDisplayItem
source§fn eq(&self, other: &ImageDisplayItem) -> bool
fn eq(&self, other: &ImageDisplayItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Peek for ImageDisplayItem
impl Peek for ImageDisplayItem
source§impl Poke for ImageDisplayItem
impl Poke for ImageDisplayItem
source§impl Serialize for ImageDisplayItem
impl Serialize for ImageDisplayItem
impl Copy for ImageDisplayItem
impl StructuralPartialEq for ImageDisplayItem
Auto Trait Implementations§
impl Freeze for ImageDisplayItem
impl RefUnwindSafe for ImageDisplayItem
impl Send for ImageDisplayItem
impl Sync for ImageDisplayItem
impl Unpin for ImageDisplayItem
impl UnwindSafe for ImageDisplayItem
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