Struct webrender_api::CommonItemProperties
source · pub struct CommonItemProperties {
pub clip_rect: LayoutRect,
pub clip_chain_id: ClipChainId,
pub spatial_id: SpatialId,
pub flags: PrimitiveFlags,
}
Expand description
A grouping of fields a lot of display items need, just to avoid repeating these over and over in this file.
Fields§
§clip_rect: LayoutRect
Bounds of the display item to clip to. Many items are logically infinite, and rely on this clip_rect to define their bounds (solid colors, background-images, gradients, etc).
clip_chain_id: ClipChainId
Additional clips
spatial_id: SpatialId
The coordinate-space the item is in (yes, it can be really granular)
flags: PrimitiveFlags
Various flags describing properties of this primitive.
Implementations§
source§impl CommonItemProperties
impl CommonItemProperties
sourcepub fn new(clip_rect: LayoutRect, space_and_clip: SpaceAndClipInfo) -> Self
pub fn new(clip_rect: LayoutRect, space_and_clip: SpaceAndClipInfo) -> Self
Convenience for tests.
Trait Implementations§
source§impl Clone for CommonItemProperties
impl Clone for CommonItemProperties
source§fn clone(&self) -> CommonItemProperties
fn clone(&self) -> CommonItemProperties
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 CommonItemProperties
impl Debug for CommonItemProperties
source§impl Default for CommonItemProperties
impl Default for CommonItemProperties
source§fn default() -> CommonItemProperties
fn default() -> CommonItemProperties
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CommonItemProperties
impl<'de> Deserialize<'de> for CommonItemProperties
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 CommonItemProperties
impl PartialEq for CommonItemProperties
source§impl Peek for CommonItemProperties
impl Peek for CommonItemProperties
source§impl Poke for CommonItemProperties
impl Poke for CommonItemProperties
source§impl Serialize for CommonItemProperties
impl Serialize for CommonItemProperties
impl Copy for CommonItemProperties
impl StructuralPartialEq for CommonItemProperties
Auto Trait Implementations§
impl Freeze for CommonItemProperties
impl RefUnwindSafe for CommonItemProperties
impl Send for CommonItemProperties
impl Sync for CommonItemProperties
impl Unpin for CommonItemProperties
impl UnwindSafe for CommonItemProperties
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
)