[][src]Struct azul_webrender_api::CommonItemProperties

pub struct CommonItemProperties {
    pub clip_rect: LayoutRect,
    pub clip_id: ClipId,
    pub spatial_id: SpatialId,
    pub hit_info: Option<ItemTag>,
    pub flags: PrimitiveFlags,
}

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_id: ClipId

Additional clips

spatial_id: SpatialId

The coordinate-space the item is in (yes, it can be really granular)

hit_info: Option<ItemTag>

Opaque bits for our clients to use for hit-testing. This is the most dubious "common" field, but because it's an Option, it usually only wastes a single byte (for None).

flags: PrimitiveFlags

Various flags describing properties of this primitive.

Implementations

impl CommonItemProperties[src]

pub fn new(clip_rect: LayoutRect, space_and_clip: SpaceAndClipInfo) -> Self[src]

Convenience for tests.

Trait Implementations

impl Clone for CommonItemProperties[src]

impl Copy for CommonItemProperties[src]

impl Debug for CommonItemProperties[src]

impl Default for CommonItemProperties[src]

impl<'de> Deserialize<'de> for CommonItemProperties[src]

impl PartialEq<CommonItemProperties> for CommonItemProperties[src]

impl Peek for CommonItemProperties[src]

impl Poke for CommonItemProperties[src]

impl Serialize for CommonItemProperties[src]

impl StructuralPartialEq for CommonItemProperties[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.