TermOx
Classes | Public Member Functions | Public Attributes | List of all members
ox::detail::Label_wrapper< Label_layout, Widget_t, Wrapper_layout, label_last > Class Template Reference

Wraps a Widget_t object with a label. More...

#include <label.hpp>

Inheritance diagram for ox::detail::Label_wrapper< Label_layout, Widget_t, Wrapper_layout, label_last >:

Classes

struct  Parameters
 

Public Member Functions

 Label_wrapper (Glyph_string text=U"", Align alignment=Align::Left, int extra_left=0, int extra_right=0, Growth growth_strategy=Growth::Static)
 Construct a new Label and wrapped Widget_t. More...
 
template<typename... Args>
 Label_wrapper (Parameters p, Args &&... args)
 Constructs Label with given parameters, and Widget_t with args...
 

Public Attributes

Label_tlabel
 
Widgetpadding = this->template make_child() | padding_policy()
 
Widget_t & wrapped
 

Detailed Description

template<template< typename > typename Label_layout, typename Widget_t, template< typename > typename Wrapper_layout, bool label_last>
class ox::detail::Label_wrapper< Label_layout, Widget_t, Wrapper_layout, label_last >

Wraps a Widget_t object with a label.

Wrapper_layout is the layout of *this, if label_last is true, the Label is after the wrapped Widget_t.

Constructor & Destructor Documentation

◆ Label_wrapper()

template<template< typename > typename Label_layout, typename Widget_t , template< typename > typename Wrapper_layout, bool label_last>
ox::detail::Label_wrapper< Label_layout, Widget_t, Wrapper_layout, label_last >::Label_wrapper ( Glyph_string  text = U"",
Align  alignment = Align::Left,
int  extra_left = 0,
int  extra_right = 0,
Growth  growth_strategy = Growth::Static 
)
inlineexplicit

Construct a new Label and wrapped Widget_t.

Only takes Label constructor args, if you need to pass in args to the wrapped Widget_t, then use the Label::Parameters overload.


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