pub struct Plan { /* private fields */ }Expand description
One canvas’s frame plan.
Implementations§
Source§impl Plan
impl Plan
Sourcepub fn new(cap: usize, budget: usize) -> Plan
pub fn new(cap: usize, budget: usize) -> Plan
A plan holding at most cap tiles, with at most budget in flight.
Sourcepub fn damage(&mut self, theme: Theme, origin: (f64, f64), rects: &[KRect])
pub fn damage(&mut self, theme: Theme, origin: (f64, f64), rects: &[KRect])
Marks stale every tile of theme, held or in flight, that overlaps
one of rects — in the design’s coordinates, the drawing’s top-left
at origin — at every level.
Sourcepub fn damage_all(&mut self, theme: Theme)
pub fn damage_all(&mut self, theme: Theme)
Marks every tile of theme, held or in flight, stale.
Sourcepub fn frame(
&mut self,
theme: Theme,
area: KRect,
view: &View,
needed: &[(u32, u32)],
settled: bool,
) -> Work
pub fn frame( &mut self, theme: Theme, area: KRect, view: &View, needed: &[(u32, u32)], settled: bool, ) -> Work
The frame of view of the drawing area in theme, which needed
— the tiles the view needs at its own level, nearest its middle first
— makes current. Every held tile of the theme the view shows is
drawn, as a stand-in where it is stale or at another level; once a
zoom has settled, the missing and stale tiles are asked for in
needed’s order while fewer than the budget are in flight.
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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