TermOx
|
Provides a centered title and flush-right exit button. More...
#include <titlebar.hpp>
Classes | |
struct | Parameters |
Public Member Functions | |
Titlebar (Glyph_string title_text=U"") | |
Construct a Titlebar with centered title . | |
Titlebar (Parameters p) | |
Construct a Titlebar from p . | |
Public Member Functions inherited from ox::Pair< Layout_t, First, Second > | |
Pair () | |
Widgets are default constructed. | |
Pair (Parameters p) | |
Pair (typename First::Parameters a, typename Second::Parameters b) | |
Widgets are constructed with passed in First/Second::Parameters objects. | |
Pair (std::unique_ptr< First > a, std::unique_ptr< Second > b) | |
Existing Widgets are moved into the Pair. | |
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 | |
HLabel & | title = this->first |
Button & | exit_button = this->second |
Public Attributes inherited from ox::Pair< Layout_t, First, Second > | |
First & | first |
Second & | second |
Provides a centered title and flush-right exit button.
The exit button will call System::quit() when pressed. Titlebar is fixed at a height of 1.