pub struct FramingSession { /* private fields */ }Expand description
One framed canvas in progress.
Implementations§
Source§impl FramingSession
impl FramingSession
Sourcepub fn new(
source: SourceCanvas,
pane: Rect,
ignore: Vec<Region>,
size: usize,
max_tiles: usize,
) -> Self
pub fn new( source: SourceCanvas, pane: Rect, ignore: Vec<Region>, size: usize, max_tiles: usize, ) -> Self
A session framing source, seen through pane of the reference frame (the region rectangle intersected with its crop), with
ignore regions left out of the chrome, over the cache’s size-pixel tiles.
Sourcepub fn reference(
&mut self,
reference: Option<Reference>,
) -> Result<(), FramingError>
pub fn reference( &mut self, reference: Option<Reference>, ) -> Result<(), FramingError>
The reference frame, or None when none is stored.
Sourcepub fn index(
&mut self,
x: i32,
y: i32,
observed: u64,
) -> Result<(), FramingError>
pub fn index( &mut self, x: i32, y: i32, observed: u64, ) -> Result<(), FramingError>
One stored level-0 tile-index row of the source canvas, in the order the store holds them.
pub fn step( &mut self, cache: &mut TileCache, now: f64, ) -> Result<Step, FramingError>
Auto Trait Implementations§
impl Freeze for FramingSession
impl RefUnwindSafe for FramingSession
impl Send for FramingSession
impl Sync for FramingSession
impl Unpin for FramingSession
impl UnsafeUnpin for FramingSession
impl UnwindSafe for FramingSession
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more