pub struct Layout {
pub id: Option<String>,
pub root: Box<LayoutNode>,
pub at: Option<f64>,
pub duration: Option<f64>,
pub inset: Option<Inset>,
pub align: Option<Align>,
}Expand description
A layout generator.
Fields§
§id: Option<String>The node’s name, for other nodes to refer to.
root: Box<LayoutNode>The root box, as a project’s layout generator writes it.
at: Option<f64>Seconds from the parent’s start (an overlay’s: the video’s). Ignored in a sequence, which places its children one after another.
duration: Option<f64>Length in seconds. Default: the node’s own (a video’s, a caption file’s), else what its parent gives it.
inset: Option<Inset>Pixels kept clear inside the parent’s area: one number for every
side, or [top, right, bottom, left].
align: Option<Align>Where in its area the picture or text lies. Default center.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Layout
impl<'de> Deserialize<'de> for Layout
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 Layout
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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