Skip to main content

ferroui_base/rendering/
i_render_loop_task.rs

1/// A task polled by the render loop on each tick.
2///
3/// Tasks are shared with the render timer's thread, so they must be
4/// thread-safe.
5pub trait IRenderLoopTask: Send + Sync {
6    /// Renders the task. Returns `true` when the task wants the next tick of
7    /// the render loop.
8    fn render(&self) -> bool;
9}