Struct webrender_api::RectangleDisplayItem
source · pub struct RectangleDisplayItem {
pub common: CommonItemProperties,
pub bounds: LayoutRect,
pub color: PropertyBinding<ColorF>,
}
Expand description
A solid or an animating color to draw (may not actually be a rectangle due to complex clips)
Fields§
§common: CommonItemProperties
§bounds: LayoutRect
§color: PropertyBinding<ColorF>
Trait Implementations§
source§impl Clone for RectangleDisplayItem
impl Clone for RectangleDisplayItem
source§fn clone(&self) -> RectangleDisplayItem
fn clone(&self) -> RectangleDisplayItem
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 RectangleDisplayItem
impl Debug for RectangleDisplayItem
source§impl Default for RectangleDisplayItem
impl Default for RectangleDisplayItem
source§fn default() -> RectangleDisplayItem
fn default() -> RectangleDisplayItem
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RectangleDisplayItem
impl<'de> Deserialize<'de> for RectangleDisplayItem
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 RectangleDisplayItem
impl PartialEq for RectangleDisplayItem
source§impl Peek for RectangleDisplayItem
impl Peek for RectangleDisplayItem
source§impl Poke for RectangleDisplayItem
impl Poke for RectangleDisplayItem
source§impl Serialize for RectangleDisplayItem
impl Serialize for RectangleDisplayItem
impl Copy for RectangleDisplayItem
impl StructuralPartialEq for RectangleDisplayItem
Auto Trait Implementations§
impl Freeze for RectangleDisplayItem
impl RefUnwindSafe for RectangleDisplayItem
impl Send for RectangleDisplayItem
impl Sync for RectangleDisplayItem
impl Unpin for RectangleDisplayItem
impl UnwindSafe for RectangleDisplayItem
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
)