pub struct ColorFill {
pub id: Option<String>,
pub color: Option<Rgba>,
pub at: Option<f64>,
pub duration: Option<f64>,
pub inset: Option<Inset>,
pub enter: Option<Motion>,
pub exit: Option<Motion>,
}Expand description
An area painted one color.
Fields§
§id: Option<String>The node’s name, for other nodes to refer to.
color: Option<Rgba>The color. Default: the theme’s surface.
at: Option<f64>Seconds from the parent’s start (an overlay’s: the video’s). Ignored in a sequence.
duration: Option<f64>Length in seconds. Default: the node’s own length, else what its parent gives it.
inset: Option<Inset>Pixels kept clear inside the parent’s area: one number, or [top, right, bottom, left].
enter: Option<Motion>How it comes in at its start.
exit: Option<Motion>How it goes out, ending at its end.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ColorFill
impl<'de> Deserialize<'de> for ColorFill
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
impl StructuralPartialEq for ColorFill
Auto Trait Implementations§
impl Freeze for ColorFill
impl RefUnwindSafe for ColorFill
impl Send for ColorFill
impl Sync for ColorFill
impl Unpin for ColorFill
impl UnsafeUnpin for ColorFill
impl UnwindSafe for ColorFill
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