embedded-layout
extends [embedded-graphics
] with basic layout functions.
Draw some text to the center of the display:
```rust use embeddedlayout::prelude::*; use embeddedgraphics::{ prelude::*, fonts::{Font6x8, Text}, geometry::Point, primitives::Rectangle, pixelcolor::BinaryColor, style::TextStyleBuilder, };
let displayarea = disp.displayarea();
let textstyle = TextStyleBuilder::new(Font6x8) .textcolor(BinaryColor::On) .build();
Text::new("Hello, world!", Point::zero()) .intostyled(textstyle) .alignto(displayarea, horizontal::Center, vertical::Center) .draw(&mut disp) .unwrap(); ```