Struct nannou::Frame [−][src]
pub struct Frame { /* fields omitted */ }
A Frame represents all graphics for the application for a single "frame" of time.
The Frame itself consists of a WindowFrame
for each window in the App
.
Methods
impl Frame
[src]
impl Frame
pub fn window(&self, id: Id) -> Option<WindowFrame>
[src]
pub fn window(&self, id: Id) -> Option<WindowFrame>
Return the part of the Frame
associated with the given window.
pub fn main_window(&self) -> WindowFrame
[src]
pub fn main_window(&self) -> WindowFrame
Return the part of the Frame
associated with the main window.
pub fn windows(&self) -> WindowFrames
[src]
pub fn windows(&self) -> WindowFrames
Return an iterator yielding each window::Id
along with its WindowFrame
for drawing.
pub fn clear_all<C>(&self, color: C) where
C: IntoRgba<f32>,
[src]
pub fn clear_all<C>(&self, color: C) where
C: IntoRgba<f32>,
Short-hand for clearing all windows with the given color.