cushy/guide/src/chapter_1.md
Jonathan Johnson a197bb5e81
Unit-tested, auto-generated screenshots
This commit adds my first take at creating a harness for a user's guide
using the new capture functionality. The example has tests that ensure
the align widget creates the expected results.
2024-01-04 13:56:45 -08:00

748 B

Aligning Widgets

align.rs - horizontal-align

Align a widget to the left

{{#include ../guide-examples/examples/align.rs:align-left}}

Align a widget to the left, with padding

{{#include ../guide-examples/examples/align.rs:align-left-pad}}

Align a widget to the center

{{#include ../guide-examples/examples/align.rs:centered}}

Align a widget to the right, with padding

{{#include ../guide-examples/examples/align.rs:align-right-pad}}

Align a widget to the right

{{#include ../guide-examples/examples/align.rs:align-right}}