Skip to content

Commit b48a42f

Browse files
committed
Add frame labels in boxes example
1 parent 19dbbab commit b48a42f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

examples/boxes.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,14 @@ int main() {
5353
waves.canvas().char_size().y + mul_waves.canvas().char_size().y + 3),
5454
term);
5555

56-
auto layout = margin(hbox(vbox(frame(&waves), frame(&mul_waves)), frame(&circle)));
56+
// Build block layout
57+
auto layout =
58+
margin(
59+
hbox(
60+
vbox(
61+
frame("cos(t), sin(t)", Align::Center, &waves),
62+
frame("cos(t)*sin(t), sin^2(t)", Align::Center, &mul_waves)),
63+
frame("P(cos(t)*sin(t), sin^2(t))", Align::Center, &circle)));
5764

5865
auto bounds = waves.bounds();
5966
auto size = waves.size();

0 commit comments

Comments
 (0)