pub struct ConicGradientTemplate {
pub common: PrimTemplateCommonData,
pub extend_mode: ExtendMode,
pub center: LayoutPoint,
pub params: ConicGradientParams,
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§center: LayoutPoint§params: ConicGradientParams§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 DerefMut for ConicGradientTemplate
impl DerefMut for ConicGradientTemplate
Source§impl From<ConicGradientKey> for ConicGradientTemplate
impl From<ConicGradientKey> for ConicGradientTemplate
Source§fn from(item: ConicGradientKey) -> Self
fn from(item: ConicGradientKey) -> Self
Converts to this type from the input type.
Source§impl MallocSizeOf for ConicGradientTemplate
impl MallocSizeOf for ConicGradientTemplate
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 ConicGradientTemplate
impl PatternBuilder for ConicGradientTemplate
fn build( &self, _sub_rect: Option<DeviceRect>, offset: LayoutVector2D, ctx: &PatternBuilderContext<'_>, state: &mut PatternBuilderState<'_>, ) -> Pattern
Source§impl Serialize for ConicGradientTemplate
impl Serialize for ConicGradientTemplate
Auto Trait Implementations§
impl Freeze for ConicGradientTemplate
impl RefUnwindSafe for ConicGradientTemplate
impl Send for ConicGradientTemplate
impl Sync for ConicGradientTemplate
impl Unpin for ConicGradientTemplate
impl UnsafeUnpin for ConicGradientTemplate
impl UnwindSafe for ConicGradientTemplate
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