Trait gui::Renderable

source ·
pub trait Renderable {
    fn render(&self, renderer: &dyn Renderer, bbox: BBox, cap: &dyn Cap) -> BBox;
}
Expand description

A trait representing a renderable object.

Required Methods

Render the renderable object.

This method just forwards the call to the given Renderer, supplying a trait object of the actual widget. The renderer is advised to honor the given BBox and is free to inquire additional state using the supplied Cap.

Implementors