1 #ifndef TERMOX_WIDGET_WIDGETS_CONFIRM_BUTTON_HPP
2 #define TERMOX_WIDGET_WIDGETS_CONFIRM_BUTTON_HPP
5 #include <signals_light/signal.hpp>
7 #include <termox/painter/glyph_string.hpp>
8 #include <termox/widget/array.hpp>
9 #include <termox/widget/tuple.hpp>
10 #include <termox/widget/widgets/button.hpp>
12 namespace ox::detail {
21 Button& confirm_btn = this->get<0>();
22 Button& exit_btn = this->get<1>();
48 Button& main_btn = this->get<0>();
59 static auto constexpr front_page_ = 0uL;
60 static auto constexpr confirm_page_ = 1uL;
64 [[nodiscard]]
auto confirm_button(
Glyph_string label = U
"",
66 -> std::unique_ptr<Confirm_button>;
70 -> std::unique_ptr<Confirm_button>;
Homogeneous collection of Widgets within a Layout_t<Widget_t>.
Definition: array.hpp:18
Holds a collection of Glyphs with a similar interface to std::string.
Definition: glyph_string.hpp:19
Heterogeneous collection of Widgets within a Layout_t.
Definition: tuple.hpp:17
Definition: confirm_button.hpp:14
Definition: confirm_button.hpp:16