Struct azul_webrender_api::GradientDisplayItem [−][src]
pub struct GradientDisplayItem { pub common: CommonItemProperties, pub bounds: LayoutRect, pub tile_size: LayoutSize, pub tile_spacing: LayoutSize, pub gradient: Gradient, }
Expand description
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
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for GradientDisplayItem
impl Send for GradientDisplayItem
impl Sync for GradientDisplayItem
impl Unpin for GradientDisplayItem
impl UnwindSafe for GradientDisplayItem
Blanket Implementations
Mutably borrows from an owned value. Read more