Struct genpdf::elements::LinearLayout [−][src]
pub struct LinearLayout { /* fields omitted */ }
Expand description
Arranges a list of elements sequentially.
Currently, elements can only be arranged vertically.
Examples
With setters:
use genpdf::elements; let mut layout = elements::LinearLayout::vertical(); layout.push(elements::Paragraph::new("Test1")); layout.push(elements::Paragraph::new("Test2"));
Chained:
use genpdf::elements; let layout = elements::LinearLayout::vertical() .element(elements::Paragraph::new("Test1")) .element(elements::Paragraph::new("Test2"));
Implementations
Creates a new linear layout that arranges its elements vertically.
Trait Implementations
Renders this element to the given area using the given style and font cache. Read more
Draws a frame around this element.
Adds a padding to this element.
Auto Trait Implementations
impl !RefUnwindSafe for LinearLayout
impl !Send for LinearLayout
impl !Sync for LinearLayout
impl Unpin for LinearLayout
impl !UnwindSafe for LinearLayout