pub struct Frame<L: TextLayout> {
pub palette: Palette,
pub layout: L,
pub vantage: Vantage,
pub viewport: Rect,
pub easing: Rc<RefCell<Easing>>,
pub tick: Tick,
pub pointer: Option<Pos2>,
pub pointer_kind: PointerKind,
}Expand description
What a Recording is opened with. The frame’s clock, camera and pointer
arrive together because they describe one frame; passing them separately
would let a call site pair a camera with another frame’s tick.
Fields§
§palette: Palette§layout: L§vantage: Vantage§viewport: Rect§easing: Rc<RefCell<Easing>>§tick: Tick§pointer: Option<Pos2>The pointer in world space, if it is over the canvas.
pointer_kind: PointerKindAuto Trait Implementations§
impl<L> Freeze for Frame<L>where
L: Freeze,
impl<L> !RefUnwindSafe for Frame<L>
impl<L> !Send for Frame<L>
impl<L> !Sync for Frame<L>
impl<L> Unpin for Frame<L>where
L: Unpin,
impl<L> UnsafeUnpin for Frame<L>where
L: UnsafeUnpin,
impl<L> !UnwindSafe for Frame<L>
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