Struct webrender::prim_store::gradient::linear::LinearGradient
source · pub struct LinearGradient {
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 nine_patch: Option<Box<NinePatchDescriptor>>,
pub cached: bool,
pub edge_aa_mask: EdgeAaSegmentMask,
}
Fields§
§extend_mode: ExtendMode
§start_point: PointKey
§end_point: PointKey
§stretch_size: SizeKey
§tile_spacing: SizeKey
§stops: Vec<GradientStopKey>
§reverse_stops: bool
§nine_patch: Option<Box<NinePatchDescriptor>>
§cached: bool
§edge_aa_mask: EdgeAaSegmentMask
Trait Implementations§
source§impl Debug for LinearGradient
impl Debug for LinearGradient
source§impl Internable for LinearGradient
impl Internable for LinearGradient
type Key = LinearGradientKey
type StoreData = LinearGradientTemplate
type InternData = ()
const PROFILE_COUNTER: usize = 93usize
source§impl InternablePrimitive for LinearGradient
impl InternablePrimitive for LinearGradient
source§fn into_key(self, info: &LayoutPrimitiveInfo) -> LinearGradientKey
fn into_key(self, info: &LayoutPrimitiveInfo) -> LinearGradientKey
Build a new key from self with
info
.fn make_instance_kind( key: LinearGradientKey, data_handle: Handle<LinearGradient>, _prim_store: &mut PrimitiveStore, ) -> PrimitiveInstanceKind
source§impl IsVisible for LinearGradient
impl IsVisible for LinearGradient
fn is_visible(&self) -> bool
source§impl MallocSizeOf for LinearGradient
impl MallocSizeOf for LinearGradient
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.
Auto Trait Implementations§
impl Freeze for LinearGradient
impl RefUnwindSafe for LinearGradient
impl Send for LinearGradient
impl Sync for LinearGradient
impl Unpin for LinearGradient
impl UnwindSafe for LinearGradient
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