[][src]Struct azul_webrender_api::GradientDisplayItem

pub struct GradientDisplayItem {
    pub common: CommonItemProperties,
    pub bounds: LayoutRect,
    pub tile_size: LayoutSize,
    pub tile_spacing: LayoutSize,
    pub gradient: Gradient,
}

The area

Fields

common: CommonItemProperties

NOTE: common.clip_rect is the area the gradient covers

bounds: LayoutRect

The area to tile the gradient over (first tile starts at origin of this rect)

tile_size: LayoutSize

How big a tile of the of the gradient should be (common case: bounds.size)

tile_spacing: LayoutSize

The space between tiles of the gradient (common case: 0)

gradient: Gradient

Trait Implementations

impl Clone for GradientDisplayItem[src]

impl Copy for GradientDisplayItem[src]

impl Debug for GradientDisplayItem[src]

impl Default for GradientDisplayItem[src]

impl<'de> Deserialize<'de> for GradientDisplayItem[src]

impl PartialEq<GradientDisplayItem> for GradientDisplayItem[src]

impl Peek for GradientDisplayItem[src]

impl Poke for GradientDisplayItem[src]

impl Serialize for GradientDisplayItem[src]

impl StructuralPartialEq for GradientDisplayItem[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.