ferroui-base 0.3.0

The base library of FerroUI: the property system, layout, input, styling, media, text, animation, data binding and the compositor
Documentation
1
2
3
4
5
6
7
8
9
/// A task polled by the render loop on each tick.
///
/// Tasks are shared with the render timer's thread, so they must be
/// thread-safe.
pub trait IRenderLoopTask: Send + Sync {
    /// Renders the task. Returns `true` when the task wants the next tick of
    /// the render loop.
    fn render(&self) -> bool;
}