pub struct FocalLayout {
pub scale: u32,
pub x0: i32,
pub x1: i32,
pub height: i32,
pub props: Vec<SpriteInstance>,
pub unattended: Vec<SpriteInstance>,
pub character: Option<CharacterTrack>,
pub light: Option<LightSource>,
pub embers_at: Option<(f64, f64)>,
}Expand description
Where everything in the focal group goes.
Fields§
§scale: u32§x0: i32Horizontal extent of the whole group, including the motion range.
x1: i32§height: i32Height of the tallest element.
props: Vec<SpriteInstance>Drawn in both Buddy states.
unattended: Vec<SpriteInstance>Drawn only with Buddy off, where the character would be.
character: Option<CharacterTrack>§light: Option<LightSource>§embers_at: Option<(f64, f64)>Ember emitter origin (flame tip), if a prop emits embers.
Trait Implementations§
Source§impl Clone for FocalLayout
impl Clone for FocalLayout
Source§impl Debug for FocalLayout
impl Debug for FocalLayout
Source§impl PartialEq for FocalLayout
impl PartialEq for FocalLayout
impl StructuralPartialEq for FocalLayout
Auto Trait Implementations§
impl Forget for FocalLayout
impl Freeze for FocalLayout
impl Move for FocalLayout
impl RefUnwindSafe for FocalLayout
impl Send for FocalLayout
impl Sync for FocalLayout
impl Unpin for FocalLayout
impl UnsafeUnpin for FocalLayout
impl UnwindSafe for FocalLayout
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