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

Provides a centered title and flush-right exit button. More...

#include <titlebar.hpp>

Inheritance diagram for ox::Titlebar:
ox::Pair< Layout_t, First, Second >

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

HLabeltitle = this->first
 
Buttonexit_button = this->second
 
- Public Attributes inherited from ox::Pair< Layout_t, First, Second >
First & first
 
Second & second
 

Detailed Description

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.


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