Struct rckive_genpdf::elements::Break
source · pub struct Break { /* private fields */ }
Expand description
A line break.
This element inserts a given number of empty lines.
Example
// Draws 5 empty lines (calculating the line height using the current style)
let b = rckive_genpdf::elements::Break::new(5);
Implementations§
Trait Implementations§
source§impl Element for Break
impl Element for Break
source§fn render(
&mut self,
context: &Context,
area: Area<'_>,
style: Style
) -> Result<RenderResult, Error>
fn render(
&mut self,
context: &Context,
area: Area<'_>,
style: Style
) -> Result<RenderResult, Error>
Renders this element to the given area using the given style and font cache. Read more
source§fn framed(self, line_style: impl Into<LineStyle>) -> FramedElement<Self>where
Self: Sized,
fn framed(self, line_style: impl Into<LineStyle>) -> FramedElement<Self>where
Self: Sized,
Draws a frame around this element using the given line style.