An onion frame places its children as layers, drawing one on top of the other, instead of on the side.
Children are placed in order of drawing — the last child will be drawn last, and so, will appear on top.
import fluid; auto myFrame = onionFrame( // Draw an image imageView("logo.png"), // Draw a label in the middle of the frame label( layout!(1, "center"), "Hello, Fluid!" ), );
See Implementation
An onion frame places its children as layers, drawing one on top of the other, instead of on the side.
Children are placed in order of drawing — the last child will be drawn last, and so, will appear on top.