Struct webrender::prim_store::gradient::radial::RadialGradient
source · pub struct RadialGradient {
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>>,
}
Fields§
§extend_mode: ExtendMode
§center: PointKey
§params: RadialGradientParams
§stretch_size: SizeKey
§stops: Vec<GradientStopKey>
§tile_spacing: SizeKey
§nine_patch: Option<Box<NinePatchDescriptor>>
Trait Implementations§
source§impl Debug for RadialGradient
impl Debug for RadialGradient
source§impl Internable for RadialGradient
impl Internable for RadialGradient
type Key = RadialGradientKey
type StoreData = RadialGradientTemplate
type InternData = ()
const PROFILE_COUNTER: usize = 94usize
source§impl InternablePrimitive for RadialGradient
impl InternablePrimitive for RadialGradient
source§fn into_key(self, info: &LayoutPrimitiveInfo) -> RadialGradientKey
fn into_key(self, info: &LayoutPrimitiveInfo) -> RadialGradientKey
Build a new key from self with
info
.fn make_instance_kind( _key: RadialGradientKey, data_handle: Handle<RadialGradient>, _prim_store: &mut PrimitiveStore, ) -> PrimitiveInstanceKind
source§impl IsVisible for RadialGradient
impl IsVisible for RadialGradient
fn is_visible(&self) -> bool
source§impl MallocSizeOf for RadialGradient
impl MallocSizeOf for RadialGradient
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 RadialGradient
impl RefUnwindSafe for RadialGradient
impl Send for RadialGradient
impl Sync for RadialGradient
impl Unpin for RadialGradient
impl UnwindSafe for RadialGradient
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