18 lines
355 B
C++
18 lines
355 B
C++
#include <basic_widgets/w/caption.hpp>
|
|
|
|
#include "run.hpp"
|
|
|
|
using bwidgets::Caption;
|
|
|
|
auto main() -> int
|
|
{
|
|
run_example<Caption>(
|
|
[](auto* w, auto* f, auto, auto) {
|
|
w->alignment = Caption::Alignment::CENTER;
|
|
w->text("¡jello!");
|
|
w->font(f);
|
|
},
|
|
4, 8); // NOLINT(readability-magic-numbers)
|
|
return 0;
|
|
}
|