bwidgets/examples/caption_example.cpp

18 lines
355 B
C++
Raw Normal View History

2021-07-20 12:12:29 +02:00
#include <basic_widgets/w/caption.hpp>
#include "run.hpp"
2021-08-06 14:22:56 +02:00
using bwidgets::Caption;
2021-07-20 12:12:29 +02:00
auto main() -> int
2021-07-20 12:12:29 +02:00
{
run_example<Caption>(
2021-08-06 14:22:56 +02:00
[](auto* w, auto* f, auto, auto) {
w->alignment = Caption::Alignment::CENTER;
w->text("¡jello!");
w->font(f);
},
4, 8); // NOLINT(readability-magic-numbers)
2021-07-20 12:12:29 +02:00
return 0;
}