Struct webrender_api::DynamicProperties
source · pub struct DynamicProperties {
pub transforms: Vec<PropertyValue<LayoutTransform>>,
pub floats: Vec<PropertyValue<f32>>,
pub colors: Vec<PropertyValue<ColorF>>,
}
Expand description
When using generate_frame()
, a list of PropertyValue
structures
can optionally be supplied to provide the current value of any
animated properties.
Fields§
§transforms: Vec<PropertyValue<LayoutTransform>>
transform list
floats: Vec<PropertyValue<f32>>
opacity
colors: Vec<PropertyValue<ColorF>>
background color
Implementations§
Trait Implementations§
source§impl Clone for DynamicProperties
impl Clone for DynamicProperties
source§fn clone(&self) -> DynamicProperties
fn clone(&self) -> DynamicProperties
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 DynamicProperties
impl Debug for DynamicProperties
source§impl Default for DynamicProperties
impl Default for DynamicProperties
source§fn default() -> DynamicProperties
fn default() -> DynamicProperties
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DynamicProperties
impl<'de> Deserialize<'de> for DynamicProperties
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 DynamicProperties
impl PartialEq for DynamicProperties
source§fn eq(&self, other: &DynamicProperties) -> bool
fn eq(&self, other: &DynamicProperties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DynamicProperties
impl Serialize for DynamicProperties
impl StructuralPartialEq for DynamicProperties
Auto Trait Implementations§
impl Freeze for DynamicProperties
impl RefUnwindSafe for DynamicProperties
impl Send for DynamicProperties
impl Sync for DynamicProperties
impl Unpin for DynamicProperties
impl UnwindSafe for DynamicProperties
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