Struct webrender::prim_store::gradient::radial::RadialGradientKey
source · pub struct RadialGradientKey {
pub common: PrimKeyCommonData,
pub extend_mode: ExtendMode,
pub center: PointKey,
pub params: RadialGradientParams,
pub stretch_size: SizeKey,
pub stops: Vec<GradientStopKey>,
pub tile_spacing: SizeKey,
pub nine_patch: Option<Box<NinePatchDescriptor>>,
}
Expand description
Identifying key for a radial gradient.
Fields§
§common: PrimKeyCommonData
§extend_mode: ExtendMode
§center: PointKey
§params: RadialGradientParams
§stretch_size: SizeKey
§stops: Vec<GradientStopKey>
§tile_spacing: SizeKey
§nine_patch: Option<Box<NinePatchDescriptor>>
Implementations§
source§impl RadialGradientKey
impl RadialGradientKey
pub fn new(info: &LayoutPrimitiveInfo, radial_grad: RadialGradient) -> Self
Trait Implementations§
source§impl Clone for RadialGradientKey
impl Clone for RadialGradientKey
source§fn clone(&self) -> RadialGradientKey
fn clone(&self) -> RadialGradientKey
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 RadialGradientKey
impl Debug for RadialGradientKey
source§impl From<RadialGradientKey> for RadialGradientTemplate
impl From<RadialGradientKey> for RadialGradientTemplate
source§fn from(item: RadialGradientKey) -> Self
fn from(item: RadialGradientKey) -> Self
Converts to this type from the input type.
source§impl Hash for RadialGradientKey
impl Hash for RadialGradientKey
source§impl InternDebug for RadialGradientKey
impl InternDebug for RadialGradientKey
fn on_interned(&self, _uid: ItemUid)
source§impl MallocSizeOf for RadialGradientKey
impl MallocSizeOf for RadialGradientKey
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.
source§impl PartialEq for RadialGradientKey
impl PartialEq for RadialGradientKey
source§fn eq(&self, other: &RadialGradientKey) -> bool
fn eq(&self, other: &RadialGradientKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RadialGradientKey
impl Serialize for RadialGradientKey
impl Eq for RadialGradientKey
impl StructuralPartialEq for RadialGradientKey
Auto Trait Implementations§
impl Freeze for RadialGradientKey
impl RefUnwindSafe for RadialGradientKey
impl Send for RadialGradientKey
impl Sync for RadialGradientKey
impl Unpin for RadialGradientKey
impl UnwindSafe for RadialGradientKey
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> 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