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: CommonItemPropertiesNOTE: common.clip_rect is the area the gradient covers
bounds: LayoutRectThe area to tile the gradient over (first tile starts at origin of this rect)
tile_size: LayoutSizeHow big a tile of the of the gradient should be (common case: bounds.size)
tile_spacing: LayoutSizeThe space between tiles of the gradient (common case: 0)
gradient: GradientTrait Implementations§
Source§impl Clone for GradientDisplayItem
 
impl Clone for GradientDisplayItem
Source§fn clone(&self) -> GradientDisplayItem
 
fn clone(&self) -> GradientDisplayItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for GradientDisplayItem
 
impl Debug for GradientDisplayItem
Source§impl Default for GradientDisplayItem
 
impl Default for GradientDisplayItem
Source§fn default() -> GradientDisplayItem
 
fn default() -> GradientDisplayItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GradientDisplayItem
 
impl<'de> Deserialize<'de> for GradientDisplayItem
Source§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
Source§impl PartialEq for GradientDisplayItem
 
impl PartialEq for GradientDisplayItem
Source§impl Peek for GradientDisplayItem
 
impl Peek for GradientDisplayItem
Source§impl Poke for GradientDisplayItem
 
impl Poke for GradientDisplayItem
Source§impl Serialize for GradientDisplayItem
 
impl Serialize for GradientDisplayItem
impl Copy for GradientDisplayItem
impl StructuralPartialEq for GradientDisplayItem
Auto Trait Implementations§
impl Freeze for GradientDisplayItem
impl RefUnwindSafe for GradientDisplayItem
impl Send for GradientDisplayItem
impl Sync for GradientDisplayItem
impl Unpin for GradientDisplayItem
impl UnwindSafe for GradientDisplayItem
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