Struct cognitive_exhibitor::SurfaceHistory
[−]
[src]
pub struct SurfaceHistory { /* fields omitted */ }
Provides functionality to manage surface history as resizable list.
Methods
impl SurfaceHistory
[src]
fn new() -> Self
SurfaceHistory
constructor.
fn add(&mut self, sid: SurfaceId)
Add surface as the latest in history.
fn get_nth(&self, n: isize) -> Option<SurfaceId>
Return n
th element from begin. If n
is negative, return n
th element from end.
fn pop(&mut self, sid: SurfaceId)
Make given surface the latest in history.
fn remove(&mut self, sid: SurfaceId)
Remove surface. Shrink underlying memory pool if needed.
fn iter(&self) -> Iter
Return iterator for SurfaceHistory
.