Trait cursive_markup::Renderer
source · [−]pub trait Renderer {
fn render(&self, constraint: XY<usize>) -> RenderedDocument;
}
Expand description
A renderer that produces a hypertext document.
Required methods
fn render(&self, constraint: XY<usize>) -> RenderedDocument
fn render(&self, constraint: XY<usize>) -> RenderedDocument
Renders this document within the given size constraint and returns the result.
This method is called by MarkupView
every time the provided width changes.