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