TermOx
Public Types | Public Member Functions | List of all members
ox::Tuple< Layout_t, Widget_t > Class Template Reference

Heterogeneous collection of Widgets within a Layout_t. More...

#include <tuple.hpp>

Inheritance diagram for ox::Tuple< Layout_t, Widget_t >:
ox::Confirm_button ox::Labeled_cycle_box ox::detail::CS_top_row ox::detail::Read_file_widgets ox::detail::Write_file_widgets ox::Read_file< Char_t > ox::Write_file< Char_t >

Public Types

using Parameters = std::tuple< typename Widget_t::Parameters... >
 

Public Member Functions

 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.
 

Detailed Description

template<typename Layout_t, typename... Widget_t>
class ox::Tuple< Layout_t, Widget_t >

Heterogeneous collection of Widgets within a Layout_t.

Widgets are added to Layout_t in the order that Widget_t types are given.


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