use clay_layout::{fixed, Clay, Declaration};
#[rustfmt::skip]
fn main() {
let mut clay = Clay::new((800., 600.).into());
let mut clay = clay.begin::<(), ()>();
clay.with(&Declaration::new()
.id(clay.id("red_rectangle"))
.layout()
.width(fixed!(50.))
.height(fixed!(50.))
.end()
.corner_radius()
.all(5.)
.end()
.background_color((0xFF, 0x00, 0x00).into()), |_| {},
);
let render_commands = clay.end();
for command in render_commands {
println!("Id of the element: {}", command.id); println!("Bounding box: {:?}", command.bounding_box);
println!("Type and config: {:?}", command.config);
}
}