TermOx
Classes | Public Member Functions | Public Attributes | List of all members
ox::Confirm_button Class Reference

A Button with a confirm screen after the initial press. More...

#include <confirm_button.hpp>

Inheritance diagram for ox::Confirm_button:
ox::Tuple< Layout_t, Widget_t >

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.
 
Buttonmain_btn = this->get<0>()
 
detail::Confirm_pageconfirm_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... >
 

Detailed Description

A Button with a confirm screen after the initial press.

Clicked signal is only emitted after confirmation.


The documentation for this class was generated from the following files: