pub struct Image {
pub key: ImageKey,
pub stretch_size: SizeKey,
pub tile_spacing: SizeKey,
pub color: ColorU,
pub image_rendering: ImageRendering,
pub alpha_type: AlphaType,
}Fields§
§key: ImageKey§stretch_size: SizeKey§tile_spacing: SizeKey§color: ColorU§image_rendering: ImageRendering§alpha_type: AlphaTypeTrait Implementations§
Source§impl CreateShadow for Image
impl CreateShadow for Image
fn create_shadow(&self, shadow: &Shadow, _: bool, _: RasterSpace) -> Self
Source§impl Internable for Image
impl Internable for Image
Source§impl InternablePrimitive for Image
impl InternablePrimitive for Image
Source§fn into_key(self, info: &LayoutPrimitiveInfo) -> PrimKey<Image>
fn into_key(self, info: &LayoutPrimitiveInfo) -> PrimKey<Image>
Build a new key from self with
info.fn make_instance_kind( _key: PrimKey<Image>, data_handle: Handle<Image>, prim_store: &mut PrimitiveStore, ) -> PrimitiveInstanceKind
Source§impl MallocSizeOf for Image
impl MallocSizeOf for Image
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
impl Eq for Image
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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§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