Struct webrender_api::GradientDisplayItem
source · 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§
source§impl Clone for GradientDisplayItem
impl Clone for GradientDisplayItem
source§fn clone(&self) -> GradientDisplayItem
fn clone(&self) -> GradientDisplayItem
Returns a copy 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)