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§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