pub struct Grid {
pub id: Option<String>,
pub children: Vec<Node>,
pub columns: Option<u32>,
pub gap: f32,
pub length: GridLength,
pub at: Option<f64>,
pub duration: Option<f64>,
pub inset: Option<Inset>,
}Expand description
Children in grid cells.
Fields§
§id: Option<String>The node’s name, for other nodes to refer to.
children: Vec<Node>The cells’ contents, row by row.
columns: Option<u32>Columns. Default: as square a grid as the children make.
gap: f32Pixels between cells.
length: GridLengthHow long the grid lasts when its cells differ, and what a cell that ends early shows.
Default shortest.
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].
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Grid
impl<'de> Deserialize<'de> for Grid
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 Grid
Auto Trait Implementations§
impl Freeze for Grid
impl RefUnwindSafe for Grid
impl Send for Grid
impl Sync for Grid
impl Unpin for Grid
impl UnsafeUnpin for Grid
impl UnwindSafe for Grid
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