pub struct RadialGradientTemplate {
pub common: PrimTemplateCommonData,
pub extend_mode: ExtendMode,
pub params: RadialGradientParams,
pub center: LayoutPoint,
pub stretch_ratio: LayoutSize,
pub tile_spacing: LayoutSize,
pub border_nine_patch: Option<Box<NinePatchDescriptor>>,
pub stops_opacity: PrimitiveOpacity,
pub stops: Vec<GradientStop>,
}Fields§
§common: PrimTemplateCommonData§extend_mode: ExtendMode§params: RadialGradientParams§center: LayoutPoint§stretch_ratio: LayoutSizePer-axis fraction of common.prim_size covered by one tile of the
gradient pattern. Multiply by common.prim_size at use to recover the
absolute stretch_size.
tile_spacing: LayoutSize§border_nine_patch: Option<Box<NinePatchDescriptor>>§stops_opacity: PrimitiveOpacity§stops: Vec<GradientStop>Trait Implementations§
Source§impl Debug for RadialGradientTemplate
impl Debug for RadialGradientTemplate
Source§impl DerefMut for RadialGradientTemplate
impl DerefMut for RadialGradientTemplate
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 MallocSizeOf for RadialGradientTemplate
impl MallocSizeOf for RadialGradientTemplate
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 PatternBuilder for RadialGradientTemplate
impl PatternBuilder for RadialGradientTemplate
fn build( &self, _sub_rect: Option<DeviceRect>, offset: LayoutVector2D, ctx: &PatternBuilderContext<'_>, state: &mut PatternBuilderState<'_>, ) -> Pattern
Source§impl Serialize for RadialGradientTemplate
impl Serialize for RadialGradientTemplate
Auto Trait Implementations§
impl Freeze for RadialGradientTemplate
impl RefUnwindSafe for RadialGradientTemplate
impl Send for RadialGradientTemplate
impl Sync for RadialGradientTemplate
impl Unpin for RadialGradientTemplate
impl UnsafeUnpin for RadialGradientTemplate
impl UnwindSafe for RadialGradientTemplate
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