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