TermOx
|
A Button with a confirm screen after the initial press. More...
#include <confirm_button.hpp>
Classes | |
struct | Parameters |
Public Member Functions | |
Confirm_button (Glyph_string label=U"", Glyph_string confirm_text=U"Confirm") | |
Construct a Button with label and corresponding confirm_text . | |
Confirm_button (Parameters p) | |
Public Member Functions inherited from ox::Tuple< Layout_t, Widget_t > | |
Tuple () | |
Default construct each Widget. | |
Tuple (typename Widget_t::Parameters... p) | |
Construct each Widget with a Widget_t::Parameters object. | |
Tuple (Tuple::Parameters p) | |
Construct from a Tuple::Parameters object. | |
Tuple (std::unique_ptr< Widget_t >... widget_ptrs) | |
Move existing Widgets into a Tuple. | |
template<std::size_t Index> | |
auto | get () -> auto & |
Get child by index. | |
template<std::size_t Index> | |
auto | get () const -> auto const & |
Get child by index. | |
Public Attributes | |
sl::Signal< void()> | pressed |
Emitted once confirmation has been made. | |
Button & | main_btn = this->get<0>() |
detail::Confirm_page & | confirm_page = this->get<1>() |
Additional Inherited Members | |
Public Types inherited from ox::Tuple< Layout_t, Widget_t > | |
using | Parameters = std::tuple< typename Widget_t::Parameters... > |
A Button with a confirm screen after the initial press.
Clicked signal is only emitted after confirmation.